ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fulvio Satta <Yota_VGA@tiscali.it>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Escaping in LuaTeX
Date: Sun, 2 Jan 2011 13:27:31 +0100	[thread overview]
Message-ID: <201101021327.40701.Yota_VGA@tiscali.it> (raw)
In-Reply-To: <201101020205.04285.Yota_VGA@tiscali.it>


[-- Attachment #1.1: Type: Text/Plain, Size: 1089 bytes --]

Il domenica 02 gennaio 2011 02:04:46 Fulvio Satta ha scritto:
> I have a problem with Lua and the "#" operator.
> If I execute the following code I receive an error.
> 
> \def\luacode%
> {\startluacode
>     local t = {1, 2, 3}
>     tex.print(#t)
> \stopluacode}
> 
> \starttext
>     \luacode
> \stoptext
> 
> ConTeXt give me the message:
> 
> ! Illegal parameter number in definition of \luacode.
> <to be read again>
>                    t
> l.4     tex.print(#t
>                     )
> 
> And if I execute the "H" command I get:
> 
> You meant to type ## instead of #, right?
> Or maybe a } was forgotten somewhere earlier, and things
> are all screwed up? I''m going to assume that you meant ##.
> 
> I've tryed with ##t, whit \#t, with \string#t, with \ctxlua instread of
> \startluacode and \stopluacode, and I've obtained some other errors, but
> ConTeXt always give me an error.
> 
> Maybe should I escape in another manner the "#" operator?

In the previous mail I foget to say my ConTeXt version. I use ConTeXt minimals 
2010.12.31 08:59.

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________

      parent reply	other threads:[~2011-01-02 12:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-02  1:04 Fulvio Satta
2011-01-02  8:30 ` Wolfgang Schuster
2011-01-02 12:27 ` Fulvio Satta [this message]

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=201101021327.40701.Yota_VGA@tiscali.it \
    --to=yota_vga@tiscali.it \
    --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).