LaTex produces wrong symbols

Bug #184065 reported by Morris Hirsch
4
Affects Status Importance Assigned to Milestone
texlive-base (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

LaTeX package txfonts interchanges the meaning of the commands in Table 8.16 in ``The Latex
Companion'' (2nd edition) :
\precapprox= prints as \succapprox
\succapprox= prints as \precapprox
These symbols are defined in
    /usr/share/texmf-tetex/tex/latex/txfonts/txfonts.sty
The following LaTex code produces this result:
\documentclass{article}
\usepackage{txfonts}
\begin{document}
\verb=\precapprox= prints as \ \ $\precapprox$
\verb=\succapprox= prints as \ \ $\succapprox$
\end{document}

Note however that LaTex package amssymbols prints these symbols correctly.

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Package hint: texlive-base

Revision history for this message
Ming Hua (minghua) wrote :

The file mentioned in the report is /usr/share/texmf-tetex/tex/latex/txfonts/txfonts.sty, which belongs to tetex-extra in Debian etch. Why is this bug assigned to texlive-base pacakge?

The teTeX stuff is mostly obsoleted (both in Debian and Ubuntu) anyway. To bug reporter Morris Hirsch -- what is the Ubuntu release you are using? Ubuntu 6.06 (dapper)?

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

According to http://packages.ubuntu.com/gutsy/tex/texlive-fonts-recommended

texlive-fonts-recommended includes txfonts, and the source package for texlive-fonts-recommended is texlive-base

Revision history for this message
Norbert Preining (preining) wrote : Re: [Bug 184065] [NEW] LaTex produces wrong symbols

On Di, 22 Jan 2008, Launchpad Bug Tracker wrote:
> \precapprox= prints as \succapprox
> \succapprox= prints as \precapprox

Confirmed.

Can be fixed easily. We will se what I can do. In the meantime just do
that:
--- txfonts.sty.orig 2008-01-22 07:42:45.000000000 +0100
+++ txfonts.sty 2008-01-22 07:43:06.000000000 +0100
@@ -579,8 +579,8 @@
 \re@DeclareMathSymbol{\thicksim}{\mathrel}{AMSb}{115}
 \re@DeclareMathSymbol{\thickapprox}{\mathrel}{AMSb}{116}
 \re@DeclareMathSymbol{\approxeq}{\mathrel}{AMSb}{117}
-\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{118}
-\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{119}
+\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{119}
+\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{118}
 \re@DeclareMathSymbol{\curvearrowleft}{\mathrel}{AMSb}{120}
 \re@DeclareMathSymbol{\curvearrowright}{\mathrel}{AMSb}{121}
 \re@DeclareMathSymbol{\digamma}{\mathord}{AMSb}{122}

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <email address hidden> Vienna University of Technology
Debian Developer <email address hidden> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
HUMBY (n.)
An erection which won't go down when a gentleman has to go for a pee
in the middle of making love to someone.
   --- Douglas Adams, The Meaning of Liff

Revision history for this message
Norbert Preining (preining) wrote : txfonts bug

Hi all,

there is a bug in txfonts.sty, easily reproducible with:
\documentclass{article}
\usepackage{txfonts}
\begin{document}
\verb=\precapprox= prints as \ \ $\precapprox$\\
\verb=\nprecapprox= prints as \ \ $\nprecapprox$\\
\verb=\succapprox= prints as \ \ $\succapprox$\\
\verb=\nsuccapprox= prints as \ \ $\nsuccapprox$
\end{document}

If you compare that with the output using amssymb instead of txfonts you
see that precapprox and succapprox are exchanged. The fix is simple:

--- txfonts.sty.orig 2008-01-22 07:42:45.000000000 +0100
+++ txfonts.sty 2008-01-22 07:43:06.000000000 +0100
@@ -579,8 +579,8 @@
 \re@DeclareMathSymbol{\thicksim}{\mathrel}{AMSb}{115}
 \re@DeclareMathSymbol{\thickapprox}{\mathrel}{AMSb}{116}
 \re@DeclareMathSymbol{\approxeq}{\mathrel}{AMSb}{117}
-\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{118}
-\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{119}
+\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{119}
+\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{118}
 \re@DeclareMathSymbol{\curvearrowleft}{\mathrel}{AMSb}{120}
 \re@DeclareMathSymbol{\curvearrowright}{\mathrel}{AMSb}{121}
 \re@DeclareMathSymbol{\digamma}{\mathord}{AMSb}{122}

But whom to send to? Does anyone have an email adress of Young Kyu? And
how to fix that bug on CTAN?

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <email address hidden> Vienna University of Technology
Debian Developer <email address hidden> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
SCRABBY (n.) A curious-shaped duster given to you by your mother which
on closer inspection turns out to be half an underpant.
   --- Douglas Adams, The Meaning of Liff

Revision history for this message
Norbert Preining (preining) wrote : Re: [Bug 184065] [NEW] LaTex produces wrong symbols

On Di, 22 Jan 2008, Launchpad Bug Tracker wrote:
> \verb=\precapprox= prints as \ \ $\precapprox$
> \verb=\succapprox= prints as \ \ $\succapprox$

Will be fixed in Debian release texlive-base 2007-14.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <email address hidden> Vienna University of Technology
Debian Developer <email address hidden> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
LOWTHER (vb.)
(Of a large group of people who have been to the cinema together.) To
stand aimlessly about on the pavement and argue about whatever to go
and eat either a Chinese meal nearby or an Indian meal at a restaurant
which somebody says is very good but isn't certain where it is, or
have a drink and think about it, or just go home, or have a Chinese
meal nearby - until by the time agreement is reached everything is
shut.
   --- Douglas Adams, The Meaning of Liff

Revision history for this message
Norbert Preining (preining) wrote : txfonts bug

Dear Ryu,

I am one of the TeX Live maintainers, upstream and also for Debian. One
user of the Ubuntu packages found a small bug in the txfonts which is
easily seen by trying that:
\documentclass{article}
\usepackage{txfonts}
\begin{document}
\verb=\precapprox= prints as \ \ $\precapprox$\\
\verb=\nprecapprox= prints as \ \ $\nprecapprox$\\
\verb=\succapprox= prints as \ \ $\succapprox$\\
\verb=\nsuccapprox= prints as \ \ $\nsuccapprox$
\end{document}

If you compare that with the output using amssymb instead of txfonts you
see that \precapprox and \succapprox are exchanged. The fix is simple:

--- txfonts.sty.orig 2008-01-22 07:42:45.000000000 +0100
+++ txfonts.sty 2008-01-22 07:43:06.000000000 +0100
@@ -579,8 +579,8 @@
 \re@DeclareMathSymbol{\thicksim}{\mathrel}{AMSb}{115}
 \re@DeclareMathSymbol{\thickapprox}{\mathrel}{AMSb}{116}
 \re@DeclareMathSymbol{\approxeq}{\mathrel}{AMSb}{117}
-\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{118}
-\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{119}
+\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{119}
+\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{118}
 \re@DeclareMathSymbol{\curvearrowleft}{\mathrel}{AMSb}{120}
 \re@DeclareMathSymbol{\curvearrowright}{\mathrel}{AMSb}{121}
 \re@DeclareMathSymbol{\digamma}{\mathord}{AMSb}{122}

It would be great if you could fix this (as upstream) and re-upload a
fixed package (only uploading this file should be enough if there are no
other changes) to the CTAN archive, from where it will find its way into
the TeX Live distribution etc.

Thanks a lot for your contribution and all the best

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <email address hidden> Vienna University of Technology
Debian Developer <email address hidden> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
VALLETTA (n.)
On ornate head-dress or loose garment worn by a person in the belief
that it renders then invisibly native and not like a tourist at
all. People who don huge colonial straw collie hats with 'I Luv Lagos'
on them in Nigeria, or fat solicitors from Tonbridge on holiday in
Malaya who insist on appearing in the hotel lobby wearing a sarong
know what we're on about.
   --- Douglas Adams, The Meaning of Liff

Changed in texlive-base:
status: New → In Progress
Revision history for this message
Morris Hirsch (mwhirsch) wrote : Re: [Bug 184065] Re: LaTex produces wrong symbols

I'm using Ubuntu 6.10.

--Moe

On Monday 21 January 2008 10:28 pm, Ming Hua wrote:
> The file mentioned in the report is /usr/share/texmf-
> tetex/tex/latex/txfonts/txfonts.sty, which belongs to tetex-extra in
> Debian etch. Why is this bug assigned to texlive-base pacakge?
>
> The teTeX stuff is mostly obsoleted (both in Debian and Ubuntu) anyway.
> To bug reporter Morris Hirsch -- what is the Ubuntu release you are
> using? Ubuntu 6.06 (dapper)?

--
Morris W. Hirsch
7926 Hill Point Road
Cross Plains, WI 53528-9350

Phone: (608) 798-3814
email: <email address hidden>

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Fixed long ago....

texlive-base (2007-14) unstable; urgency=low

  * fix latin.ldf with the version from CTAN (Closes: #451295)
    (and also closes Ubuntu bug #157709)
  * Update location of upstream iso.zip file in uscan watch file (closes:
    #449619), thanks to Raphael Geissert <email address hidden> [fk]
  * do not install tex/latex/jknapltx/ubbold.fd, it break the bbold fonts
    (Closes: #449221). Thanks and sorry Ralf for ignoring you so long!
  * improve the comments about english hyphenation/language0 in language.dat,
    from DEK on tex-k
  * bump standards version to 3.7.3, no changes needed
  * make texlive-latex-recommended provide latex-ucs-uninames, latex-ucs,
    latex-ucs-contrib as these Debian packages have been given up for
    adoption
  * fix a small bug in booktabs.sty by updating it to the version on CTAN
    (Closes: #460878)
  * add a patch fix-txfonts-precapprox to switch the symbols \precapprox and
    \succapprox in txfonts.sty (Closes Ubuntu bug 184065)
  * add a fancyheadings placeholder calling fancyhdr (Closes Ubuntu bug
    132399)
  * add the LPPL to debian/copyright (Closes: #470479)

 -- Ubuntu Archive Auto-Sync < <email address hidden> > Fri, 02 May 2008 02:27:54 +0100

Changed in texlive-base (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.