GeneralInclude name of file into the document itself

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
stietz
Posts: 4
Joined: Sun Feb 22, 2009 4:25 am

Include name of file into the document itself

Post by stietz »

If I call pdflatex using

Code: Select all

pdflatex.exe --jobname=one two.tex
I can use \jobname inside the document to print "one", but how do I get the name of the original file ("two.tex") printed in my document?

I want to print the original filename in the footer, but don't want to have it to adjust it (so that I can move the code into a package later).

Thanks

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Include name of file into the document itself

Post by phi »

That's impossible in current TeX implementations. You have to specify the file name explicitly. The only file name that TeX gives you is the job name.
Post Reply