Message from discussion
AMSMath, lineno, and starred environments
The group you are posting to is a
Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 |
Newsgroups: comp.text.tex
From: "Ulrich Diez" <eu_angel...@web.de.invalid>
Date: Wed, 8 Aug 2007 04:13:14 +0200
Local: Tues, Aug 7 2007 10:13 pm
Subject: Re: AMSMath, lineno, and starred environments
Ted Pavlic wrote: > Of course, the template for each of these is just: > %===== > \let\oldBLAH\BLAH% > \let\endoldBLAH\endBLAH% > \renewenvironment{BLAH}% > {\linenomath\oldBLAH}{\endoldBLAH\endlinenomath}% > \expandafter\let\expandafter\oldBLAHstar\csname BLAH*\endcsname% > \expandafter\let\expandafter\endoldBLAHstar\csname endBLAH*\endcsname% > \renewenvironment{BLAH*}% > {\linenomath\oldBLAHstar}{\endoldBLAHstar\endlinenomath}% > %=====
\makeatletter \newcommand*\patchenvironment[1]{% \expandafter\@patchenvironment \csname #1\expandafter\endcsname \csname old#1\expandafter\endcsname \csname end#1\expandafter\endcsname \csname oldend#1\endcsname {#1}% }%
\newcommand*\@patchenvironment[5]{% \let#2=#1% \let#4=#3% \renewenvironment{#5}% {\linenomath#2}{#4\endlinenomath}% }%
\makeatother OR \newcommand*\patchenvironment[1]{% \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname \renewenvironment{#1}% {\linenomath\csname old#1\endcsname}% {\csname oldend#1\endcsname\endlinenomath}% }%
OR \makeatletter \newcommand*\patchenvironment[1]{% \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname \expandafter\@patchenvironment \expandafter{% \expandafter\linenomath \csname old#1\expandafter\endcsname \expandafter}% \expandafter{% \csname oldend#1\endcsname\endlinenomath}% {\renewenvironment{#1}}% }%
\newcommand*\@patchenvironment[3]{% #3{#1}{#2}% }%
\makeatother OR whatever. Ulrich
You must Sign in before you can post messages.
You do not have the permission required to post.
|