I have a set of files that are commonly used as inputs in my tex files, so I put them in a directory and set the path in the TEXINPUTS environment variable (in Ubuntu). This works fine when compiling files with the latex command, but if I compile them with pdftex, it gives the following error message:
! I can't find file `{header.tex}'.
l.1 \input{header.tex}
As far as I can tell, pdftex is completely ignoring the TEXINPUTS environment variable. Does it use a different environment variable? How can I get it to recognise a path?
pdftex
orpdflatex
. The latter will read\input{header.tex}
as a braced argument for fileheader.tex
, butpdftex
is Knuth's plain format with the pdfTeX engine: there,\input
has primitive syntax only, and the file name searched is{input.tex}
. – Joseph Wright♦ Nov 18 '12 at 12:38\NeedsTeXFormat{LaTeX2e}
to get a meaningful error message if you use the wrong program. – Martin Schröder Nov 19 '12 at 7:41