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?
Adityadiff --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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________