15
votes
2answers
1k views

Directory name as a variable

Is it possible to use the directory where the current tex-file is in as variable? For example, suppose I am in the directory /path/to/foo/ and compile there the document bar.tex (absolute path is ...