On Mon, Dec 16, 2002 at 11:08:46AM +1030, Paul Medwell wrote:
> I have an equation in Chapter 1 that I would like to repeat in Chapter 
> 2. How can I get the equation (AND its equation number reference) to 
> appear in the second chapter exactly the same as it appears in chapter 1?

> Example:
> 
> Chapter 1
> This is my equation:
> y=2x  (1.1)
> 
> Chapter 2
> As was shown in Chapter 1:
> y=2x  (1.1)

To repeat the equation use math macros: define a math macro whose name is
"myequation", and its definition is "y=2x", and then insert the formula
and type \myequation.
To repeat the numbers, insert a label into the first formula,
and then in the second one write \tag{\ref{<the label>
You also need to enable AMS math in the document dialog.
See attached file.
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4wide
\use_geometry 0
\use_amsmath 1
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset FormulaMacro 
\newcommand{\myformula}{y=2x}

\end_inset 


\layout Standard


\begin_inset Formula \begin{equation}
\label{eq:myformula}
\myformula 
\end{equation}

\end_inset 


\layout Standard


\begin_inset Formula \[
\myformula \tag {\ref {eq:myformula}}\]

\end_inset 


\the_end

Reply via email to