General ⇒ Printing filename with underscore in document?
Printing filename with underscore in document?
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Printing filename with underscore in document?
welcome to the board!
Change the font encoding to T1 (Cork encding), that should solve it:
Code: Select all
\usepackage[T1]{fontenc}
Re: Printing filename with underscore in document?
/D