1

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.

3
  • What exactly do you want in the output?
    – user202729
    Mar 31 at 14:50
  • (are you looking for \texttt or \verb?
    – user202729
    Mar 31 at 14:56
  • 5
    Equation vectorielle en utilisant la commande \verb|\boldsymbol|?
    – Rmano
    Mar 31 at 14:57

1 Answer 1

3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.