ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Argument of \myheading has an extra }
@ 2012-08-02 12:19 Jan Pohanka
  2012-08-02 12:41 ` Marco Patzer
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Pohanka @ 2012-08-02 12:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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/
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Argument of \myheading has an extra }
  2012-08-02 12:19 Argument of \myheading has an extra } Jan Pohanka
@ 2012-08-02 12:41 ` Marco Patzer
  2012-08-02 13:01   ` Jan Pohanka
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Patzer @ 2012-08-02 12:41 UTC (permalink / raw)
  To: ntg-context

On 2012-08-02 "Jan Pohanka" <xhpohanka@gmail.com> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Argument of \myheading has an extra }
  2012-08-02 12:41 ` Marco Patzer
@ 2012-08-02 13:01   ` Jan Pohanka
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Pohanka @ 2012-08-02 13:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thank you for the quick response and the link...

regards
Jan

Dne Thu, 02 Aug 2012 14:41:12 +0200 Marco Patzer <homerow@lavabit.com>  
napsal(a):

> On 2012-08-02 "Jan Pohanka" <xhpohanka@gmail.com> 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/
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2012-08-02 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-02 12:19 Argument of \myheading has an extra } Jan Pohanka
2012-08-02 12:41 ` Marco Patzer
2012-08-02 13:01   ` Jan Pohanka

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).