# [texhax] reading latex version number at compile time

Daniel Greenhoe dgreenhoe at gmail.com
Sat Nov 14 01:02:20 CET 2015

```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)?