0

If I am writing a document say,

\documentclass{article} 
\usepackage{amsmath}


\begin{document}

\begin{equation}
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

  • 1
    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
  • 5
    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
  • 4
    \newcommand{\mylongequation}{y = \sin (x)} ? – user31729 Feb 16 at 15:29
  • 1
    Please note that \documentclass[article] will not work. Use \documentclass{article}. – TeXnician Feb 16 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.