ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: Hans Hagen <pragma@wxs.nl>
Cc: "ntg-context@ntg.nl >> mailing list for ConTeXt users"
	<ntg-context@ntg.nl>
Subject: Re: Trouble with # character in TABLE environment...& trouble with \starttyping environment too
Date: Wed, 25 Aug 2010 20:49:57 +0200	[thread overview]
Message-ID: <4C7565D5.8090100@gyza.cz> (raw)
In-Reply-To: <4C74FFC9.4030507@wxs.nl>


Thanx Hans,

I did not think that inside \starttyping -- \stoptyping environment 
ConTeXt could do such a check this thing.

Thanks so much. Health Jaroslav

Dne 25.8.2010 13:34, Hans Hagen napsal(a):
> On 25-8-2010 12:07, Jaroslav Hajtmar wrote:
>> Ok. Thanx Hans.
>> I solve it with \#\type{patt} it look like as have it and therefore isnt
>> problem.
>>
>> BUT now I have problem with \starttyping - \stoptyping environment too.
>>
>> here is example:
>>
>> This works OK...
>>
>> \starttyping
>> c = re.compile([[
>> longstring <- ('[' {:eq: '='* :} '[' <close>) => void
>> close <- ']' =eq ']' / . <close>
>> ]], {void = function () return true end})
>>
>> \stoptyping
>>
>>
>> But when I add last row, then stop work and get error message:
>>
>> \starttyping
>> c = re.compile([[
>> longstring <- ('[' {:eq: '='* :} '[' <close>) => void
>> close <- ']' =eq ']' / . <close>
>> ]], {void = function () return true end})
>>
>> print(c:match'[==[]]===]]]]==]===[]') --> 17
>> \stoptyping
>>
>>
>> Message error surprised me:
>
> mkiv happens to use === itself so either change your example to use 4 
> ='s or adapt this:
>
> \unprotect
>     \def\!!bs{[=====[}
>     \def\!!es{]=====]}
> \protect
>
> (i might even move to == instead of === as it's saves tokens)
>
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
>

___________________________________________________________________________________
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:[~2010-08-25 18:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-24 13:53 Trouble with percent character in ConTeXt text (programm code typing) Jaroslav Hajtmar
2010-08-24 14:15 ` Wolfgang Schuster
2010-08-24 14:30   ` Jaroslav Hajtmar
2010-08-25  7:27   ` Trouble with # character in TABLE environment Jaroslav Hajtmar
2010-08-25  9:46     ` Hans Hagen
2010-08-25 10:07       ` Trouble with # character in TABLE environment...& trouble with \starttyping environment too Jaroslav Hajtmar
2010-08-25 11:34         ` Hans Hagen
2010-08-25 18:49           ` Jaroslav Hajtmar [this message]
2010-08-25 18:55             ` Hans Hagen
2010-08-25 18:59           ` Aditya Mahajan
2010-08-25 19:03             ` Hans Hagen
2010-08-25 10:42       ` [***SPAM***] Re: Trouble with # character in TABLE environment Peter Münster
2010-08-25 11:26         ` 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=4C7565D5.8090100@gyza.cz \
    --to=hajtmar@gyza.cz \
    --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).