GeneralPrinting filename with underscore in document?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dante
Posts: 2
Joined: Wed Nov 05, 2008 12:46 pm

Printing filename with underscore in document?

Post by dante »

Hi,

I would like to print the name of the file in the document. I have found the command \jobname, but the underscores in my filename is replaced by dots. How can I fix this? BTW: I use miktex 2.7.

/Daniel

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Printing filename with underscore in document?

Post by Stefan Kottwitz »

Hi Daniel,

welcome to the board!
Change the font encoding to T1 (Cork encding), that should solve it:

Code: Select all

\usepackage[T1]{fontenc}
Stefan
LaTeX.org admin
dante
Posts: 2
Joined: Wed Nov 05, 2008 12:46 pm

Re: Printing filename with underscore in document?

Post by dante »

Perfect! thanks alot!

/D
Post Reply