[Tex/LaTex] Typesetting programming packages/libraries in LaTeX

best practicesmarkuptypography

When referring to programming packages/libraries (such as matplotlib for example) within a LaTeX document should one typeset it to denote it as a package/library name? Such as using \texttt{}?

Best Answer

The most common way to quote software packages names is with small capitals, \textsc{}:

These amplitudes were obtained by using the open-source packages \textsc{FeynArts} and \textsc{FeynCalc}. enter image description here

At least in my field (particle physics).