ConTeXt  ver: 2008.07.10 08:40 MKIV  fmt: 2008.7.10  int: english/english

See test.tex in attachement.

The following combinations give the following results after compiling with

   texmfstart texexec --lua test.tex

-------------------------------------------------------------------------------

(1) \definefont[myChapterFont][myHeadingsFont sa 1.728]  % with

\setuphead[chapter][style=myChapterFont] % or
\setuphead[chapter][style=\myChapterFont] % or
\setuphead[chapter][style={\myChapterFont}]

generates the following compile error...

! Font \**myChapterFont**:=myHeadingsFont at 20.736pt not loadable: metric
data not found or bad.
<to be read again>
                   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
                                                  \let
\localrelativefontsiz...
\dosetfontattribute ...me [EMAIL PROTECTED] \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko
#1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection
{#1}{#3}{#4}...
l.54 \chapter{chapter test}

?
! Emergency stop.
<to be read again>
                   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
                                                  \let
\localrelativefontsiz...
\dosetfontattribute ...me [EMAIL PROTECTED] \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko
#1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection
{#1}{#3}{#4}...
l.54 \chapter{chapter test}

!  ==> Fatal error occurred, no output PDF file produced!

-------------------------------------------------------------------------------

(2) \definefont[myChapterFont][Sans sa 1.728]  % with

\setuphead[chapter][style=myChapterFont] % or
\setuphead[chapter][style=\myChapterFont] % or
\setuphead[chapter][style={\myChapterFont}]

displays the chapter heading with a scaled LMSans10-Regular font

-------------------------------------------------------------------------------

(3) this displays the chapter heading font correctly

\setuphead[chapter][style={\tfc\myHeadingsFont}]

-------------------------------------------------------------------------------

(4) \setuphead[chapter][style={\tfc\Sans}]

generates the following compile error...

! Undefined control sequence.
\@@kochapterstyle ->\tfc \Sans

\doifdefinedelse #1->\edef \p!defined {#1
                                         }\ifcsname \detokenize [EMAIL 
PROTECTED]
{\p!def...
\doconvertfont #1->\doifdefinedelse [EMAIL PROTECTED]@ #1}
                                                   {\doifelsenothing
{#1}\go...
\dosetfontattribute ...me [EMAIL PROTECTED] \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko
#1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection
{#1}{#3}{#4}...
l.54 \chapter{chapter test}

?
! Emergency stop.
\@@kochapterstyle ->\tfc \Sans

\doifdefinedelse #1->\edef \p!defined {#1
                                         }\ifcsname \detokenize [EMAIL 
PROTECTED]
{\p!def...
\doconvertfont #1->\doifdefinedelse [EMAIL PROTECTED]@ #1}
                                                   {\doifelsenothing
{#1}\go...
\dosetfontattribute ...me [EMAIL PROTECTED] \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko
#1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection
{#1}{#3}{#4}...
l.54 \chapter{chapter test}

!  ==> Fatal error occurred, no output PDF file produced!

-------------------------------------------------------------------------------


How come ?

Alan

Attachment: test.tex
Description: TeX document

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to