🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.tex
Article #971

Re: Mit LaTeX C-Source drucken

#971
From: Bodo Bauer
Date: Tue, 10 Nov 1992 09:40
44 lines
2451 bytes
In article <1b51644c@p6.f6.n242.z2.fidonet.org> vanrey@hippo.fido.de (Marc Van.rey) writes:

Nochmal: Hallo Thorsten,

>t > ich suche eine Moeglichkeit C-Source in LaTeX einzubinden.
>t > Gibts da ne Moeglichkeit ?
>  Natuerlich.
>

Ich hab hier auch noch ein Style File CPROG.STY, das ermoeglicht folgendes:

% cprog.tex (or cprog.sty) - formatting of C programs
% By \'Eamonn McManus <emcmanus@cs.tcd.ie>.  This file is not copyrighted.
% $Id: cprog.tex,v 1.4 90/09/12 23:21:26 emcmanus Exp $

% This allows C programs to be formatted directly by TeX.  It can be
% invoked by \cprogfile{filename} or (in LaTeX) \begin{cprog} ...
% \end{cprog} or (in plain TeX) \cprog ... \end{cprog}.  In LaTeX, the
% alternative form \begin{cprog*} is allowed, where spaces in C strings
% are printed using the `square u' character (like LaTeX {verbatim*}).
% In plain TeX, you have to use \csname cprog*\endcsname for this (sorry).
% If you are using \cprogfile, say \cprogttspacetrue beforehand if you
% want this effect.

% The formatting is (necessarily) simple.  C text is set in a normal Roman
% font, comments in a slanted font, and strings in a typewriter font, with
% spaces optionally made visible as the `square u' symbol.  Tabs are
% expanded to four spaces (this does not look good when comments are
% aligned to the right of program text).  Some pairs of input characters
% appear as single output characters: << <= >> >= != -> are respectively
% TeX's \ll \le \gg \ge \ne \rightarrow.  Say \cprogpairsfalse to disable
% this.
[...]

Bei interesse bitte melden, wenn viele daran interessiert sind kann
ich ihn auch hier ins Brett posten (11156 Bytes), oder ihn auf
"bagdad" kopieren, da kann ihn sich jeder saugen.

Ciao,
	BB

-- 
-- Bodo Bauer ----- Nuernberger Str.81 ------ 8510 Fuerth ----- Germany --
-- bodo@hal.nbg.sub.org ----- +49 911 705377 ----- B.BAUER@LINK-NJD.ZER --
Technical Details
Message-ID: <1992Nov10.094058.13581@hal.nbg.sub.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!news.ans.net!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!hugis!hal.nbg.sub.org!bodo
References: <1027b836@innoTEC1.zer.sub.org> <1b51644c@p6.f6.n242.z2.fidonet.org>

Show Full Headers
Complete Article Headers
Newsgroups: de.comp.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!news.ans.net!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!hugis!hal.nbg.sub.org!bodo
From: bodo@hal.nbg.sub.org (Bodo Bauer)
Subject: Re: Mit LaTeX C-Source drucken
Message-ID: <1992Nov10.094058.13581@hal.nbg.sub.org>
Organization: Sirius-Kybernetik-Corporation
References: <1027b836@innoTEC1.zer.sub.org> <1b51644c@p6.f6.n242.z2.fidonet.org>
Date: Tue, 10 Nov 1992 09:40:58 GMT
Lines: 44