1

I am running a command and want to show the output in my document. I will simply cut and paste it. I know that the font must be different. What package or command is used for formatting command output?

1 Answers1

0

If you want the full command and output exactly as rendered (spacing and all) the built-in verbatim or Verbatim environment might be what you want. Eg.

\begin{Verbatim}
$ pdflatex --shell-escape poetrytex.dtx
\end{Verbatim}

If you're looking for inline output, just use a monospace font, eg.

\texttt{git describe --tags --dirty}
  • Too limited for my taste. listings and minted are better. – jub0bs Aug 08 '14 at 12:35
  • What specifically do you want then? It's not clear to me that this is a duplicate (unless you did, in fact, want syntax highlighting, but it's also not clear to me what you want other than just a monospace font. –  Aug 08 '14 at 21:34