0

this question's title may not clearly. my english expression is not good. take an example to convey my problem:

   \someorder{a}{\paragraph{1999}ABCD}
   \someorder{a}

I expect after compile this code , it will show two same paragraph, the second one will auto refers to the fist one

  • 2
    Maybe you are interested in using \label and \ref? – leandriis Aug 8 at 14:28
  • Could you please also explain what ` \someorder` is supposed to do / how it is defined? – leandriis Aug 8 at 14:29
  • 1
    Maybe this is what you are looking for: stackoverflow.com/questions/1211888/… – Hiwi Makro Aug 8 at 14:44
  • @ Hiwi Makro thank you,\defand\newcommand is useful – nevermind_15 Aug 8 at 14:54
1

Based on @leandriis comment, this might be what you are looking for is Lable/Reference.

For example:

\documentclass[tikz]{standalone}

\begin{document}

This is some dummy Text, don't mind me.

    \begin{equation}\label{eq:1}
        1+1 = 2
    \end{equation}    

Please consider equation \ref{eq:1}. 

\begin{figure}
    \centering
    \includegraphics[width=0.3\textwidth]{1.png}
    \caption{Some Picture}
    \label{fig:1}
\end{figure}

This also works for some reference for pictures \ref{fig:1}.

\end{document}

which produces:

example

This works for a lot more than just equations and figures, but I hope you get the idea.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.