The tag has no wiki summary.

learn more… | top users | synonyms

17
votes
4answers
4k views

How to iterate through the name of files in a folder

Assume I have many TeX files. For the sake of simplicity, also asssume they are in a single folder or directory. I want to input all files from within my main LaTeX document. Actually I can create a ...
68
votes
5answers
10k views

\includegraphics: Dots in filename

\includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of ...
37
votes
4answers
1k views

Naming LaTeX files: best practice?

What's the best practice for naming LaTeX files? I know R, Matlab, and Java all differ in their use of ., _, -, camel case, capitalization, etc. What do people generally use for naming LaTeX files? ...
13
votes
2answers
781 views

Automatically Locate Included Images

Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of: \includegraphics{path/to/image/myfig.pdf} It would be: \includegraphics{myfig.pdf} ...
18
votes
2answers
657 views

Macro to retrieve the real name of the source file if pdflatex is invoked with -jobname

This question led to a new feature in a package: As of version 0.6 currfile supports the requested feature via a new package option and the -recorder compiler switch. For details, see Martin's ...
16
votes
3answers
3k views

Full path of current file

This question led to a new package: currfile-abspath (subpackage to currfile) How can I display the full path of the tex file that I compile? It is a simple file, no include or input present. ...
11
votes
1answer
348 views

Why isn't kpathsea picking up my local version of a file?

I've just made a minor alteration to a file from a TeX package. I copied it into my local texmf tree and made the change there. When I tried kpsewhich <filename> to test that it was finding my ...
16
votes
2answers
328 views

What is the quickest way to check whether I already have a given package?

What is the quickest way to check (on Linux) whether I already have a given package? In particular I'm interested in whether there is something that will take less time than the 20 seconds or so it ...
2
votes
4answers
219 views

Can (La)TeX compare the time stamps of two external files?

Scenario I have a bunch of standalone PSTricks files. Each of those files can be compiled by latex-dvips-ps2pdf-pdfcrop-pdftops to produce a PDF image. I have made a batch file to do ...
4
votes
2answers
333 views

Generate list of all installed (La)TeX files

I'm trying to write a script (Perl) for the general public which would need to have a list of all installed TeX files of a certain type, e.g. .sty and/or .cls files or only plainTeX files (.tex), ...
19
votes
2answers
667 views

What are the allowed characters in filenames?

What characters can be used in filenames for the main document and input files, both .tex and images etc.? I'm not asking about which are recommended to be used, but about a list of all possible ...
4
votes
2answers
439 views

How to include graphics from a complex file structure

I am writing a Latex file that needs to include figures from a directory graphs. graphs has several sub-directories say, one , two and three. These individually contain several graphics that should ...