From: "Stefan Müller" <warrence.stm@gmx.de>
To: ntg-context@ntg.nl
Subject: Re: Custom lua script (updating and debugging)
Date: Wed, 29 Sep 2010 19:47:54 +0200 [thread overview]
Message-ID: <4CA37BCA.7020801@gmx.de> (raw)
In-Reply-To: <201009282353.40541.warrence.stm@gmx.de>
Sorry for replying to the wrong thread...
I just wanted to say that it works now. I justed started again from
scratch and did the same as below. No idea what caused the trouble.
Thanks again,
Stefan.
On 28.09.2010 23:53, Stefan Müller wrote:
> Hi,
>
> thanks for the fast reply Mojca! Unfortunately it is still not working. Here
> is what I did. I'm afraid it has possibly more to do with pretty printers in
> particular (than lua scripts in general), but actually I have no idea.
>
> I took the file
> MyConTeXtDir/tex/texmf-context/tex/context/base/pret-lua.lua
> and copied it to
> MyConTeXtDir/tex/texmf-local/tex/context/user/pret-pas.lua
> Next I replaced every occurance of "lua" in this new file by "pas" (so this
> changed the name of one function and renamed the visualizer itself). Then I
> ran "context --generate".
>
> My testfile is added below. The "end" is typeset as if pret-pas.lua wouldn't
> exist. If I change "option=PAS" to "option=LUA" it works as intended ("end" is
> green). What is going on here? Any help is appreciated.
>
> \installprettytype[PAS][PAS]
> \setupcolors[state=start]
> \setuptyping[option=color]
> \definetyping[PAS][option=PAS, escape=yes, tab=4, numbering=line]
>
> \starttext \startPAS
> end
> \stopPAS \stoptext
>
> Thanks in advance,
> Stefan.
>
> PS: Additional question: Is it possible to integrate "option=color" into the
> "\definetyping[PAS]"? option={PAS,color}?
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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:[~2010-09-29 17:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 14:08 metapost: unable to make mpx file error Alan BRASLAU
2010-09-28 21:18 ` Hans Hagen
2010-09-28 21:53 ` Custom lua script (updating and debugging) Stefan Müller
2010-09-29 17:47 ` Stefan Müller [this message]
[not found] <mailman.1.1285668002.22946.ntg-context@ntg.nl>
2010-09-28 10:41 ` Stefan Müller
2010-09-28 19:30 ` Mojca Miklavec
2010-09-29 6:50 ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-09-29 7:23 ` 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=4CA37BCA.7020801@gmx.de \
--to=warrence.stm@gmx.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).