LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Proportional Font
Show HTML Part by Default
Show All Mail Headers

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

Print Reply
Don Hosek <[log in to unmask]>
Mon, 22 Mar 2021 10:58:47 -0500
text/plain (14 lines)
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

ATOM RSS1 RSS2