🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #1852

Re: Need help to fix my macro

#1852
From: David Kastrup
Date: Sat, 29 Aug 1992 13:17
19 lines
1089 bytes
jesse@cs.UAlberta.CA (Jesse Lee) writes:

>Hello. Somehow I must have made a mistake in the following latex macro:

>\def\content#1\endcontent{\def\@content{#1}}
>\def\endcontent{}

>When I use the above macro in a LaTeX file like this

>\begin{content}
>bla bla bla
>\end{content}

>I get an error saying something reach the end of file while scanning
>the use of content or something like that.

>What mistake do I make and how to correct it?
Well, TeX cannot see that \end{content} is the same as \endcontent. The
easiest remedy is to not use \begin and \end.
Technical Details
Message-ID: <dak.715094267@tabaqui>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!tabaqui!dak
References: <jesse.715023240@square-crk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!tabaqui!dak
From: dak@tabaqui.informatik.rwth-aachen.de (David Kastrup)
Subject: Re: Need help to fix my macro
Message-ID: <dak.715094267@tabaqui>
Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
Nntp-Posting-Host: tabaqui
Organization: Rechnerbetrieb Informatik  /  RWTH Aachen
References: <jesse.715023240@square-crk>
Date: 29 Aug 92 13:17:47 GMT
Lines: 19