2

Already asked, it's possible to include the version of LaTeX in a PDF using \pdftexbanner. However, this is only one command. Is there a similar selection of commands as those presented for ConteXt to allow more customization of the version information used in the document?

On my machine, \pdftexbanner produces:

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/MacPorts 2015_9) kpathsea version 6.2.1

which is too verbose for my desired use.

Edit: it appears to be possible to programmatically extract substrings of \pdftexbanner, but this doesn't seem to be the most straightforward or portable solution to building a custom version string.

  • Perhaps you should specify what you expect. Just the version string, the TeXLive etc string? –  Apr 25 '16 at 10:13
  • You can extract content from \pdftexbanner by techniques described in How can I programmatically populate a PDF's pdfcreator field? – Werner Apr 25 '16 at 17:03
  • @ChristianHupfer see the linked options available in ConteXt; I am after a similar selection of options. – user2943160 Apr 29 '16 at 01:22
  • @Werner is there not a pre-separated selection of commands for pdfTeX? – user2943160 Apr 29 '16 at 01:22
  • @user2943160 The TeX format itself has never had such 'version' commands whilst LaTeX is also quite old and again predates the stability of such banner strings for extracting the engine details. One can happily query \fmtname and \fmtversion for plain/LaTeX but I'm unclear from the question exactly what it is you want to know the data for (the engine, the system or the format). – Joseph Wright Apr 29 '16 at 06:37
  • @JosephWright probably mostly pdfLaTeX, but LaTeX also is probably useful (I'm trying to customize my PDF's metadata fields). I note that the snapshot package extracts version numbers and revision dates from somewhere for all of the packages used. – user2943160 May 01 '16 at 15:38

0 Answers0