LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Mon, 22 Mar 2021 17:05:22 +0000
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=utf-8; format=flowed
From: Joseph Wright <[log in to unmask]>
Parts/Attachments: text/plain (21 lines)
On 22/03/2021 15:58, Don Hosek wrote:
> fontdef.dtx defines the various series, family and style defaults using \newcommand, e.g.
> \newcommand\itdefault{it}
> \newcommand\sldefault{sl}
> \newcommand\scdefault{sc}
> \newcommand\updefault{up}
> This gives defines them as \long However, the commands \fontfamily, \fontseries and \fontshape define \f@family, \f@series and \f@shape using \edef which maked the resulting values not \long
> This means that code that would do something like, e.g., \ifx\f@shape\itdefaultā€¦\fi will not work as expected.
> The simplest fix would be to use the starred form of \newcommand for setting the various \XXdefault values. I would imagine that this should not break anything
> -dh

They have been like this *for ever*: it's a feature I would say.