ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: \startstopcomment fails on latest beta
Date: Fri, 3 Feb 2012 15:19:11 +0100	[thread overview]
Message-ID: <D0E11BC2-70A6-4FB9-A107-521295785A0D@googlemail.com> (raw)
In-Reply-To: <87k444i8jf.fsf@universe.krase.net>


Am 03.02.2012 um 10:13 schrieb Marco Pessotto:

> This is better, as the compilation doesn't fail and the comment appears
> as comment, but on the page there is a literal "[title=,]" (in the first
> example) or "[title=commentname,]" in the second and third example.

scrn-wid.mkvi

\def\scrn_comment_start_indeed[#title][#settings]%
  {\bgroup
   \doifassignmentelse{#title}
-    {\setupcurrentcomment[\currentcomment][#title]}
-    {\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}%
+    {\setupcurrentcomment[#title]}
+    {\setupcurrentcomment[\c!title=#title,#settings]}%
   \def\scrn_comment_stop{\scrn_comment_inject\egroup}%
   \grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}}

@Hans: \scrn_comment_start_indeed is defined twice 

\def\scrn_comment_start_indeed
  {\doifelse{\commentparameter\c!state}\v!start
     {\scrn_comment_start_indeed}
     {\scrn_comment_start_ignore}}

\def\scrn_comment_start_indeed[#title][#settings]%
  {\bgroup
   \doifassignmentelse{#title}
     {\setupcurrentcomment[\currentcomment][#title]}
     {\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}%
   \def\scrn_comment_stop{\scrn_comment_inject\egroup}%
   \grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}}

Wolfgang
___________________________________________________________________________________
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:[~2012-02-03 14:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-01 18:31 Marco Pessotto
2012-02-02 23:27 ` Hans Hagen
2012-02-03  9:13   ` Marco Pessotto
2012-02-03 14:19     ` Wolfgang Schuster [this message]
2012-02-03 14:54       ` Marco Pessotto
2012-02-03 15:13       ` Hans Hagen

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=D0E11BC2-70A6-4FB9-A107-521295785A0D@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).