ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gerion Entrup <gerion.entrup@flump.de>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Combining styles (especially bold and italic)
Date: Wed, 04 Sep 2024 12:20:52 +0200	[thread overview]
Message-ID: <8461606.NyiUUSuA9g@falbala> (raw)
In-Reply-To: <67baceaf-f603-440e-8678-0a98551d71a2@gmx.es>


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

Am Dienstag, 3. September 2024, 20:31:31 MESZ schrieb Pablo Rodriguez via ntg-context:
> On 9/3/24 18:28, Gerion Entrup wrote:
> > Hi,
> >
> > I have the situation that I want to typeset a special formatted name
> > within a section heading.
> > The name contains an italic part while the heading is bold, but both
> > styles are defined at another place.
> > Is there a way to tell ConTeXt to combine them, so that it is bold
> > _and_ italic?
> Hi Gerion,
> 
> you may combine emphasis with bold and set emphasis to italic (default
> is slanted), such as in:
> 
>   \setupbodyfontenvironment [default] [em=italic]
> 
>   \define\somename{HX{\em print}\autoinsertnextspace}
> 
> I hope it helps,
> 
> Pablo

Thank you, that works for the minimal example and in my case but has the side effect to modify emphasis.
I wonder, if there is another solution without side effects.

Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-09-04 10:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03 16:28 [NTG-context] " Gerion Entrup
2024-09-03 18:31 ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-09-04 10:20   ` Gerion Entrup [this message]
2024-09-03 18:34 ` Henning Hraban Ramm
2024-09-04 10:20   ` Gerion Entrup
2024-09-03 18:51 ` Wolfgang Schuster
2024-09-04 10:27   ` Gerion Entrup

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=8461606.NyiUUSuA9g@falbala \
    --to=gerion.entrup@flump.de \
    --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).