ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Comment after \startseparatedlist[...]
Date: Tue, 21 Jan 2014 23:19:43 +0100	[thread overview]
Message-ID: <0d28dcbc-934c-4191-a03b-98db3e95ecfd@keima.localdomain> (raw)
In-Reply-To: <20140121232540.5585cffa@Klapprechner1.site>


[-- Attachment #1.1: Type: text/plain, Size: 1566 bytes --]

You can add “commentchar=\letterpercent” to your separatedlist definition which will make % the character for comments, the setups hack isn’t necessary.  

Wolfgang  

On 21.01.2014 23:13:25, Joshua Krämer <joshua.kraemer@gmail.com> wrote: Am Tue, 21 Jan 2014 17:51:17 +0100
schrieb Hans Hagen <pragma@wxs.nl>:

> has to do with catcode changes so % is no longer %

Thanks for the hint. I have tried to do it like that (from Mojca
Miklavec's "My Way"):

\usemodule[database]

\unprotect
\startsetups Data:unix
\catcode`\%=\@@comment
\stopsetups
\protect

\defineseparatedlist [Data]
[
separator=tab,
before=\bTABLE, after=\eTABLE,
first=\bTR, last=\eTR,
left=\bTD, right=\eTD,
setups=unix
]

\starttext

\startData
% time LG LG-SD HG HG-SD p
24 0.74 0.36 1.19 0.51 0.15
48 0.90 0.65 1.45 0.54 0.21
72 1.23 0.35 1.59 0.59 0.27
\stopData

\stoptext

... but still, context stops with an error. I have also tried to use
\# like in the My Way example without success.

Is this supposed to work?

Kind regards,
Joshua Krämer


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

[-- Attachment #1.2: Type: text/html, Size: 1761 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2014-01-21 22:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 20:02 Joshua Krämer
2014-01-20 22:41 ` Hans Hagen
2014-01-21 14:39   ` Joshua Krämer
2014-01-21 16:51     ` Hans Hagen
2014-01-21 22:25       ` Joshua Krämer
2014-01-21 22:19         ` Wolfgang Schuster [this message]
2014-01-21 22:54           ` Joshua Krämer

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=0d28dcbc-934c-4191-a03b-98db3e95ecfd@keima.localdomain \
    --to=schuster.wolfgang@gmail.com \
    --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).