On 06/29/2016 06:06 PM, Jean-Pierre Delange wrote:
> 
> Dear ConTeXt wizards,
> 
> I am currently writing a course. I need some notes in the left
> margin. I have written this in the preamble :
> 
> \setuppapersize[A4]
> \setuplanguage[fr]
> \setuplayout [backspace=40mm]
> \setuppagenumbering[location={header,inright}]
> \setupmargindata[inmargin][location=left]
> \setupmargindata[inmargin][style={\switchtobodyfont[ss,10pt]}]
> \setupbodyfontenvironment[default][em=italic]
> \definefallbackfamily [mainface] [serif] [New Athena Unicode] 
> [preset=range:greek]% for some words in greek
> \definefontfamily [mainface] [serif] [GFS Didot]
> \setupbodyfont[mainface]
> \setupindenting[1.5em]
> \setupindenting[yes]
> \setupframedtexts[][left,10pt]
> \starttext
> 
> A problem occurs : while some words are well printed in italics in
> the body text (and in footnotes), this is not the case in the left margin
> with this code : \inmargin[][align=middle]{Cf. Platon, {\em Timée}, 29b.}

Hi Jean-Pierre,

you have to define a sans font after the serif font, such as in:

  \definefontfamily [mainface] [sans] [GFS Neohellenic]

BTW, latest beta versions require force=yes in \definefallbackfamily.

Just out of curiosity, do you plan to post the resulting PDF file online?

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to