ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: bug with \setupsynonyms
Date: Wed, 13 Apr 2005 18:44:35 +0100	[thread overview]
Message-ID: <20050413184435.11884@mail.comp.lancs.ac.uk> (raw)
In-Reply-To: <20050413150829.GD3514@cebitec.uni-bielefeld.de>

Eckhart Guthöhrlein said this at Wed, 13 Apr 2005 17:08:29 +0200:

>formatting synonyms with \setupsynonyms does not work when these are
>part of e.g. section headers. Example:
>
>I think this is not as it should be.

It might not be as you expected, but it is as it should be. How about this?

\definealternativestyle[mybold] [\emphbf][\emphbf]
\definealternativestyle[myslant][\emphsl][\emphsl]
\abbreviation{XYZ}{whatever}
\setupabbreviations[textstyle=mybold,synonymstyle=myslant]
	This should be bold/slanted: \XYZ/\infull{XYZ}. And it is.
	\section{This ist not: \XYZ/\infull{XYZ}}


"bold" is defined this way, meaning that it avoids applying bold in headings:
 \definealternativestyle [bold] [\bf]  []
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2005-04-13 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-13 15:08 Eckhart Guthöhrlein
2005-04-13 17:44 ` Adam Lindsay [this message]
2005-04-18 12:52   ` Eckhart Guthöhrlein

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=20050413184435.11884@mail.comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).