LaTeX Font Change in Section Title

  • #1
525
16
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.
 

Answers and Replies

  • #2
jhae2.718
Gold Member
1,161
20
Code:
\textt{}
 
  • #3
525
16
It seems that
Code:
\texttt{}
is actually the correct command that doesn't give errors, but yes, that works. Thanks!
 
  • #4
AlephZero
Science Advisor
Homework Helper
6,994
291
You can do
Code:
Pseudocode for the {\tt Func1} Function
If ttyping the righttt number of t's is a problem :smile:
 
  • #5
jhae2.718
Gold Member
1,161
20
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.
 

Related Threads on LaTeX Font Change in Section Title

  • Last Post
Replies
6
Views
197K
  • Last Post
Replies
2
Views
25K
Replies
2
Views
4K
Replies
1
Views
3K
  • Last Post
Replies
1
Views
13K
  • Last Post
Replies
16
Views
24K
Replies
3
Views
3K
Replies
1
Views
2K
Replies
5
Views
954
Replies
0
Views
2K
Top