General ⇒ question on equation numbering
question on equation numbering
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
question on equation numbering
Code: Select all
...
\newcounter{SchemeCounter} \renewcommand\theSchemeCounter{\thechapter.\Roman{SchemeCounter}}
\newenvironment{scheme}%
{\stepcounter{SchemeCounter}\begin{center}\hspace{\fill}$\phantom{(\theSchemeCounter)}}%
{$\hspace*{\fill}\nolinebreak[3](\theSchemeCounter)\end{center}}
...
\begin{document}
...
\chapter{Test Chapter}
...
\begin{scheme}
Insert equation here
\end{scheme}
Before starting the environment, step the counter, start centering, and put a rubber space on the left hand side, puts things into math mode, and adds an invisible counter on the left to get the spacing right.
After the environment is over, fill the right with a rubber space, don't allow a line break unless really necessary, and then put the counter in parenthesis.
Hope this helps...
Enjoy!
question on equation numbering
Replace the previous newenvironment with:
Code: Select all
\newenvironment{scheme}%
{\stepcounter{SchemeCounter}\[}%
{\tag{\theSchemeCounter}\]}
For anyone else reading this, in the interest of full disclosure, I share an office with mollyc, but I'm just posting what we figured out after going meticulously through LaTeX Companion 2nd ed. by Mittlebach & Goosens and LaTeX by Leslie Lampoort. I figured that someone else might be interested in our code fu.