
私はLaTeXで次のような定理を書きました。\begin{theorem} lllllll \end{theorem} この定理を引用するときに、青色で書かれた「定理5.2」を見つけ、これをクリックすると目的の定理に移動できます。
答え1
定理のような環境の設定を簡素化するには、amsthm
または などのパッケージをロードする必要があります。相互参照のコールアウトを青いハイパーリンクにするには、およびオプションを使用してパッケージをロードする必要があります。また、 のオプションを使用してパッケージをロードすることもお勧めします。次に、相互参照する各定理にディレクティブを関連付け、および/またはステートメントを使用して相互参照のコールアウトを作成します。ntheorem
hyperref
colorlinks
linkcolor=blue
cleveref
nameinlink
\label
\cref
\autoref
\documentclass{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[colorlinks,linkcolor=blue]{hyperref}
\usepackage[nameinlink]{cleveref}
% Set up theorem-like environments:
\newtheorem{theorem}{Theorem}
\begin{document}
\counterwithin{theorem}{section} % just for this example
\setcounter{section}{5} \stepcounter{theorem}
\begin{theorem} \label{thm:important}
Bla bla bla
\end{theorem}
\noindent
A cross-reference to \autoref{thm:important}.
Another cross-reference to \cref{thm:important}.
\end{document}