[texhax] Fwd: reading latex version number at compile time

Daniel Greenhoe dgreenhoe at gmail.com
Sun Nov 15 04:59:53 CET 2015

I thanked David for his very useful answer a day or so ago; but
looking back it seems I only sent the email to his email account
directly, and not to the texhax email list in general. Many apologies
for the oversight :(


---------- Forwarded message ----------
From: Daniel Greenhoe <dgreenhoe at gmail.com>
Date: Sat, Nov 14, 2015 at 2:22 AM
Subject: Re: [texhax] reading latex version number at compile time
To: David Carlisle <d.p.carlisle at gmail.com>

Thank you for yet another very prompt and useful answer. Very amazing.


On Sat, Nov 14, 2015 at 12:11 AM, David Carlisle <d.p.carlisle at gmail.com> wrote:
> \fmtversion will have the latex version which you can add via \hypersetup.
> xdvipdfmx will add its version to the pdf automatically, if I run
> xelatex on anything
> pdffinfo reports
> Creator:         XeTeX output 2015.11.14:0006
> Producer:       xdvipdfmx (20150315)
> David
> On 14 November 2015 at 00:02, Daniel Greenhoe <dgreenhoe at gmail.com> wrote:
>> Is there any way to read the latex and/or dvipdfmx version numbers at
>> compile time and pass the string(s) to the metadata of the final pdf
>> file?
>> For example, if I use the <hyperref> package with this command in the preamble
>> \hypersetup{%
>>   pdfcreator={string1},
>>   pdfproducer={string2},
>>   }
>> ,can string1 and string2 somehow be written to at compile time to
>> contain the version number(s)?
>> Many many thanks in advance,
>> Dan
>> _______________________________________________
>> TeX FAQ: http://www.tex.ac.uk/faq
>> Mailing list archives: http://tug.org/pipermail/texhax/
>> More links: http://tug.org/begin.html
>> Automated subscription management: http://tug.org/mailman/listinfo/texhax
>> Human mailing list managers: postmaster at tug.org
> --
> http://dpcarlisle.blogspot.com/

More information about the texhax mailing list