ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Conflict between blackboard bold font and enumerations
Date: Thu, 31 Dec 2009 11:36:06 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.0912311131190.15625@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4B3CA1A8.3000509@gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 778 bytes --]

On Thu, 31 Dec 2009, Ogam Géry wrote:

> Hi,
>
> I've got a problem with "\blackboard". When I use it in the title of an 
> enumeration (title=yes in setupenumerations), I get this error during 
> compilation:
> ! Incomplete \iffalse; all text was ignored after line x. <inserted text> \fi
>
> For instance:
> \starttext
> \defineenumeration[hello]
> \setupenumerations[hello][title=yes]
> \starthello{$\blackboard{ABCD}$}
> \stophello
> \stoptext
>
> Yet if I replace "\blackboard{ABCD}" with \reals (or \naturalnumbers, or 
> \integers etc.), it works fine. What's wrong?

Works fine in MkIV. In MkII, we need

\unexpanded\def\blackboard  #1{\mathortext\domathtext\donothing{\bbd#1}}

Hans, can you apply the attached patch for font-ini.mkii?

Aditya

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1824 bytes --]

diff --git a/font-ini.mkii b/font-ini.mkii
index 9eb532d..89fbb5d 100644
--- a/font-ini.mkii
+++ b/font-ini.mkii
@@ -3248,11 +3248,11 @@
 %
 % newer
 
-\def\os  {\mathortext{\fam\purefamily    {oldstyle}}{\symbolicfont    {OldStyle}}}
-\def\frak{\mathortext{\fam\purefamily     {fraktur}}{\symbolicfont     {Fraktur}}}
-\def\goth{\mathortext{\fam\purefamily      {gothic}}{\symbolicfont      {Gothic}}}
-\def\cal {\mathortext{\fam\purefamily{calligraphic}}{\symbolicfont{Calligraphic}}}
-\def\bbd {\mathortext{\fam\purefamily  {blackboard}}{\symbolicfont  {Blackboard}}}
+\unexpanded\def\os  {\mathortext{\fam\purefamily    {oldstyle}}{\symbolicfont    {OldStyle}}}
+\unexpanded\def\frak{\mathortext{\fam\purefamily     {fraktur}}{\symbolicfont     {Fraktur}}}
+\unexpanded\def\goth{\mathortext{\fam\purefamily      {gothic}}{\symbolicfont      {Gothic}}}
+\unexpanded\def\cal {\mathortext{\fam\purefamily{calligraphic}}{\symbolicfont{Calligraphic}}}
+\unexpanded\def\bbd {\mathortext{\fam\purefamily  {blackboard}}{\symbolicfont  {Blackboard}}}
 
 \definefontsynonym [OldStyle]     [Serif]
 \definefontsynonym [Fraktur]      [Serif]
@@ -3268,10 +3268,10 @@
 
 \ifx\mathtext\undefined \let\mathtext\hbox \fi
 
-\def\fraktur     #1{\mathortext\domathtext\donothing{\frak#1}}
-\def\gothic      #1{\mathortext\domathtext\donothing{\goth#1}}
-\def\calligraphic#1{\mathortext\domathtext\donothing{\cal #1}}
-\def\blackboard  #1{\mathortext\domathtext\donothing{\bbd#1}}
+\unexpanded\def\fraktur     #1{\mathortext\domathtext\donothing{\frak#1}}
+\unexpanded\def\gothic      #1{\mathortext\domathtext\donothing{\goth#1}}
+\unexpanded\def\calligraphic#1{\mathortext\domathtext\donothing{\cal #1}}
+\unexpanded\def\blackboard  #1{\mathortext\domathtext\donothing{\bbd#1}}
 
 %D Torture test:
 %D

[-- Attachment #3: Type: text/plain, Size: 486 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2009-12-31 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-31 13:05 Ogam Géry
2009-12-31 16:36 ` Aditya Mahajan [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=alpine.LNX.2.01.0912311131190.15625@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).