# Speeding up repetitive typing

If I am writing a document say,

\documentclass{article}
\usepackage{amsmath}

\begin{document}

y = some long equation
\end{equation

\end{document}


and some really long equation is needed throughout the whole document (suppose its very important) is there a way of not having to write it out in full every time?

Perhaps some form of copy and pasting (still would rather not have to constantly find the equation in my document and paste it in every time) where I can save the value or something.

Would love the most fastest and easiest approach to this.

Thanks

• Can't you name (1) to that long equation and referring it as (1) in the rest of the document? – manooooh Feb 16 at 15:27
• If it is exactly the same, why not refer to it with \ref{} (and \label{} inside equation). – Sigur Feb 16 at 15:27
• P.S. Welcome to TeX.SE!! – manooooh Feb 16 at 15:28
• \newcommand{\mylongequation}{y = \sin (x)} ? – user31729 Feb 16 at 15:29
• Please note that \documentclass[article] will not work. Use \documentclass{article}. – TeXnician Feb 16 at 15:40