[NTG-context] Porting from MkII to MkIV

Peter Schorsch tralalas at freenet.de
Wed Aug 25 00:23:10 CEST 2010


Thanks Wolfgang! Your source code looks a lot different than mine... there 
are some commands I have not seen before... so I have to learn :-)

Unluckily I still get an error message:

! Use of \startPARA doesn't match its definition.
l.21 \startPARA[
                heading={lorem ipsum},mark=test]

What did I wrong?

------------8<--------------

\definenumber[PARANUMBER][way=bysection,prefixsegments=100]
 
\unexpanded\def\startPARA
    {\dosingleempty\dostartPARA}
 
\def\dostartPARA[#1]%
   {\getrawparameters[PARA][heading=,mark=,#1]%
    \incrementnumber[PARANUMBER]%
    \inothermargin{\tfx\getnumber[PARANUMBER]~}%
    \doifsomething\PARAheading{\inmargin{\PARAheading}}%
    \doifsomething\PARAmark
{\textreference[\PARAmark]{XXX/\rawnumber[PARANUMBER]}}%
    \ignorespaces}

\unexpanded\def\stopPARA
    {\blank[medium]}

\starttext

\chapter{Alter novom}

\startPARA[heading={lorem ipsum},mark=test]
Lorem ipsum ...
\stopPARA

\startPARA
Lorem ipsum \in[test] 
\stopPARA

\stoptext



More information about the ntg-context mailing list