View Full Version : LaTeX Font Change in Section Title
thegreenlaser
Oct1-11, 04:03 PM
I want to have a section title to the effect of "Pseudocode for the Func1 Function," but I would like "Func1" to be in typewriter font to indicate that I'm referencing programming code. Is there any good way to do this? The verbatim and verb commands don't seem to work.
Thanks.
jhae2.718
Oct1-11, 11:57 PM
\textt{}
thegreenlaser
Oct2-11, 04:31 PM
It seems that \texttt{} is actually the correct command that doesn't give errors, but yes, that works. Thanks!
AlephZero
Oct2-11, 05:35 PM
You can do
Pseudocode for the {\tt Func1} Function
If ttyping the righttt number of t's is a problem :smile:
jhae2.718
Oct3-11, 07:25 AM
It seems that \texttt{} is actually the correct command that doesn't give errors, but yes, that works. Thanks!
Oops...that's what auto-complete of TeX statements get you. Sorry about that.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.