From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61179 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Trouble with percent character in ConTeXt text (programm code typing) Date: Tue, 24 Aug 2010 16:15:55 +0200 Message-ID: <4C73D41B.7030300@googlemail.com> References: <4C73CECE.1010203@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282659371 21385 80.91.229.12 (24 Aug 2010 14:16:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 14:16:11 +0000 (UTC) To: hajtmar@gyza.cz, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 24 16:16:09 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OnuIJ-00050U-H8 for gctc-ntg-context-518@m.gmane.org; Tue, 24 Aug 2010 16:16:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B31B0CA5FE; Tue, 24 Aug 2010 16:16:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id z9FBeicBGOJi; Tue, 24 Aug 2010 16:16:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94DD0CA5E6; Tue, 24 Aug 2010 16:16:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2391CA5E6 for ; Tue, 24 Aug 2010 16:16:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c7PaeWmZSVTk for ; Tue, 24 Aug 2010 16:15:59 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id A3587CA5E5 for ; Tue, 24 Aug 2010 16:15:59 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7OEFw8X009507 for ; Tue, 24 Aug 2010 16:15:59 +0200 Original-Received: by bwz6 with SMTP id 6so6463110bwz.14 for ; Tue, 24 Aug 2010 07:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=+m/jTh99fXfacCkcgmoSI/Vz+RaEqpHRiMB1vcqWm9c=; b=BFk0GVbcD/mAqIQVIhNegvxB1UOsesejgrjTRpAnpIcCKcReLJ4VQhaMAI6TQyCxnW 8K7a9gMt5WUhYPXvtBTS2gocm/7Cz8bxnPathRKhqWJAU1celjwPLdjKzF/UB8j7AYT4 81oAKPrvl7iKRRW4RLK1COCVeXsNduMOQyfRY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=PsIg81c3Z2UeyPlvSHpgsQd7yq1yQOPC1DRGmQgXy/ZmUwOogPf1Ygi21IGXe4rwIp eGRrm1PMPNiaLRJYtKBYz0LFR9AjXRBdn236KjuyVUzoOQCB8/63ebt/Rk6jGa6z8mi7 wcuoEwTSIEgG1g6V3MTzZNVH+KiSb83G/ajOo= Original-Received: by 10.204.70.211 with SMTP id e19mr4908287bkj.23.1282659358531; Tue, 24 Aug 2010 07:15:58 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B293897.dip.t-dialin.net [91.41.56.151]) by mx.google.com with ESMTPS id x19sm110442bkv.9.2010.08.24.07.15.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 24 Aug 2010 07:15:57 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <4C73CECE.1010203@gyza.cz> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03CWefWFT - 31ed6b497098 - 20100824 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61179 Archived-At: Am 24.08.10 15:53, schrieb Jaroslav Hajtmar: > Hello all... > > I am converting any manual from HTML to ConTeXt. > There are a lot of programm code. and in the code is very often % > character. > Ther is no problem in \startyping - \stoptyping environment, but I > need using this in text ... for example > > The sequence \type{%0} stands for the whole match. The sequence > \type{%%} stands for a single~\type{%}. > or > For instance, the call \type{string.format('%q', 'a string with > "quotes" and \n new line')} will produce the string: > ... > etc.. > > 1. > > It is clear that this can not work, but is there any satisfactory > solution?? > Something like \startypingintext ... \stoptypingintext i.e. intext > typing environment.. What prevents you from testting this yourself, \type{%} produce a '%' in the text. > 2. > in html code is often emphasis found inside the program code > for example: > \ddd, > > Maybe it's a dumb question, but may be inside emphasis inside verbatim > (\startyping - \stoptyping) environment?? Yes, it's possible to use style commands in verbatim mode but the mechanism in MkII and MkIV are different and it's important to know which system you use. 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 ___________________________________________________________________________________