Finding and removing old font commands

Rich Shepard rshepard at appl-ecosys.com
Wed Mar 13 18:49:05 UTC 2024


Updating documents from several years ago (the current one was originally
written in 2018) pdflatex tells me I have old font commands such as \sc and
\bf in the bibliography. I don't find them when looking in jabrefbib.bib;
for example a 1982 book and a 1940 article.

I need a clue stick on where to look for these errors; an example from the
LyX error log is:
l.4 {\sc
          Aitchison, J.} 1982.
You should note that since 1994 LaTeX2e provides a new font selection scheme
called NFSS2 with several new, combinable font commands. KOMA-Script
classes had defined the old font commands like `\sc' only for compatibility
with old LaTeX 2.09 document styles of Script 2.0. Nevertheless, these
commands are deprecated and undocumented at least since 2003. Since 2013
KOMA-Script classes warned about soon removement of these deprecated commands.
Now, after two decades of LaTeX2e and NFSS2, these commands will not work any
more. If loading a package results in this error message, you should contact
the author of that package and ask him to replace the deprecated font command
`\sc', e.g., by `\normalfont \scshape `. Otherwise you should reconfigure
or replace the package. If you have used the old font command `\sc' yourself,
you should replace it, e.g., by `\normalfont \scshape '.
To make it work for now, you can use the already also deprecated class option
`enabledeprecatedfontcommands'.

The JabRef bibtex source for this article does not contain {\sc.

Help's needed.

TIA,

Rich



More information about the lyx-users mailing list