ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Italic in margins and footntes
Date: Wed, 29 Jun 2016 21:21:02 +0200	[thread overview]
Message-ID: <602e5aa4-c3ef-d5b1-1856-3a0957e4c5ae@gmx.es> (raw)
In-Reply-To: <2000123371.420155503.1467216411364.JavaMail.root@spooler6-g27.priv.proxad.net>

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	other threads:[~2016-06-29 19:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 10:14 crop marks Thomas Fehige
2016-06-29 10:36 ` Wolfgang Schuster
2016-06-29 10:37 ` Thomas A. Schmitz
2016-06-29 12:34   ` Thomas Fehige
2016-06-29 12:35   ` Thomas Fehige
2016-06-29 16:06     ` Italic in margins and footntes Jean-Pierre Delange
2016-06-29 19:21       ` Pablo Rodriguez [this message]
2016-06-30 12:33         ` Jean-Pierre Delange
2016-06-30 18:10           ` Pablo Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=602e5aa4-c3ef-d5b1-1856-3a0957e4c5ae@gmx.es \
    --to=oinos@gmx.es \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).