How can I highlight text in latex

This links look useful:

  • Insert symbols inside verbatim mode LaTeX
  • Putting math inside a verbatim environment without altering the formatting

If you just wanted graph.exe I would suggest using \begin{verbatim} graph.exe \end{verbatim} or \verb+graph.exe+ .

However you want to use the <..> expression which can be created with $ \langle ... \rangle $ . The $..$ indicates inline math mode. Those two links discuss getting verbatim text in math environments.

Leave a Comment