[XeTeX] datetime2 package and XeTeX

Khaled Hosny khaledhosny at eglug.org
Fri Apr 3 15:45:36 CEST 2015

On Fri, Apr 03, 2015 at 01:09:21PM +0100, Philip Taylor wrote:
> Khaled Hosny wrote:
> >I’ve no immediate plans for this myself, but patches are welcomed.
> Khaled, did you also see my own query, posted on 23rd ult. and replicated
> below ?
> ** Phil.
> --------
> I learned not long ago from Akira Kakuto san that XeTeX will automatically
> search the directory optionally specified by the -output-directory
> command-line qualifier when searching for files to be \input, \openin-ed,
> etc :
> > If an output directory is defined by a user, the TeX library
> > first searches for files to read in the output directory.
> > Therefore files such as foo.aux should be read successfully
> > with the default TEXINPUTS.xetex etc.
> > In fact, it is working like this here.
> > Please try once more with the default TEXINPUTS.xetex.
> Unfortunately I have just discovered that the same is not true for files
> read by \XeTeXpdffile.  Would it be possible to enhance XeTeX such that it
> uses the same path search mechanism for \XeTeXpdffile as it uses for
> \openin, \input, etc., since in my case at least (and perhaps for many
> others), the PDF file to be read by \XeTeXpdffile has been written by XeTeX
> on the previous pass.

AFAICT, looking inside -output-directory is done by Web2c (shared by all
engines) and only when opening "input" files. I’m not sure what is the
implications of doing so when locating other kinds of files.


More information about the XeTeX mailing list