LaTeX Font Change in Section Title

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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.
 
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!
 
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.