ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Question on style-italic vs style=italicface
@ 2021-09-26 20:13 Rik Kabel via ntg-context
  2021-09-26 20:29 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Rik Kabel via ntg-context @ 2021-09-26 20:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Rik Kabel


[-- Attachment #1.1: Type: text/plain, Size: 1145 bytes --]

Hello list mavens,

What are the circumstances under which style=italicface should be used 
instead of style=italic. I note a difference when I define highlighting. 
I expected to see no difference in the line before and line after the 
hairline the example below, but see that italicface adapts to nesting, 
while italic does not:

Are there other places where this makes a difference?

    \setupbodyfontenvironment
             [default]
             [em=italicface] %same with italic for this example
    \definehighlight
             [emIt]
             [style=italic]
    \definehighlight
             [emIf]
             [style=italicface]
    \definehighlight
             [emEm]
             [style=\em]

    \starttext

    {\em abc {\em def} ghi}: \type{\em}

    \emph{abc {\emph def} ghi}: \type{\emph}

    \emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

    \emIf{abc {\emIf def} ghi}: \type{\emIf
    \definehighlight[style=italicface]}

    \hairline

    \emIt{abc {\emIt def} ghi}: \type{\emIt \definehighlight[style=italic]}

    \stoptext

-- 
Rik

[-- Attachment #1.2.1: Type: text/html, Size: 1905 bytes --]

[-- Attachment #1.2.2: WyhtCuJ9lKDXssHY.png --]
[-- Type: image/png, Size: 22003 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-24 15:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-26 20:13 Question on style-italic vs style=italicface Rik Kabel via ntg-context
2021-09-26 20:29 ` Wolfgang Schuster via ntg-context
2021-09-26 22:20   ` Rik Kabel via ntg-context
2021-09-26 22:37     ` Wolfgang Schuster via ntg-context
2021-09-26 22:49       ` Rik Kabel via ntg-context
2021-10-02  8:34         ` Wolfgang Schuster via ntg-context
2021-10-02  9:46           ` Henning Hraban Ramm via ntg-context
2021-10-24 15:35             ` Wolfgang Schuster via ntg-context

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).