2

I would like to find a solution to use a verbatim-like environment, but inline. Indeed, I would like to ask not to compile Latex functions but just for a specific place in a text.

I tried this :

    Equation vectorielle en utilisant la commande
 \begin{verbatim} \boldsymbol \end{verbatim}:

But the problem is that there is a line jump.

Ingmar
  • 6,690
  • 5
  • 26
  • 47

1 Answers1

4

You can use \verb --- for example

Equation vectorielle en utilisant la commande  \verb|\boldsymbol|

You can use almost any symbol after \verb to delimit you "verbatim" text (but not *!); choose one that does not appear in the internal material:

\documentclass[12pt,]{article}
\usepackage[T1]{fontenc}
\begin{document}
a verb with bars: \verb|\foo| or with plus: \verb+a vertical bar|+
\end{document}

enter image description here

Rmano
  • 40,848
  • 3
  • 64
  • 125