Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[fourier] getting rid of irritating font-encoding-changes warnings

9 views
Skip to first unread message

Erik Quaeghebeur

unread,
Jan 9, 2006, 5:34:44 PM1/9/06
to
When using the `fourier' package, one gets the warnings (harmless, they
tell me) about font-encoding changes following at the end of my post.

How can I get LaTeX not to mention them anymore? They take up valuable
screen real-estate in the "Log & Messages"-window of my editor (Kile).

TIA,

Erik


The warnings I spoke of:

/usr/share/texmf/tex/latex/fourier/fourier.sty:50: Encoding `OT1' has
changed to `T1' for symbol font(Font) `operators' in the math version
`normal' on input line 50. Encoding `OT1' has changed to `T1' for symbol
font(Font) `operators' in the math version `normal'
/usr/share/texmf/tex/latex/fourier/fourier.sty:50: Encoding `OT1' has
changed to `T1' for symbol font(Font) `operators' in the math version
`bold' on input line 50. Encoding `OT1' has changed to `T1' for symbol
font(Font) `operators' in the math version `bold'
/usr/share/texmf/tex/latex/fourier/fourier.sty:59: Encoding `OML' has
changed to `FML' for symbol font(Font) `letters' in the math version
`normal' on input line 59. Encoding `OML' has changed to `FML' for symbol
font(Font) `letters' in the math version `normal'
/usr/share/texmf/tex/latex/fourier/fourier.sty:59: Encoding `OML' has
changed to `FML' for symbol font(Font) `letters' in the math version
`bold' on input line 59. Encoding `OML' has changed to `FML' for symbol
font(Font) `letters' in the math version `bold'
/usr/share/texmf/tex/latex/fourier/fourier.sty:113: Encoding `OMS' has
changed to `FMS' for symbol font(Font) `symbols' in the math version
`normal' on input line 113. Encoding `OMS' has changed to `FMS' for symbol
font(Font) `symbols' in the math version `normal'
/usr/share/texmf/tex/latex/fourier/fourier.sty:113: Encoding `OMS' has
changed to `FMS' for symbol font(Font) `symbols' in the math version
`bold' on input line 113. Encoding `OMS' has changed to `FMS' for symbol
font(Font) `symbols' in the math version `bold'
/usr/share/texmf/tex/latex/fourier/fourier.sty:114: Encoding `OMX' has
changed to `FMX' for symbol font(Font) `largesymbols' in the math version
`normal' on input line 114. Encoding `OMX' has changed to `FMX' for symbol
font(Font) `largesymbols' in the math version `normal'
/usr/share/texmf/tex/latex/fourier/fourier.sty:114: Encoding `OMX' has
changed to `FMX' for symbol font(Font) `largesymbols' in the math version
`bold' on input line 114. Encoding `OMX' has changed to `FMX' for symbol
font(Font) `largesymbols' in the math version `bold'
./test.tex:0: Marginpar on page 9 moved by 19.41867pt.

Ulrike Fischer

unread,
Jan 10, 2006, 5:21:30 AM1/10/06
to
Erik Quaeghebeur <equa...@nospammail.net> schrieb:

> When using the `fourier' package, one gets the warnings (harmless,
> they tell me) about font-encoding changes following at the end of my
> post.
>
> How can I get LaTeX not to mention them anymore? They take up
> valuable screen real-estate in the "Log & Messages"-window of my
> editor (Kile).

Je pense la plupart viennent de LaTeX. Tu pourrai essayer ceci avant le
paquet:

\makeatletter
\def\@font@info#1{}
\makeatother

Ces messages ne sont pas des warnings, mais des informations.


--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.

Ulrike Fischer

unread,
Jan 10, 2006, 5:22:35 AM1/10/06
to
Ulrike Fischer <ne...@nililand.de> schrieb:


> Je pense la plupart viennent de LaTeX. Tu pourrai essayer ceci avant le
> paquet:

Sorry about the french. I got confused ;-).

Erik Quaeghebeur

unread,
Jan 10, 2006, 3:05:32 PM1/10/06
to
On Tue, 10 Jan 2006, Ulrike Fischer wrote:
>
> Sorry about the french. I got confused ;-).

Pas de problème.

Erik Quaeghebeur

unread,
Jan 10, 2006, 3:19:31 PM1/10/06
to
On Tue, 10 Jan 2006, Ulrike Fischer wrote:

> Je pense la plupart viennent de LaTeX. Tu pourrai essayer ceci avant le
> paquet:
>
> \makeatletter
> \def\@font@info#1{}
> \makeatother
>

This does not seem to work (no change whatsoever).

> Ces messages ne sont pas des warnings, mais des informations.
>

It's a question of semantics of course, but in my log file I find
(excerpt):

(/usr/share/texmf/tex/latex/fourier/fourier.sty
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/base/textcomp.sty
(/usr/share/texmf/tex/latex/base/ts1enc.def))
(/usr/share/texmf/tex/latex/fourier/fourier-orns.sty)

LaTeX Font Warning: Encoding `OT1' has changed to `T1' for symbol font


(Font) `operators' in the math version `normal' on input line
50.


LaTeX Font Warning: Encoding `OT1' has changed to `T1' for symbol font


(Font) `operators' in the math version `bold' on input line
50.


LaTeX Font Warning: Encoding `OML' has changed to `FML' for symbol font


(Font) `letters' in the math version `normal' on input line
59.


LaTeX Font Warning: Encoding `OML' has changed to `FML' for symbol font


(Font) `letters' in the math version `bold' on input line 59.


LaTeX Font Warning: Encoding `OMS' has changed to `FMS' for symbol font


(Font) `symbols' in the math version `normal' on input line
113.


