🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #17

Re: subeqnarray (partly?) extended ==> PROBLEM!

#17
From: Braams J.L.
Date: Tue, 27 Oct 1992 11:51
28 lines
1535 bytes
knirsch@faui30m.informatik.uni-erlangen.de (Ralf Knirsch) writes:


>% command to save the current letter of subeqn-numbering
>\newcounter{saveeqn}
>\newcommand{\savesub}{\setcounter{saveeqn}{\value{subequation}}%
>\addtocounter{equation}{-1}%
>\renewcommand{\thesubequation}{\mbox{\theequation-\alph{saveeqn}}}}

>% Command to reset the numbering to begin with "a"
>\newcommand{\resetsub}{\setcounter{subequation}{0}%
>\renewcommand{\thesubequation}{\theequation\alph{subequation}}}

>I thought that this will work. Here an example:
try the following:
\newcounter{saveeqn}
\newcommand{\savesub}{\setcounter{saveeqn}{\value{subequation}}%
  \addtocounter{equation}{-1}}
\newcommand{\resetsub}{\setcounter{subequation}{\value{saveeqn}}}

Then use \resetsub *inside* the subeqnarray environment, like in:
\begin{subeqnarray}
\resetsub
\slabel{ode2}
y(a) & = & y_a
\end{subeqnarray}

Johannes Braams
Technical Details
Message-ID: <johannes.720186712@vision>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!spider.research.ptt.nl!vision!johannes
References: <knirsch.719737253@faui30m>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!spider.research.ptt.nl!vision!johannes
From: johannes@vision.research.ptt.nl (Braams J.L.)
Subject: Re: subeqnarray (partly?) extended ==> PROBLEM!
Message-ID: <johannes.720186712@vision>
Keywords: subeqnarray, numbering problems
Sender: usenet@spider.research.ptt.nl (USEnet News)
Nntp-Posting-Host: vision.research.ptt.nl
Organization: PTT Research
References: <knirsch.719737253@faui30m>
Date: Tue, 27 Oct 1992 11:51:52 GMT
Lines: 28