I'm pretty new to Latex and I am writing my thesis. I would like to use a command that I can essentially change the font of a few words in-line or separate (like an equation).
I have computer commands that I would like to display in a different font (Courier New) than the rest of the document. I have heard that I could either modify the \emph{}
command or create a new command like \comp{}
that changes the font.
I don't know how to do either. Is there a package that already does this for me? Thanks for your help
Example:
Next you need to position the robot arm by using the command \comp{Home}.
OR
\comp{cd folder ./trajectory.exe}
\listings
. read its manula by typingtexdoc listings
from terminal\texttt{}
? Whoever suggested you redefine\emph{}
gave you extremely bad advice. Don't. Welcome to TeX SE, by the way!\usepackage{listings} \lstsetup{basicstyle=\ttfamily} \let\comp\lstinline
to your preamble.