From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: New module: simplesteps.
Date: Fri, 14 Dec 2012 17:34:56 +0100 [thread overview]
Message-ID: <5A230BE4-1E50-462D-B050-8FA80197C571@gmail.com> (raw)
In-Reply-To: <CADVh14XZa-j9OPiFV_1niHFe=5BzsV8JZQrF=favObdgcdNbzQ@mail.gmail.com>
Am 14.12.2012 um 17:18 schrieb Andre Caldas <andre.em.caldas@gmail.com>:
>>> I have one question:
>>> - What does it happen when there is a quotation mark (") inside the
>>> parameter? Do I need to "escape" the contents passed to the macro?
>>
>>
>> No you don’t have to but you could have checked yourself :)
>
> Sorry... I didn't try it when I asked, but I had the impression I did
> try it before. In my case, if I use
> \uncover[2,"3]{xxxx}
> I get the error: =P
> ! LuaTeX error <main ctx instance>:1: ')' expected near '3'.
You’re trying to pass a single " to Lua which doesn’t work because you use "" in your Lua code for the string.
When you change your definition for \uncover to
\unexpanded\def\uncover[#1]%
{\ctxlua{
distance = simplesteps.distance_to_step(\!!bs#1\!!es)
...
}}
it works because the " is now only part of the string.
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-12-14 16:34 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-13 22:56 Andre Caldas
2012-12-14 1:04 ` Philipp Gesang
2012-12-14 11:21 ` Andre Caldas
2012-12-14 12:50 ` Wolfgang Schuster
2012-12-14 15:43 ` Andre Caldas
2012-12-14 16:02 ` Wolfgang Schuster
2012-12-14 16:18 ` Andre Caldas
2012-12-14 16:34 ` Wolfgang Schuster [this message]
2012-12-14 16:38 ` Andre Caldas
2012-12-14 17:32 ` Philipp Gesang
2012-12-14 20:35 ` Andre Caldas
2012-12-14 20:57 ` Otared Kavian
2012-12-14 22:26 ` Andre Caldas
2012-12-14 23:07 ` Andre Caldas
2012-12-15 6:02 ` Wolfgang Schuster
2012-12-15 10:28 ` Sietse Brouwer
2012-12-15 10:40 ` Philipp Gesang
2012-12-15 12:07 ` Wolfgang Schuster
2012-12-15 12:34 ` Philipp Gesang
2012-12-15 11:30 ` Andre Caldas
2012-12-15 11:44 ` Marco Patzer
2012-12-15 12:38 ` Wolfgang Schuster
2012-12-15 16:47 ` Sietse Brouwer
2012-12-15 11:49 ` Hans Hagen
2012-12-15 12:03 ` Wolfgang Schuster
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=5A230BE4-1E50-462D-B050-8FA80197C571@gmail.com \
--to=wolfgang.schuster@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).