Newsgroups: fj.comp.texhax
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!wnoc-tyo-news!virgil!uecgw!tmitnet!ecfma!yoshida
From: yoshida@ecfma.tmit.ac.jp (YOSHIDA Satoshi)
Subject: Re: newenvironment
In-Reply-To: morinaka@hip.atr.co.jp's message of Wed, 18 Aug 1993 00:45:16 GMT
Message-ID: <YOSHIDA.93Aug18175004@ecfma.ecfma.tmit.ac.jp>
Lines: 51
Sender: news@tmitnet.tmit.ac.jp
Organization: Tokyo Met. Inst. of Tech., Japan.
References: <MORINAKA.93Aug18094516@hochspits.hip.atr.co.jp>
Distribution: fj
Date: Wed, 18 Aug 1993 08:50:04 GMT
Xref: galaxy.trc.rwcp.or.jp fj.comp.texhax:3891
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.comp.texhax&nb=3891&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.

In article <MORINAKA.93Aug18094516@hochspits.hip.atr.co.jp> morinaka@hip.atr.co.jp (Morinaka Yukari) writes:

| $B?9Cf!w(BATR $B$G$9!#(B
|  LaTeX $B$N(Bnewenvironment$B$G:$$C$F$$$k$3$H$,$"$j$^$9!#(B
| $B2<$N%=!<%9$G(BTEST$B4D6-$O$&$^$/;H$($k$N$G$9$,!"(BSV$B4D6-$,(B
| $B;H$($^$;$s!#M}M3$r$4B8CN$NJ}!"65$($F$/$@$5$$!#(B
| $B$h$m$7$/$*4j$$$7$^$9!#(B
|  ---------- test1.tex
| \documentstyle{j-article}
|  \newenvironment{SV}{\begin{verbatim}}{\end{verbatim}}
($BCfN,(B)
| \begin{SV}
| abcdefghijklmn
| opqrstuvwxyz
| \end{SV}
| \end{document}
| ---------- test1.tex

| Runaway argument?
| ^^Mabcdefghijklmn^^Mopqrstuvwxyz^^M\end{SV}^^M\begin{TEST}^^M\item ab\ETC.
| ! File ended while scanning use of \@xverbatim.

$B$h$&$9$k$K!$(B"\end{verbatim}"$B$H$$$&8GDj$5$l$?(B14$BJ8;z$rC5$7$?$,(B
$B8+$D$+$i$J$+$C$?$H$$$&$3$H$G$9!%(B
$B$b$7(Bverbatim$B4D6-$N5!G=$rJQ99$7$?$$>l9g$O!$(B
latex.tex$B$N$J$+$+$i(B\verbatim$B$d$=$N2<@A$1$r$R$C$Q$j=P$7$F$-$F(B
$B=q$-$+$($kI,MW$,$"$k$H;W$$$^$9!%(B

\documentstyle{j-article}

\makeatletter
\begingroup \catcode `|=0 \catcode `[= 1
\catcode`]=2 \catcode `\{=12 \catcode `\}=12
\catcode`\\=12
|gdef|@Sxverbatim#1\end{SV}[#1|end[SV]]
|endgroup
\def\SV{\@verbatim \frenchspacing\@vobeyspaces \@Sxverbatim}
\let\endSV=\endtrivlist
\makeatother

\begin{document}
\begin{SV}
keporgkpaoekrpgkaeokrgpoaekrg
aekrgpaoerkgpoaekrgpokae
\end{SV}
\end{document}
--
;;;    $B!X(Bbug $B$"$l$P6l$"$j!Y(B
;;;
;;;    $BEl5~ETN)2J3X5;=QBg3X(B $BEE;R%7%9%F%`9)3X2J(B $BCNG=>pJs9)3X8&5f<<(B
;;;    $B5HED(B $BAo(B (yoshida@fml.ec.tmit.ac.jp)
