HI,
is there any predefined option for ROOT syntax highlighting while including macros in a LaTeX document using \lstlistings
?
Thanks a lot
HI,
is there any predefined option for ROOT syntax highlighting while including macros in a LaTeX document using \lstlistings
?
Thanks a lot
Dear @utkarsh-2000 ,
I believe there is no such options, maybe @couet knows a bit more about it.
But in any case, wouldn’t it be better to use the syntax highlighting for either C++ or Python code (depending on which language you are using in your ROOT application)?
Cheers,
Vincenzo
No, there is not, TLatex and TMathext implement a subset of the LaTeX functionalities and only those related to a single line of text. If you want to include a macro in a LaTeX document using lstlistings
you should do (in your LaTeX) document:
\begin{lstlisting}
Put your macro code here.
\end{lstlisting}