I have been using LaTeX from sometime now, but have never actually gotten my hands dirty declaring a new command, as I try to avoid that.
However, I need to add monospace text often in my document and I use \verb
for it which is fine, except that the verb font size is bigger than the normal text font. So I need to change the font size and undo done like \small{}\verb#My monospace code#\normalsize{}
. This is not very convenient and mistake-prone.
Is there a better way to do this? Can I define a new command for this? How?