Article View: comp.text.tex
Article #146Re: Strange /end{} error from emTeX to LaTeX
From: Joerg Knappen
Date: Sat, 31 Oct 1992 17:07
Date: Sat, 31 Oct 1992 17:07
33 lines
1840 bytes
1840 bytes
In article <1992Oct30.141541.272@ugle.unit.no>, robert@solan.unit.no (Robert Schmidt) writes:
:I've made a *simple* environment for writing pseudocode in emTeX, which
:I thought was pretty near compatible with LaTeX. In emTeX, the file
:compiled nicely, in LaTeX I got this reply:
:
:
:! Use of \endpseudocode doesn't match its definition.
:\end #1->\csname end#1\endcsname \@checkend
: {#1}\if@endpe \global \let \@gte...
:l.398 \end{pseudocode}
:
Insert some \%-signs....
\newenvironment{pseudocode}[1]%
{% % begin
% \setcounter{pseudotabs}{1}%
\setcounter{pseudoline}{0}%
\begin{tabbing}%
{\large\tt #1}\\% % output algorithm name
\preadytabs% % set up tab stops
}%
{% % end
\end{tabbing}%
}
The above should work (not tested).
--J"org Knappen.
P.S. Your LaTeX looks obsolete. article.sty is now international with
redefinable names (like \chaptername, \appendixname, and many more. An option
[norsk] or [norwegian] should do the translations. (norsk.sty is available
with the babel system of styles by J. Braams)
Technical Details
Message-ID:
<LPG8EKQ@minnie.zdv.uni-mainz.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!news.uni-mainz.de!methusalix.kph.uni-mainz.de!knappenReferences:
<1992Oct30.141541.272@ugle.unit.no>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!news.uni-mainz.de!methusalix.kph.uni-mainz.de!knappen
From: knappen@methusalix.kph.uni-mainz.de (Joerg Knappen)
Subject: Re: Strange /end{} error from emTeX to LaTeX
Message-ID: <LPG8EKQ@minnie.zdv.uni-mainz.de>
Keywords: %, international LaTeX, babel.
Sender: usenet@minnie.zdv.uni-mainz.de (USENET News System)
Nntp-Posting-Host: methusalix.kph.uni-mainz.de
Reply-To: knappen@obelix.kph.Uni-Mainz.DE
Organization: ONO (Organisation der Nicht-Organisierten)
References: <1992Oct30.141541.272@ugle.unit.no>
Date: Sat, 31 Oct 1992 17:07:54 GMT
Lines: 33