Bug 241775 - print/texlive-base: latex,pdflatex make wrong math in savebox
Summary: print/texlive-base: latex,pdflatex make wrong math in savebox
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-07 07:51 UTC by Shigeharu TAKENO
Modified: 2019-11-11 08:13 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (hrs)


Attachments
result of sample source by pdflatex (5.92 KB, application/pdf)
2019-11-07 07:51 UTC, Shigeharu TAKENO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shigeharu TAKENO 2019-11-07 07:51:25 UTC
Created attachment 208932 [details]
result of sample source by pdflatex

On FreeBSD, latex and pdflatex make wrong result for the following LaTeX source:

----- From here -----
\documentclass{article}
\newsavebox{\myboxi}
\newsavebox{\myboxii}
\begin{document}
\savebox{\myboxi}{\mbox{$I = \int_0^1 x^3dx$}}
\savebox{\myboxii}{\mbox{$c = \sqrt{a^2+b^2}$}}
\begin{quote}
  \usebox{\myboxi}\usebox{\myboxii}
\end{quote}

\begin{quote}
  $I = \int_0^1 x^3dx$, $c = \sqrt{a^2+b^2}$
\end{quote}
\end{document}
----- To here -----

In first quote environment, some symbols in math appear at incorrect positions. 
Second quote environment is treated correctly (see attach pdf file which is the result of pdflatex). latex and pdflatex may fail to treat savebox/usebox.
But, this problem may not appear on other OS (Windows, etc). I think this may be a bug of FreeBSD texlive's ports (I installed by ports).
Well, Japanese platex included in japanese/tex-ptex does not cause the problem too. I don't know the reason why.

pdflatex version : pdfTeX 3.14159265-2.6-1.40.16 (Web2C 2015)
platex version : e-pTeX 3.14159265-p3.6-141210-2.6 (euc) (Web2C 2015)
FreeBSD version : FreeBSD 12.0-RELEASE-p11
Comment 1 Shigeharu TAKENO 2019-11-09 09:41:52 UTC
I found the problem does not appear after installed print/texlive-full.

In installing japanese/tex-ptex, pdftex is made and it is linked to latex and pdflatex. This version of latex and pdflatex may cause this problem.
Comment 2 Shigeharu TAKENO 2019-11-11 08:13:18 UTC
I found the /usr/local/bin/pdftex is old:

-rwxr-xr-x 1 root wheel 1801264 Dec 28 2017 /usr/local/bin/pdftex

It don't have been update by portupgrade. So, I reinstall print/tex-base-engines, then the problem for latex and pdflatex does not occur.
Thanks.