-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\DocumentMetadata
results in incorrect version number of pdfTeX
#1186
Comments
a latex3 issue, what stored in (assuming this will be transferred to latex3 repo) Update: For pdftex that str holds the expansion of latex3/l3kernel/l3candidates.dtx Lines 1320 to 1325 in 2dd8e7e
here \fp_eval:n { round(1.4, 2) } is expected to be 1.40 , but gives 1.4 .
Update 2: It seems % will fail if pdftex major version number has two or more digits
\exp_last_unbraced:Nno \use_ii_i:nn . { \int_use:N \tex_pdftexversion:D }
.
\tex_pdftexrevision:D or if one prefers calculations % relies on the assumption that the miner version is always two digits,
% which is documented in luatex manual but not in pdftex manual
\int_div_truncate:nn { \tex_pdftexversion:D } { 100 }
.
\int_mod:nn { \tex_pdftexversion:D } { 100 }
.
\tex_pdftexrevision:D Update 3: luatex has similar problem latex3/l3kernel/l3candidates.dtx Lines 1339 to 1344 in 2dd8e7e
|
Just realized this second suggestion adds no additional assumption on value of |
The pdfTeX manual says 'Returns the version of pdfTeX multiplied by 100', so I think we are allowed to assume that the lowest two digits are the decimal part. |
Brief outline of the bug
When using the
\DocumentMetadata
command, the producer information in pdf metadata is incorrect:pdftex-1.40.25
becomespdftex-1.4.25
(with a missing zero).Minimal example showing the bug
Use
pdflatex
orpdflatex-dev
to compile the following code:Then check the metadata of the generated PDF file with
pdfinfo
:Log file (required) and possibly PDF file
1.log
1.pdf
Version info
The text was updated successfully, but these errors were encountered: