Tag Info

Hot answers tagged


Use a correct list for your numbering instead of \noindent \bf 1.: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[font=\bfseries] \item \begin{verbatim} abc aba \end{verbatim} \item blublb \end{enumerate} \end{document}


Using verbatim package the code for the second example works out of the box (if dashrule package is included as well) \documentclass{article} \usepackage{verbatim} \usepackage{dashrule} \newenvironment{codeExample}{ \vspace*{1.5em} \noindent Code Example:\\ \hspace*{1.3em} \hdashrule[0.5ex]{435pt}{0.9pt}{1.5mm} \verbatim } {% \endverbatim ...


You will need to grab the input verbatim. Using a similar approach to \verb this might look like \documentclass{article} \makeatletter \catcode`\!=\active \newcounter{ExprNum} \newwrite\mmtlatexfile \immediate\openout\mmtlatexfile=\jobname.mmtlatex\relax \def!{% \begingroup \let\do\@makeother \dospecials \mmttoend } \def\mmttoend#1!{% ...

Only top voted, non community-wiki answers of a minimum length are eligible