I have a LaTeX document broken up into chapter, sections, and subsections. The theorems are numbered according to the section.
If I reference a theorem from a particular chapter in the same chapter, I would like it to show up as
Theorem section.#.
If I reference the theorem from a different chapter, I want it to show up as
Theorem chapter.section.#.
How can I do this?
Edit:
I know very little about LaTeX. This is a portion of what appears at the beginning.
\newtheorem{theorem}[subsection]{Theorem}
\newtheorem*{theorem-non}{Theorem}
\theoremstyle{plain}
\newtheorem{acknowledgement}[subsection]{Acknowledgement}
\newtheorem{algorithm}[subsection]{Algorithm}
\newtheorem{axiom}[subsection]{Axiom}
\newtheorem{case}[subsection]{Case}
\newtheorem{claim}[subsection]{Claim}
\newtheorem{conclusion}[subsection]{Conclusion}
\newtheorem{condition}[subsection]{Condition}
\newtheorem{conjecture}[subsection]{Conjecture}
\newtheorem{corollary}[subsection]{Corollary}
I hope this helps. If something more specific/different is needed, please let me know.