Coder Social home page Coder Social logo

Many warnings about reguler to m series substitution as corollary from loading main font using regular not m in its font definition file about latex2e HOT 4 CLOSED

jfbu avatar jfbu commented on May 20, 2024
Many warnings about reguler to m series substitution as corollary from loading main font using regular not m in its font definition file

from latex2e.

Comments (4)

u-fischer avatar u-fischer commented on May 20, 2024

Well as latexbug tells you:

! Package latexbug Error: Third-party file(s)
(latexbug)                
(latexbug)                This test file uses third-party file(s)
(latexbug)                
(latexbug)                ==============
(latexbug)                txfonts.sty
(latexbug)                clara.sty
(latexbug)                t1clara-tlf.fd
(latexbug)                ==============
(latexbug)                
(latexbug)                So you should contact the authors
(latexbug)                of these files, not the LaTeX Team!
(latexbug)                (Or remove the packages that load
(latexbug)                them, if they are not necessary to
(latexbug)                exhibit the problem).

The bug is in the clara package which uses non-standard font series names (regular and bold instead of m and b or bx) and redefines \mdseries@rm and \bfseries@rm.

from latex2e.

jfbu avatar jfbu commented on May 20, 2024

Thanks, to explain: it was not clear to me upfront that font packages would modify internals. I did check the fd file globally and noticed usage of regular there, and I figured the LaTeX font system sort of automatically had switched from m to regular (as one of possible aliases to try?) and was then after the fact complaining as I reported, from having toggled perhaps to some other "internal state". Yes I was perhaps too quick to be happy to have found a likely culprit. As I thought these fd files are produced semi-automatically by the authors of pdflatex font support files working from an OpenType starting point, confirmed from seeing

%% Generated by autoinst on 2019/12/24
%%

at top of T1Clara-TLF.df I did not imagine a problem existed inside of clara.sty as it would then by force be a probably widespread one.

from latex2e.

FrankMittelbach avatar FrankMittelbach commented on May 20, 2024

I doubt that Clara is a widespread font, but be it as it may, autoinst got through a lot of revisions and 2019 is rather old in that respect. In any case the way the font is set up is incorrect and if you switch fonts you end up with asking for others fonts using a series "regular" which they don't understand, hence the substitution kicks in and you get all the warnings. In other words the font (and the support package) by itself works but if you then switch to a different font (e.g. txss) then that one doesn't know what to make of the non-standard name "regular" or "bold". So it is not noisy, it shows that something is wrong and while the substituation txss/regular/n ends up with the right font txss/m/n by chance, txss/regular/it ends up withe the wrong font after substitution.

As we do not control or maintain external font support packages, I'm closing this one here.

from latex2e.

jfbu avatar jfbu commented on May 20, 2024

I do not understand the reason why clara.sty redefines \bfseries@rm and \mdseries@rm as its T1Clara-TLF.fd does all the \DeclareFontShape aliasing {b,bx}-->bold and m-->regular where bold and regular are used in the primary \DeclareFontShape's. Anyway for people seeing this

\usepackage{clara}
\makeatletter
\def\bfseries@rm{bx}
\def\mdseries@rm{m}
\makeatother

is work-around for this non-LaTeX2e problem.

from latex2e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.