Hack pour contourner défaut lors de listing en mode math.
Cette révision appartient à :
@@ -1,6 +1,17 @@
|
|||||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||||
\ProvidesPackage{yslistings}
|
\ProvidesPackage{yslistings}
|
||||||
\RequirePackage{listings}
|
\RequirePackage{listings}
|
||||||
|
\newcommand\lstinlinemm[1][]{%
|
||||||
|
\leavevmode\hbox\bgroup % \hbox\bgroup --> \bgroup
|
||||||
|
\def\lst@boxpos{b}%
|
||||||
|
\lsthk@PreSet\lstset{flexiblecolumns,#1}%
|
||||||
|
\lsthk@TextStyle
|
||||||
|
\@ifnextchar\bgroup{%
|
||||||
|
\afterassignment\lst@InlineG \let\@let@token}%
|
||||||
|
\lstinline@}
|
||||||
|
%@
|
||||||
|
\let\lstinlinetm\lstinline
|
||||||
|
\renewcommand\lstinline{\ifmmode\let\next\lstinlinemm\else\let\next\lstinlinetm\fi\next}
|
||||||
\RequirePackage{lstautogobble}
|
\RequirePackage{lstautogobble}
|
||||||
\RequirePackage{fontawesome}
|
\RequirePackage{fontawesome}
|
||||||
|
|
||||||
|
|||||||
Référencer dans un nouveau ticket
Bloquer un utilisateur