🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.tex
Article #727

Re: verbatim input

#727
From: Olaf Maennig
Date: Thu, 10 Sep 1992 06:10
29 lines
1781 bytes
In article <93EECC61@p4000.f4.n246.z2.fidonet.org>,
Christian_Koenig@p4000.f4.n246.z2.fidonet.org (Christian Koenig) writes:
|> \newcounter{lineno}
|> 
|> \def\verbatimlisting#1{\setcounter{lineno}{0}%
|>     \begingroup \@verbatim \frenchspacing \@vobeyspaces \parindent=20pt
|>     \everypar{\stepcounter{lineno}\llap{\thelineno\ \ }}\input#1
|>     \endgroup
|> }

Hallo.

Da ich mich mit TeX nicht so auskenne, die Frage: wie programmiert man einen
solchen Aufruf:
	\verbatimlisting{startno}{file}

Ich m"ochte ab und an auch mal die Zeilennummer vorgeben. Meine intuitive
Idee, die Null durch startno zu ersetzen und die '#<zahl>' entsprechend zu
"andern, hat nichts gebracht ausser einem Fehler. Wahrscheinlich habe ich es
mir da wohl zu einfach gemacht!?

Tschau.
-- 

 ---------------------------------------------------------------------------
     _                   Department of Computer Science IV
    / \     |\/|         University of Dortmund, Germany
    \_/laf  |  |aennig   e-mail: maennig@siggi.informatik.uni-dortmund.de
 ---------------------------------------------------------------------------
Technical Details
Message-ID: <18mosnINN1i9@fbi-news.Informatik.Uni-Dortmund.DE>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!nigel.msen.com!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!Informatik.Uni-Dortmund.DE!fred!maennig
References: <A6239@KA.maus.de> <93EECC61@p4000.f4.n246.z2.fidonet.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!nigel.msen.com!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!Informatik.Uni-Dortmund.DE!fred!maennig
From: maennig@fred.informatik.uni-dortmund.de (Olaf Maennig)
Newsgroups: de.comp.tex
Subject: Re: verbatim input
Date: 10 Sep 1992 06:10:31 GMT
Organization: CS Department, Dortmund University, Germany
Lines: 29
Sender: maennig@fred (Olaf Maennig)
Distribution: world
Message-ID: <18mosnINN1i9@fbi-news.Informatik.Uni-Dortmund.DE>
References: <A6239@KA.maus.de> <93EECC61@p4000.f4.n246.z2.fidonet.org>
Reply-To: maennig@siggi.informatik.uni-dortmund.de
NNTP-Posting-Host: fred