LaTeX Font Change in Section Title

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 5K views
thegreenlaser
Messages
524
Reaction score
17
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.
 
Physics news on Phys.org
Code:
\textt{}
 
It seems that
Code:
\texttt{}
is actually the correct command that doesn't give errors, but yes, that works. Thanks!
 
You can do
Code:
Pseudocode for the {\tt Func1} Function
If ttyping the righttt number of t's is a problem :smile:
 
thegreenlaser said:
It seems that
Code:
\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.