ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: placeformula with active colon
Date: Tue, 26 Oct 2004 12:54:45 +0200	[thread overview]
Message-ID: <417E2CF5.6050608@wxs.nl> (raw)
In-Reply-To: <1098737590.328.5.camel@tempete.lac.qc.ca>

David Munger wrote:

> Hello,
> 
> 
> Making the colon active results in errors when using colons in formula
> labels. Example:
> 
> \useencoding[ffr]
> \mainlanguage [fr]
> \starttext
> \placeformula[eq:foo]
> \startformula
>   a = 0
> \stopformula
> \stoptext

In your cont-new.tex, add:

\unprotect

\unexpanded\def\directdiscretionary#1%
   {\convertargument#1\to\discretionarytoken
    \let\textmodediscretionary\compoundhyphen
    \expandafter\ifx\csname\@tmd@\string#1\endcsname\relax
      \prewordbreak
      \discretionary{\hbox{#1}}{}{\hbox{#1}}%
      \allowbreak\postwordbreak
    \else
      \csname\@tmd@\string#1\endcsname
    \fi}

\protect

(or in supp-lan.tex, add the \unexpanded and recompile a format)

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

      reply	other threads:[~2004-10-26 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 20:53 David Munger
2004-10-26 10:54 ` Hans Hagen [this message]

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=417E2CF5.6050608@wxs.nl \
    --to=pragma@wxs.nl \
    --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).