Math & Science ⇒ Equation reuse
-
- Posts: 1
- Joined: Wed Mar 31, 2010 11:42 am
Equation reuse
I would like to reuse an already defined and labeled equation further away in my text.
Is there such an option which doesn't include retyping it from scratch?
Thx, B
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
Equation reuse
you could "box" the equation to reuse it:
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
%defining the box
\newsavebox\myeq
%filling the box
\savebox\myeq{\vbox{\begin{align*}
a &= b\\
&= c\\
&= d\\
&= e\\
&= f
\end{align*}}}
%using the box
\usebox\myeq
%using the box
\usebox\myeq
%using the box
\usebox\myeq
\end{document}