Argument of \myheading has an extra }
Hello, this worked in recent versions, I think... \def\myheading#1#2{% #1 #2} \setuphead[section,subject] [command={\myheading}] \starttext \section{Hello} \stoptext but now I'm getting en error mtx-context | run 1: luatex --fmt="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en" --jobname="git_info2" --lua="/home/honza/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:input="./git_info2.tex" --c:kindofrun=1 "cont-yes.mkiv" This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012) \write18 enabled. (/home/honza/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english system > cont-new.mkiv loaded (/home/honza/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) fonts > latin modern fonts are not preloaded languages > language en is active (git_info2.tex{/home/honza/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/home/honza/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/honza/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded structure > sectioning > section @ level 3 : 0.0.1 -> Hello ! Argument of \myheading has an extra }. system > tex > error on line 11 in file git_info2.tex: Argument of ... 1 2 \def\myheading#1#2{% 3 #1 #2} 4 5 \setuphead[section,subject] 6 [command={\myheading}] 7 8 9 \starttext 10 11 >> \section{Hello} 12 13 \stoptext 14 <inserted text> \par <to be read again> } \strc_rendering_inject_number_and_text ...ommand } \ifx \p_command \empty \di... \strc_rendering_place_head_number_and_text ...ext }\fi \strc_rendering_stop_... \strc_sectioning_handle ...e_head_number_and_text \else \strc_rendering_plac... l.11 \section{Hello} regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/
On 2012-08-02 "Jan Pohanka"
\def\myheading#1#2{% #1 #2}
\define[2]\myheading{% #1 #2} Also interesting in this context: http://article.gmane.org/gmane.comp.tex.context/77610 Marco
Thank you for the quick response and the link...
regards
Jan
Dne Thu, 02 Aug 2012 14:41:12 +0200 Marco Patzer
On 2012-08-02 "Jan Pohanka"
wrote: Hi Jan,
\def\myheading#1#2{% #1 #2}
\define[2]\myheading{% #1 #2}
Also interesting in this context: http://article.gmane.org/gmane.comp.tex.context/77610
Marco
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/
participants (2)
-
Jan Pohanka
-
Marco Patzer