ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Schorsch <tralalas@freenet.de>
To: ntg-context@ntg.nl
Subject: Re: Porting from MkII to MkIV
Date: Wed, 25 Aug 2010 00:23:10 +0200	[thread overview]
Message-ID: <i51goe$is6$1@dough.gmane.org> (raw)
In-Reply-To: <4C7420DC.1060305@googlemail.com>

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

___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2010-08-24 22:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-24 19:21 Peter Schorsch
2010-08-24 19:43 ` Wolfgang Schuster
2010-08-24 22:23   ` Peter Schorsch [this message]
2010-08-25 20:44     ` Wolfgang Schuster
2010-08-26 13:58       ` Peter Schorsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='i51goe$is6$1@dough.gmane.org' \
    --to=tralalas@freenet.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).