Tag Info

New answers tagged

1

listings needs a 'hint' if the package should interprete $-$ as math content otherwise it's taken verbatim. The hint is the mathescape=true option to the lstlisting environment. \documentclass[12pt]{article} % For MATLAB code \usepackage[framed]{matlab-prettifier} \usepackage[T1]{fontenc} \lstMakeShortInline[style=Matlab-editor]" % For inline shortcut ...



Top 50 recent answers are included