LaTeX Font Warning: Encoding `OMS' has changed to `FMS' for symbol font


(Font) `symbols' in the math version `bold' on input line
113.


LaTeX Font Warning: Encoding `OMX' has changed to `FMX' for symbol font


(Font) `largesymbols' in the math version `normal' on input
line 1
14.


LaTeX Font Warning: Encoding `OMX' has changed to `FMX' for symbol font


(Font) `largesymbols' in the math version `bold' on input
line 114
.

)

Erik

Jean-Côme Charpentier

unread,
Jan 10, 2006, 5:30:38 PM1/10/06
to
Erik Quaeghebeur wrote:
> On Tue, 10 Jan 2006, Ulrike Fischer wrote:
>
>> Ces messages ne sont pas des warnings, mais des informations.
>>
> It's a question of semantics of course, but in my log file I find
> (excerpt):

It's more than just a question of semantic!

> [...]


> LaTeX Font Warning: Encoding `OT1' has changed to `T1' for symbol font
> (Font) `operators' in the math version `normal' on input

> [...]

These messages are warning ones in (La)TeX point of view... and just
infos in fourier point of view. Fourier writes always these messages.

Jean-Côme Charpentier

Erik Quaeghebeur

unread,
Jan 11, 2006, 2:56:34 PM1/11/06
to
On Tue, 10 Jan 2006, Jean-Côme Charpentier wrote:
>> [...]
>> LaTeX Font Warning: Encoding `OT1' has changed to `T1' for symbol font
>> (Font) `operators' in the math version `normal' on input
>> [...]
>
> These messages are warning ones in (La)TeX point of view... and just infos in
> fourier point of view. Fourier writes always these messages.

Ok, but how do I get rid of them? Can I prevent fourier outputting them?


Erik

Jean-Côme Charpentier

unread,
Jan 11, 2006, 3:57:01 PM1/11/06
to

This request is somewhere strange. Well, I don't know for fourier but
you can ask latex itself to shut up :-)

\documentclass{article}

\makeatletter
\def\SetSymbolFont@#1#2#3{%
\expandafter\in@\expandafter#1\expandafter{\version@list}%
\ifin@
\expandafter\in@\expandafter#3\expandafter{\group@list}%
\ifin@
\begingroup
\expandafter\get@cdp\string#2\@nil\reserved@a
\toks@{}%
\def\install@mathalphabet##1##2{%
\addto@hook\toks@{\install@mathalphabet##1{##2}}%
}%
\def\getanddefine@fonts##1##2{%
\ifnum##1=#3%
\addto@hook\toks@{\getanddefine@fonts#3#2}%
\expandafter\get@cdp\string##2\@nil\reserved@b
% \ifx\reserved@a\reserved@b\else
% \@font@warning{Encoding `\reserved@b' has changed
% to `\reserved@a' for symbol font\MessageBreak
% `\expandafter\@gobblefour\string#3' in the
% math version `\expandafter
% \@gobblefour\string#1'}%
% \fi
\@font@info{%
Overwriting symbol font
`\expandafter\@gobblefour\string#3' in
version `\expandafter
\@gobblefour\string#1'\MessageBreak
\@spaces \expandafter\@gobble\string##2 -->
\expandafter\@gobble\string#2}%
\else
\addto@hook\toks@{\getanddefine@fonts##1##2}%
\fi}%
#1%
\xdef#1{\the\toks@}%
\endgroup
\else
\@latex@error{Symbol font `\expandafter\@gobblefour\string#3'
not defined}\@eha
\fi
\else
\@latex@error{Math version `\expandafter\@gobblefour\string#1'
is not
defined}{You probably mispelled the name of the math
version.^^JOr you have to specify an additional package.}%
\fi
}
\makeatother

\usepackage{fourier}
\begin{document}
Some text
\end{document}

It looks not very serious I think.

Jean-Côme Charpentier

Walter Schmidt

unread,
Jan 11, 2006, 6:50:58 PM1/11/06
to
Jean-Côme Charpentier schrieb:

> [a complicated macro definition]


> It looks not very serious I think.

Instead, try

\makeatletter
\let\@font@info\@gobble
\let\@font@warning\@gobble
\makeatother

in the document preamble.

HTH
Walter

Robin Fairbairns

unread,
Jan 12, 2006, 5:19:15 AM1/12/06
to

actually, i would be inclined to have:

\makeatletter
\let\my@@font@warning\@font@warning
\let\@font@warning\@font@info
\makeatother
%
\usepackage{fourier}
%
\makeatletter
\let\@font@warning\my@@font@warning
\makeatother

it's just possible that something _significant_ might be missed,
later, by leaving the warning in its mostly-silent state.

otoh, i think this example makes one wonder whether the operation in
question _ought_ to be info rather than warning. of course, it's not
going to change in current latex, but worth thinking about for the
future.
--
Robin Fairbairns, Cambridge

Erik Quaeghebeur

unread,
Jan 12, 2006, 1:16:28 PM1/12/06
to
On Thu, 12 Jan 2006, Robin Fairbairns wrote:

> Walter Schmidt <w.a.s...@fantasymail.de> writes:
>>
>> \makeatletter
>> \let\@font@info\@gobble
>> \let\@font@warning\@gobble
>> \makeatother
>>
>> in the document preamble.
>
> actually, i would be inclined to have:
>
> \makeatletter
> \let\my@@font@warning\@font@warning
> \let\@font@warning\@font@info
> \makeatother
> %
> \usepackage{fourier}
> %
> \makeatletter
> \let\@font@warning\my@@font@warning
> \makeatother
>
> it's just possible that something _significant_ might be missed,
> later, by leaving the warning in its mostly-silent state.
>

Thanks, Walter & Robin, that worked perfectly.

Erik

0 new messages