From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53734 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Printing partly bolded verbatim Date: Mon, 26 Oct 2009 18:02:12 +0100 Message-ID: <4AE5D614.2080703@elvenkind.com> References: <4AE541E1.9050605@elvenkind.com> <8227B179-221F-4950-AB2C-E1AA5E1A527A@rna.nl> 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: ger.gmane.org 1256576554 16629 80.91.229.12 (26 Oct 2009 17:02:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2009 17:02:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 26 18:02:27 2009 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.50) id 1N2Sxf-0007Av-KK for gctc-ntg-context-518@m.gmane.org; Mon, 26 Oct 2009 18:02:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB685C9AF5; Mon, 26 Oct 2009 18:01:17 +0100 (CET) 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 6dCxT4dW3V1Y; Mon, 26 Oct 2009 18:01:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DD54C9AC7; Mon, 26 Oct 2009 18:01:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B782C9AC7 for ; Mon, 26 Oct 2009 18:01:13 +0100 (CET) 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 C1v9EahUcLvl for ; Mon, 26 Oct 2009 18:01:10 +0100 (CET) Original-Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by balder.ntg.nl (Postfix) with ESMTP id 4B595C9AC1 for ; Mon, 26 Oct 2009 18:01:10 +0100 (CET) Original-Received: from [192.168.178.26] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id n9QH2DcI074446 for ; Mon, 26 Oct 2009 18:02:18 +0100 (CET) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.21 (X11/20090330) In-Reply-To: <8227B179-221F-4950-AB2C-E1AA5E1A527A@rna.nl> X-Virus-Scanned: by XS4ALL Virus Scanner 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:53734 Archived-At: Gerben Wierda wrote: > On 26 Oct 2009, at 07:29, Taco Hoekwater wrote: > >> Gerben Wierda wrote: >>> I tried putting >>> /BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX >>> in a source that is prettyprinted with mkii (took that idea form the >>> wiki) >>> but this does not work (no bold in the pretty printed result). Can >>> this be done? >> >> First, if you want to run the options of IfSQ, you need to pass >> that as an option to \typefile: >> >> \expanded{\typefile[IfSQ][]{\detokenize{#1}}}} >> >> (I fear this is only document in texshow-web at the moment) >> >> Second, for commands, you need: >> >> \definetyping[IfSQ][option=commands,numbering=line,bodyfont=9pt] >> >> and this conflicts with option=color: it is one or the other. >> >> Third, option=commands does not work for \typefile, you need >> to have an explicit \startIfSQ ... \stopIfSQ > > Thanks Taco, > > I do not completely understand this, though. You tell me to change > \typefile as well as not to use \typefile. That confuses me. Depends on what you want most: if you want commands, no \typefile, but inlined verbatim. If you want color, you can use \typefile, but with extra options. Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________