matlab-prettifier (listings) problem mit (Matlab) sprintf, Interpreter latex, kompiliert nicht
"Uwe Brauer" (via tex-d-l Mailing List) <[email protected]>
| Newsgroups | gmane.comp.tex.german |
|---|---|
| Message-ID | <[email protected]> |
Das folgende Minimalbeispiel (erzeugt von emacs
org-mode org-to-latex
converter) kompiliert bei mir nicht
Fehlermeldung
./lst-prob.tex:10: Missing $ inserted.
<inserted text>
$
l.10 \end{lstlisting}
)
! Emergency stop.
\documentclass[11pt,landscape]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[numbered,framed]{matlab-prettifier}
\begin{document}
\lstset{style=Matlab-editor,basicstyle=\mlttfamily,escapechar=",mlshowsectionrules=true,mathescape=true,morecomment={[s]{\%\{}{\%\}}},language=Matlab,label= ,caption= ,captionpos=b,numbers=none}
\begin{lstlisting}
s=sprintf('\n t vs y\n met= %s, intv=[%g %g] y0=[%g],TOL=%g,hmin=%g,hmax=%g fac=%g, facmax=%g\n $h_{stop}=%g$ $t_{stop}=%g$\n',met,intv,y0,TOL,hmin,hmax,fac,facmax,hstop,tstop);
title(['$ y^{\prime}(t) = y(t)^2$' s],'Interpreter','latex');
\end{lstlisting}
Weiß jemand Rat?
Danke
Uwe Brauer
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
smime.p7s
(application/pkcs7-signature, 5.5 KB) - not displayed