🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2037

Re: /input or /include or ... ?

#2037
From: Jean Orloff
Date: Thu, 03 Sep 1992 14:13
29 lines
1590 bytes
>>>>> On Mon, 24 Aug 1992 20:17:34 GMT, osalazar@dcc.uchile.cl
SALAZAR> (SALAZAR CERNA OSCAR MAPOCHO) said:
SALAZAR>      I want to include a C program file using \input{file.c}
SALAZAR> in this way: \begin{vertabim} \input{file.c} \end{verbatim}
SALAZAR>  
SALAZAR>  but the output is:
SALAZAR>             \input{file.c}
SALAZAR>  How can I do this without modifying the contents of file.c ?

The easiest way to have contr.sequences identified BEFORE verbatim is
on is through the stupid-looking macro:

\def\execute#1{#1}%!!!!!!!!!!

To get what you wanted, you just have to do:

\execute{\begin{verbatim}\input file.c}
\end{verbatim}   % you have to keep it out of \execute because of
%   the funny \begin...\end implementation of LaTeX.

Good luck!
Jean

--
*************************************************************************
*	Jean Orloff		*	e-mail: ORLOFF@dxcern.cern.ch	*
*	TH-Division, CERN	*	phone:	(41-22) 767-3204	*
*	CH-1211 Geneva 23	*	fax:	(41-22) 782-3914	*
*************************************************************************
Technical Details
Message-ID: <ORLOFF.92Sep3151316@surya4.cern.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!dxcern!dxcern!orloff
References: <1992Aug24.201734.21275@dcc.uchile.cl>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!dxcern!dxcern!orloff
From: orloff@surya4.cern.ch (Jean Orloff)
Subject: Re: /input or /include or ... ?
In-Reply-To: osalazar@dcc.uchile.cl's message of Mon, 24 Aug 1992 20:17:34 GMT
Message-ID: <ORLOFF.92Sep3151316@surya4.cern.ch>
Sender: news@dxcern.cern.ch (USENET News System)
Organization: CERN, European Research Center for Particle Physics
References: <1992Aug24.201734.21275@dcc.uchile.cl>
Date: Thu, 3 Sep 1992 14:13:16 GMT
Lines: 29