Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Sorry. I just realized this sentance makes no sense :) -- Ian Main


computers / comp.text.tex / Re: font weight issue with beamer and the newtxtt package

SubjectAuthor
* font weight issue with beamer and the newtxtt packageVincent Lefevre
`* Re: font weight issue with beamer and the newtxtt packageUlrike Fischer
 +- Re: font weight issue with beamer and the newtxtt packageVincent Lefevre
 +- Re: font weight issue with beamer and the newtxtt packageUwe Siart
 `* Re: font weight issue with beamer and the newtxtt packageAxel Berger
  `- Re: font weight issue with beamer and the newtxtt packageUlrike Fischer

1
font weight issue with beamer and the newtxtt package

<20220218175728$bb7a@zira.vinc17.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4747&group=comp.text.tex#4747

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!4JUmjLgy+Wx+kwpjMvj36w.user.46.165.242.75.POSTED!not-for-mail
From: vincent-...@vinc17.net (Vincent Lefevre)
Newsgroups: comp.text.tex
Subject: font weight issue with beamer and the newtxtt package
Date: Fri, 18 Feb 2022 17:57:55 -0000 (UTC)
Organization: a training zoo
Message-ID: <20220218175728$bb7a@zira.vinc17.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="4686"; posting-host="4JUmjLgy+Wx+kwpjMvj36w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.16.0-1-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.9.2
 by: Vincent Lefevre - Fri, 18 Feb 2022 17:57 UTC

Consider the following

\documentclass{beamer}
\usepackage{newtxtt}
\beamertemplatenavigationsymbolsempty
\newcommand{\tst}{$2^{e_{\textnormal{min}}}$}
\begin{document}
\tst \\
\begin{footnotesize}\tst\end{footnotesize}
\end{document}

The newtxtt package makes the second "min" bolder than the first one.
So this looks incorrect.

Moreover, this package is described as follows:
"Enhancement of typewriter fonts from newtx".

But "min" is not in a typewriter font, thus should not be affected
by this package.

Is this a bug in beamer or newtxtt?

--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Re: font weight issue with beamer and the newtxtt package

<1q5h2w6ehzlsw$.dlg@nililand.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4748&group=comp.text.tex#4748

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: new...@nililand.de (Ulrike Fischer)
Newsgroups: comp.text.tex
Subject: Re: font weight issue with beamer and the newtxtt package
Date: Fri, 18 Feb 2022 19:24:01 +0100
Lines: 40
Message-ID: <1q5h2w6ehzlsw$.dlg@nililand.de>
References: <20220218175728$bb7a@zira.vinc17.org>
Reply-To: news3@nililand.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net ZRMISixIXXTc4CRDrdehTgn4BfKXoPKlJTc4w7emJHtXmFzhm1
Cancel-Lock: sha1:jr4SVHVurRPATQ4TRcoH6/6PvPE=
User-Agent: 40tude_Dialog/2.0.15.41de
 by: Ulrike Fischer - Fri, 18 Feb 2022 18:24 UTC

Am Fri, 18 Feb 2022 17:57:55 -0000 (UTC) schrieb Vincent Lefevre:

> Consider the following
>
> \documentclass{beamer}
> \usepackage{newtxtt}
> \beamertemplatenavigationsymbolsempty
> \newcommand{\tst}{$2^{e_{\textnormal{min}}}$}
> \begin{document}
> \tst \\
> \begin{footnotesize}\tst\end{footnotesize}
> \end{document}
>
> The newtxtt package makes the second "min" bolder than the first one.
> So this looks incorrect.

> Is this a bug in beamer or newtxtt?

Neither. newtxtt loads T1 encoding and so the cm-super fonts are
used. They have more optical sizes. So at e.g. 5pt sfss0500.pfb is
used which looks rather bold, while with OT1 encoding cmss8.pfb is
used and scaled down. So the second looks thinner.

You could use \usepackage{lmodern}, it has with T1 similar sizes as
the original cmss fonts. Or you could change the font definitions of
the ec-family so that it no longer uses that optical size.

\documentclass{article}

\begin{document}
\fontfamily{cmss}\selectfont
normal text
\fontsize{5pt}{6pt}\selectfont min
\fontencoding{T1}\selectfont min
\fontfamily{lmss}\selectfont min
\end{document}

--
Ulrike Fischer
https://www.troubleshooting-tex.de/

Re: font weight issue with beamer and the newtxtt package

<20220219001735$0b8f@zira.vinc17.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4750&group=comp.text.tex#4750

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!4JUmjLgy+Wx+kwpjMvj36w.user.46.165.242.75.POSTED!not-for-mail
From: vincent-...@vinc17.net (Vincent Lefevre)
Newsgroups: comp.text.tex
Subject: Re: font weight issue with beamer and the newtxtt package
Date: Sat, 19 Feb 2022 00:23:09 -0000 (UTC)
Organization: a training zoo
Message-ID: <20220219001735$0b8f@zira.vinc17.org>
References: <20220218175728$bb7a@zira.vinc17.org> <1q5h2w6ehzlsw$.dlg@nililand.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="53979"; posting-host="4JUmjLgy+Wx+kwpjMvj36w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.16.0-1-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.9.2
 by: Vincent Lefevre - Sat, 19 Feb 2022 00:23 UTC

In article <1q5h2w6ehzlsw$.dlg@nililand.de>,
Ulrike Fischer <news3@nililand.de> wrote:

> Am Fri, 18 Feb 2022 17:57:55 -0000 (UTC) schrieb Vincent Lefevre:

> > Is this a bug in beamer or newtxtt?

> Neither. newtxtt loads T1 encoding and so the cm-super fonts are
> used.
[...]

Indeed, I can reproduce the issue when replacing \usepackage{newtxtt}
by \usepackage[T1]{fontenc}.

> You could use \usepackage{lmodern}, it has with T1 similar sizes as
> the original cmss fonts. Or you could change the font definitions of
> the ec-family so that it no longer uses that optical size.

I always use \usepackage{lmodern} in my own LaTeX files (this file
isn't mine), which explains I didn't suspect the T1 encoding (which
I always use too) as I had never seen such an issue before.

--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Re: font weight issue with beamer and the newtxtt package

<861qzzb89o.fsf@siart.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4751&group=comp.text.tex#4751

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news-peer.in.tum.de!.POSTED!not-for-mail
From: use...@siart.de (Uwe Siart)
Newsgroups: comp.text.tex
Subject: Re: font weight issue with beamer and the newtxtt package
Date: Sat, 19 Feb 2022 08:55:15 +0100
Organization: Technical University of Munich
Lines: 16
Message-ID: <861qzzb89o.fsf@siart.de>
References: <20220218175728$bb7a@zira.vinc17.org>
<1q5h2w6ehzlsw$.dlg@nililand.de>
NNTP-Posting-Host: o131.tum.vpn.lrz.de
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: news.informatik.tu-muenchen.de 1645257314 2239 129.187.212.131 (19 Feb 2022 07:55:14 GMT)
X-Complaints-To: usenet@in.tum.de
NNTP-Posting-Date: Sat, 19 Feb 2022 07:55:14 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (windows-nt)
Cancel-Lock: sha1:kTSHR9u1L6pJJwBcq1T4j/VSGA4=
 by: Uwe Siart - Sat, 19 Feb 2022 07:55 UTC

Ulrike Fischer <news3@nililand.de> writes:

> Neither. newtxtt loads T1 encoding and so the cm-super fonts are used.
> They have more optical sizes. So at e.g. 5pt sfss0500.pfb is used
> which looks rather bold, while with OT1 encoding cmss8.pfb is used and
> scaled down. So the second looks thinner.
>
> You could use \usepackage{lmodern}, it has with T1 similar sizes as
> the original cmss fonts. Or you could change the font definitions of
> the ec-family so that it no longer uses that optical size.

Ahh, thanks for this analysis. It explains why I didn't see any issue
when compiling Vincent's MWE with lualatex.

--
Uwe

Re: font weight issue with beamer and the newtxtt package

<6210C1FE.20AFAA03@Berger-Odenthal.De>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4752&group=comp.text.tex#4752

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Spa...@Berger-Odenthal.De (Axel Berger)
Newsgroups: comp.text.tex
Subject: Re: font weight issue with beamer and the newtxtt package
Date: Sat, 19 Feb 2022 11:10:06 +0100
Lines: 19
Message-ID: <6210C1FE.20AFAA03@Berger-Odenthal.De>
References: <20220218175728$bb7a@zira.vinc17.org> <1q5h2w6ehzlsw$.dlg@nililand.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: individual.net riStcD7cs/RG89DCoOTR/gvdZ7cUU0jn4orghA1KMuOClxcYX8
Cancel-Lock: sha1:lfj1XgA9PmQ/ouavaMJcn7y6nu8=
X-Mailer: Mozilla 4.8 [en] (Win98; U)
X-Accept-Language: en,de,nl,es,fr
 by: Axel Berger - Sat, 19 Feb 2022 10:10 UTC

Ulrike Fischer wrote:
> You could use \usepackage{lmodern}, it has with T1 similar sizes as
> the original cmss fonts. Or you could change the font definitions of
> the ec-family so that it no longer uses that optical size.

A third option is loading fix-cm.

It is my default, although I don't quite see why. In theory optical font
sizes ought to be better, that's why classic typography invented them in
the first place. It seems we're all so used to mindless scaling by now,
that everything else looks strange.

--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --

Re: font weight issue with beamer and the newtxtt package

<1a68dahi5gydi$.dlg@nililand.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4753&group=comp.text.tex#4753

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: new...@nililand.de (Ulrike Fischer)
Newsgroups: comp.text.tex
Subject: Re: font weight issue with beamer and the newtxtt package
Date: Sat, 19 Feb 2022 17:27:30 +0100
Lines: 34
Message-ID: <1a68dahi5gydi$.dlg@nililand.de>
References: <20220218175728$bb7a@zira.vinc17.org> <1q5h2w6ehzlsw$.dlg@nililand.de> <6210C1FE.20AFAA03@Berger-Odenthal.De>
Reply-To: news3@nililand.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net sKKf8QCS6jam3uIAqKcHfwa+vz9JqSwpsaBGmt1HYL2N0NvU15
Cancel-Lock: sha1:DLDnE8c87CZWYtZXkaUMtThqrcs=
User-Agent: 40tude_Dialog/2.0.15.41de
 by: Ulrike Fischer - Sat, 19 Feb 2022 16:27 UTC

Am Sat, 19 Feb 2022 11:10:06 +0100 schrieb Axel Berger:

>> You could use \usepackage{lmodern}, it has with T1 similar sizes as
>> the original cmss fonts. Or you could change the font definitions of
>> the ec-family so that it no longer uses that optical size.
>
> A third option is loading fix-cm.

That is not a third option but my second. fix-cm change the font
definitions:

\DeclareFontShape{T1}{cmss}{m}{n}{
<-9> ecss0800
<9-10> ecss0900
<10-12> ecss1000
<12-17> ecss1200
<17-> ecss1728
}{}

The line
<-9> ecss0800

force latex to use ecss0800 for all sizes smaller than 9 pt.

> In theory optical font sizes ought to be better,

But in real life font designer are humans and can make errors. Imho
the five pt sans serif font of cm-super looks a bit odd.


--
Ulrike Fischer
https://www.troubleshooting-tex.de/


computers / comp.text.tex / Re: font weight issue with beamer and the newtxtt package

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor