Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX Font Change in Section Title

  1. Oct 1, 2011 #1
    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.

  2. jcsd
  3. Oct 1, 2011 #2


    User Avatar
    Gold Member

    Code (Text):
  4. Oct 2, 2011 #3
    It seems that
    Code (Text):
    is actually the correct command that doesn't give errors, but yes, that works. Thanks!
  5. Oct 2, 2011 #4


    User Avatar
    Science Advisor
    Homework Helper

    You can do
    Code (Text):

    Pseudocode for the {\tt Func1} Function
    If ttyping the righttt number of t's is a problem :smile:
  6. Oct 3, 2011 #5


    User Avatar
    Gold Member

    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

Similar Threads - LaTeX Font Change Date
LaTeX: selecting font with fontenc package Nov 20, 2013
Times New Roman font in Latex Nov 20, 2012
Latex math fonts vs text fonts Oct 17, 2011
LaTeX fonts for epsilon Feb 10, 2009
Bold font in latex Apr 15, 2008