From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62217 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: Verbatim text loaded from a file? Date: Fri, 1 Oct 2010 11:06:18 +0200 Message-ID: <5304265B-0513-4AA5-A674-DCE6681DB0B1@fiee.net> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="windows-1252"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285923992 27507 80.91.229.12 (1 Oct 2010 09:06:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 09:06:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 01 11:06:30 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 1P1bZV-0005ZO-TR for gctc-ntg-context-518@m.gmane.org; Fri, 01 Oct 2010 11:06:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58F30CA6D6; Fri, 1 Oct 2010 11:06:29 +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 QOODHhvr4pkw; Fri, 1 Oct 2010 11:06:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7440BCA6BD; Fri, 1 Oct 2010 11:06:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B92D0CA6BD for ; Fri, 1 Oct 2010 11:06:24 +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 M3teqttdZ3t5 for ; Fri, 1 Oct 2010 11:06:22 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id E327DCA65F for ; Fri, 1 Oct 2010 11:06:21 +0200 (CEST) Original-Received: from turan.fiee.net (turan.fiee.net [87.230.77.106]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9196K74015676 for ; Fri, 1 Oct 2010 11:06:21 +0200 X-No-Auth: unauthenticated sender Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [127.0.0.1]) by turan.fiee.net (Postfix) with ESMTP id 0E59C2E144434 for ; Fri, 1 Oct 2010 11:06:20 +0200 (CEST) Original-Received: from [10.128.9.9] (165-178.77-83.cust.bluewin.ch [83.77.178.165]) by turan.fiee.net (Postfix) with ESMTP for ; Fri, 1 Oct 2010 11:06:19 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.936) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=87.230.77.106; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dDdl6kEd - 34ee01502952 - 20101001 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:62217 Archived-At: Am 2010-10-01 um 09:51 schrieb Proch=E1zka Luk=E1=9A Ing. - Pontex s. r. o.: > I'd need to show contents of a (text) file like verbatim text (with = > a monospace font). > > So to do something being described at http://wiki.contextgarden.net/Verba= tim_text = > using \startcode SOME TEXT \stop code, but the difference is that I = > don't need to write SOME TEXT manually but I need to load it from a = > (text) file. At Verbatim_text you overlooked the small hint to \typefile: http://wiki.contextgarden.net/Reference/en/typefile (also mentioned at http://wiki.contextgarden.net/Reference/en/starttyping) > Moreover, I'd need to have the following options: > - To alter the font used for numbering lines, so that it would be = > smaller than the normal text. \definetyping[MyStyle] \setuptyping[MyStyle][style=3D{\tfx\tt}] see http://wiki.contextgarden.net/Reference/en/setuptyping Doesn't look like you really searched the wiki... > - To specify number of the first and/or last line to be printed. I remember something like that, please search the mailing list archive = and add your findings to the wiki pages. > - The input file may contain the end-of-page character, \0C. So I'd = > need this char > - to be ignored > - and/or to force printing from a new page. I don't know, never used ...typing myself. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________