I want to copy and paste some terminal output into my Latex document. I am using texmaker and as soon as I try to compile text like this
[trace] ?- mutter_von(Mutter, Kind).
Call: (8) mutter_von(_4028, _4030) ? creep
Exit: (8) mutter_von(marie, hans) ? creep
texmaker gives me a compilation errors because of the symbols '_', '[' and ']'. Is there any convienient way to force paste the above text into a texmaker document and replace [ to $[$ for example. Or do I need to do that manually, because thats a huge pain.
\begin{verbatim}and\end{verbatim}that you can enclose your text in. – Davislor Oct 26 '19 at 16:54\begin{verbatim}...\end{verbatim}should do (or any other verbatim environment, e.g. those provided bylistings). Do you want to process this output further? In that case, writing a small parser shouldn't be too hard. – Skillmon Oct 27 '19 at 07:39