Bug 241775

Summary: print/texlive-base: latex,pdflatex make wrong math in savebox
Product: Ports & Packages Reporter: Shigeharu TAKENO <shige>
Component: Individual Port(s)Assignee: Hiroki Sato <hrs>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (hrs)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
result of sample source by pdflatex none

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.