Newsgroups: fj.comp.texhax
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!wnoc-tyo-news!news.u-tokyo.ac.jp!t-server!keisu3!mura
From: mura@sat.t.u-tokyo.ac.jp (Noboru Murata)
Subject: Re: verbatim with indention on latex.
In-Reply-To: uainoue@ipc.musashi-tech.ac.jp's message of Fri, 11 Mar 1994 06:08:17 GMT
Message-ID: <MURA.94Mar15112323@elf.sat.t.u-tokyo.ac.jp>
Sender: news@keisu-s.t.u-tokyo.ac.jp
Nntp-Posting-Host: elf
Organization: Mathematical Engineering, Univ. of Tokyo, Japan.
References: <jUmvy.kawafuji@actsd0.anritsu.co.jp> <15752@rdnew11.roland.co.jp>
	<UAINOUE.94Mar9141432@jupost.ipc.musashi-tech.ac.jp>
	<15787@rdnew11.roland.co.jp>
	<UAINOUE.94Mar11150817@jupost.ipc.musashi-tech.ac.jp>
Distribution: fj
Date: Tue, 15 Mar 1994 02:23:23 GMT
Lines: 47
Xref: galaxy.trc.rwcp.or.jp fj.comp.texhax:4638
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.comp.texhax&nb=4638&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.


$B$`$i$?!w$H$&$@$$$1$$$9$&(B $B$H?=$7$^$9!%(B

In article <UAINOUE.94Mar11150817@jupost.ipc.musashi-tech.ac.jp> 
uainoue@ipc.musashi-tech.ac.jp (INOUE Koichi) writes:

uainoue> $B$$$N$&$($G$9!#(B

uainoue> \def\identity#1{#1}

uainoue> $B$H$7$F!"(B

uainoue> \identity{\begin{verbatim}\leftskip...}
uainoue> ....
uainoue> \end{verbatim}

uainoue> $B$G$O!)(B

$B$3$l$G$&$^$/$H;W$$$^$9$,!$(B
$B4D6-$,e:No$KJD$8$F$J$$$H$$$d$@$H8@$&?M$K$O(B
list$B4D6-$,(B nest $B$r5v$7$F$$$k$,$?$a$K(B \@totalleftmargin $B$r:FDj5A$7$J$$(B
$B$3$H$rMxMQ$7$F!$$3$s$J$s$G$b=PMh$k$H;W$$$^$9!%(B
---
\documentstyle[12pt]{jarticle}
\makeatletter
\let\orgverbatim=\verbatim
\def\verbatim{\@ifnextchar [{\@indentverbatim}{\orgverbatim}}
\def\@indentverbatim[#1]{\advance\@totalleftmargin by#1\orgverbatim}
\makeatother
\begin{document}

\begin{verbatim}
verbatim$B4D6-$N$F$9$H(B

!@#$%^&*()_+|~`\=-[]{}';:?/<>
\end{verbatim}

\begin{verbatim}[50pt]
verbatim$B4D6-$N$F$9$H(B

!@#$%^&*()_+|~`\=-[]{}';:?/<>
\end{verbatim}

\end{document}
--
$BEl5~Bg3X(B $B9)3XIt(B $B7W?t9)3X2J(B
$BB<ED(B  $B>:(BE-mail:mura@sat.t.u-tokyo.ac.jp
