# LaTeX Font Change in Section Title

1. Oct 1, 2011

### thegreenlaser

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.

2. Oct 1, 2011

Code (Text):
\textt{}

3. Oct 2, 2011

### thegreenlaser

It seems that
Code (Text):
\texttt{}
is actually the correct command that doesn't give errors, but yes, that works. Thanks!

4. Oct 2, 2011

### AlephZero

You can do
Code (Text):

Pseudocode for the {\tt Func1} Function

If ttyping the righttt number of t's is a problem

5. Oct 3, 2011

### jhae2.718

Oops...that's what auto-complete of TeX statements get you. Sorry about that.

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook