Sometimes I want to cite stuff such as commands or library names etc etc. Over markdown I use the `somestuff` citation. But how I can do similar ting in tex?

  • 4
    \texttt{command} if there are no special characters, otherwise \verb|command| (the | is any character not appearing in command). – egreg Mar 29 '18 at 12:43
  • The \texttt{command} did the job 4 me! – Dimitrios Desyllas Mar 29 '18 at 13:06

To complete @egreg's comment, you can use the tcolorbox package to obtain the required format.

\newtcbox{\somestuffstyle}{on line,boxrule=0pt,boxsep=0pt,colback=lightgray,top=1pt,bottom=1pt,left=1pt,right=1pt,arc=0pt,fontupper=\ttfamily}

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