[NTG-context] why does not this style work?
I want to use a dedicated font size for the chapter title, so I wrote this piece of code: %% \def\mybig% {\dosingleempty\dosanhao} \def\dosanhao[#1]% {\switchtobodyfont[24pt]} \setuphead [chapter] [style=\mybig] \starttext \chapter{hello, world} \stoptext % However, the error is: % ! Use of \dosanhao doesn't match its definition. \doifnextcharelse ...token =#1\def \!!stringa {#2} \def \!!stringb {#3}\futur... \@@kochapterstyle ->\mybig \bf \doconvertfont #1->\edef \p!defined {#1 }\ifx \p!defined \empty \else [EMAIL PROTECTED] \d... \dosetfontattribute ...me [EMAIL PROTECTED] \endcsname \fi \empty \doplaceheadnumbertext ...bute {\??ko #1}\c!style \dosetcolorattribute {\??k... \dodododoconstructhead ...{\finalsectionnumber }}} \writesection {#1}{#3}{#4}... l.11 \chapter{hello, world} %%% If I replace the \mybig with \switchtobodyfont in style=xx, it works fine. What's the difference between them? and why the former does not work? -- ruini ___ 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 ___
Re: [NTG-context] strange file name
luigi scarso gmail.com> writes: > > > On Sat, Oct 25, 2008 at 6:12 PM, Ruini Xue gmail.com> wrote: > source file: > > Watch for the space after knuth > {\input knuth\relax} > I just want to know why \input includes the right brace "}" in the file name. -- ruini ___ 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 ___
[NTG-context] strange file name
source file: %% \starttext {\input knuth} \stoptext %%% compiling it produces error: ! I can't find file `knuth}'. l.2 {\input knuth} Why does tex recognize "knuth}" but not "knuth" as the file name? -- ruini ___ 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 ___
[NTG-context] Can I use \startbuffer in other command?
I have two questions: 1. How to define a start-stop command to accept options? I want to define a start-stop command which can accept options (as \startitemize [packed]), however the \definestartstop does not support this. I found a solution in the list: http://www.ntg.nl/pipermail/ntg- context/2007/025969.html Unfortunately, when I use \startbuffer in it, context prints "*" in the terminal and waits for input. So it comes to the second question 2. Can \startbuffer be used in other commands? My code is as following: \def\startabstract{% \dosingleempty\dostartabstract} \long\def\dostartabstract[#1]#2\stopabstract{% \startbuffer[#1] #2\stopbuffer} \let\stopabstract\relax \startabstract [long] a long abstract \stopabstract \startabstract [short] a short abstract \stopabstract -- ruini ___ 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 ___
[NTG-context] How to test font availability?
I want to define sans to A.ttf, and if A.ttf is unavailable, B.ttf will be used. So the question is, how to test whether a font is available? Or is it possible to provide a list of candidates (e.g., \definefontsynonym[sans][name:A.ttf;name:B.ttf])? -- ruini ___ 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 ___
Re: [NTG-context] What's the difference between \dodoub leargument and \dodoubleempty?
Wolfgang Schuster googlemail.com> writes: > > You need a comment sign at the end of the line. > > \def\dotest[#1][#2]% > All my faults come from the last comment sign! :) Thanks -- ruini ___ 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 ___
Re: [NTG-context] What's the difference between \dodoub leargument and \dodoubleempty?
Hans Hagen wxs.nl> writes: > > Ruini Xue wrote: > > It's difficult to understand them from the code. > > the first one issues a warning when no argument is given You mean both of them ask the following \command to take two mandatory arguments? I try this example: == \def\test {\dodoubleargument\dotest} % use \dodoubleempty \def\dotest[#1][#2] {\iffirstargument First arg: #1 \fi \ifsecondargument Second arg: #2 \fi} \test[ok][ok] % 1. this is ok \test [ok] [] % 2. warning? \test [wrong] % 3. Error: lack one arg == both 1 and 2 can print "First arg" and "Second arg", so I am confused what's "no argument is given" -- ruini ___ 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 ___
[NTG-context] What's the difference between \dodoubleargument and \dodoubleempty?
It's difficult to understand them from the code. -- ruini ___ 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 ___
[NTG-context] No mac update in the minimals?
It seems that the Mac minimal has not been updated? -- ruini ___ 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 ___
[NTG-context] presentation `s-pre-13' conflicts with `rsteps' module?
hello, I am making a presentation with `s-pre-13', and it seems module `rsteps' conflicts with it. use the example in t-rsteps.tex, but replace `pre-original' with 's-pre-13'. % <<<>>>END mini example The error is: [1.1] ! Missing \endcsname inserted. \@@koSubjectsection \countervalue #1->\ifcsname #1 \endcsname \csname #1\endcsname \fi \determineheadnumber [EMAIL PROTECTED] {\@@sectie } }\egroup \doStartSteps ...eheadnumber [EMAIL PROTECTED] ] \xdef [EMAIL PROTECTED] l.45 \StopSteps btw, please cc the replay to me, since I do not subscribe the list. Best Ruini ___ 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 ___
[NTG-context] rsteps module conflicts with s-pre-13?
hello, I am making a presentation with `s-pre-13', and it seems module `rsteps' conflicts with it. use the example in t-rsteps.tex, but replace `pre-original' with 's-pre-13'. % <<<>>>END mini example The error is: [1.1] ! Missing \endcsname inserted. \@@koSubjectsection \countervalue #1->\ifcsname #1 \endcsname \csname #1\endcsname \fi \determineheadnumber [EMAIL PROTECTED] {\@@sectie } }\egroup \doStartSteps ...eheadnumber [EMAIL PROTECTED] ] \xdef [EMAIL PROTECTED] l.45 \StopSteps btw, please cc the replay to me, since I do not subscribe the list. Best Ruini ___ 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 ___