* Conflict between blackboard bold font and enumerations
@ 2009-12-31 13:05 Ogam Géry
2009-12-31 16:36 ` Aditya Mahajan
0 siblings, 1 reply; 2+ messages in thread
From: Ogam Géry @ 2009-12-31 13:05 UTC (permalink / raw)
To: ntg-context
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?
Thanks.
Géry
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Conflict between blackboard bold font and enumerations
2009-12-31 13:05 Conflict between blackboard bold font and enumerations Ogam Géry
@ 2009-12-31 16:36 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2009-12-31 16:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-31 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-31 13:05 Conflict between blackboard bold font and enumerations Ogam Géry
2009-12-31 16:36 ` Aditya Mahajan
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).