First question. I am quite new to LaTeX (using XeTeX from TeXLive 2015 recently installed and up to date) and I get the following warning:

LaTeX Font Warning: Font shape `EU1/EBGaramond12-Regular.otf(0)/m/sl' undefined

(Font)              using `EU1/EBGaramond12-Regular.otf(0)/m/n' instead on inpu
t line 136.

Line 136. is the last line of a subsection.

I use KOMA-script srcbook class and fontspec package to use EBGaramond font. As far as I can see there is no apparent change of font anywhere, so I would like to have a way to figure out why LaTeX seems to switch from m/n to m/sl (slanted font if I understand correctly).

Many thanks Best regards













\renewcommand{\sectionmark}[1]{\markboth{#1}{.j.}} % avoid empty \rightfirstmark

\newcommand\currentchapters{Chap \ifstr{\leftfirstmark}{\leftbotmark}%



\section[j. De Moseh/ ou Genese]{Le premier livre de Moseh/\\ {\normalsize dict Genese.}}

\subsection[.j.]{Chapitre premier.}

Dieu crea au com\-men\-ce\-ment le ciel et la ter\-re. Et
la ter\-re es\-toit in\-dis\-po\-see et vuy\-de/ et les te\-ne\-bres
es\-toient sus les aby\-smes/ et le vent de Dieu se demenoit
par dessus les eaues.\\ % special case here for lettrine
Et Dieu dist: Que la lumiere soit faicte/ et la lumiere fut faicte.
Et Dieu veit que la lumiere estoit bonne: \& Dieu separa 
la lumiere des tenebres/ \& appella la lumiere/ jour: et
les tenebres/ nuict. Lors fut faict du soir \& du matin/ le premier jour.


LEs cieulx donc \& la terre furent parfaictz \& tout lexercite diceulx. Et accomplit
au septiesme jour son oeuvre quil avoit faicte. Et Dieu beneist le septiesme jour et le sanctifia: car
en cestuy avoit cesse de toute son oeuvre quil avoit cree pour estre faicte.


OR le serpent (que le Seigneur Dieu avoit faict) estoit plus ruse que tous les animaux des champs: lequel dist a la femme:
Voire ? que Dieu ayt dit: Vous ne mangerez point de tout arbre du jardin ? Adonc la femme respondit au serpent: 
Nous mangeons du fruict des arbres du jardin: mais du fruict de larbre qui est au milieu du jardin Dieu a dist: Vous nen mangerez 
point/ \& ne le toucherez point: affin que ne mouriez. Puis le serpent dist a la femme: Vous ne mourrez nullement. Car Dieu scait
que au jour auquel vous en mangerez/ que voz yeulx seront ouvers: \& serez comme dieux congnoissans le bien et le mal.
La femme donc voyant que larbre estoit bon a manger/ et quil estoit plaisant aux yeulx/ \& arbre desirable pour acquerir science/
print du fruict diceluy/ \& en mangea: \& en donna aussi a son mary qui estoit avec elle/ lequel en mangea. Lors les yeulx de eulx deux
furent ouvers/ \& congneurent quilz estoient nudz/ si cousirent ensemble des fueilles de figuier/ \& se feirent des ceinctures.

  • Just to clarify, line 136 is empty in the source. Happy to provide the source if needed. – Joseph Oct 15 '15 at 11:38
  • 3
    /sl/ means slanted, i.e. the font EBGaramond12-Regular does not have the slanted characters and will use the normal shape for this – user31729 Oct 15 '15 at 11:40
  • 3
    Hm, should be \setkomafont{pagehead}{\normalfont\normalcolor} – Johannes_B Oct 15 '15 at 11:57
  • 2
    Don't let people waste their time by guessing what you are doing. Show a complete minimal example. – Ulrike Fischer Oct 15 '15 at 11:59
  • 1
    With \addtokomafont you add something, since slshape is already there you get the warning, even if slshape is overwritten by upshape later. With setkomafont, you start from scratch. – Johannes_B Oct 15 '15 at 15:22

While this doesn't answer the question, you can select the slanted font using something like the following code:

  SlantedFont = EBGaramond12-Regular.otf ,
  SlantedFeatures = {FakeSlant} ,
  ItalicFont  = EBGaramond12-Italic.otf ,

hello \textsl{hello} \textit{hello}


In fact, you could even load it with a bright colour (SlantedFeatures = {FakeSlant,Colour=FF0000}) so that you can see where it gets used.

Personally, I'd avoid a slanted shape and simply load the italic shape instead. Weirdly enough, that (silently substituting slanted for italic) should be default in fontspec, so I'm not sure how you're loading the EBGaramond font. You can force it, of course, with:

  SlantedFont = EBGaramond12-Italic.otf ,
  ItalicFont  = EBGaramond12-Italic.otf ,
| improve this answer | |
  • Thanks for your reply, this removes the warning. But was still wondering what caused the warning in first place (just for curiosity and also to learn). Best, Joseph – Joseph Oct 15 '15 at 12:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.