Cleveref와 단어를 연결하는 방법은 무엇입니까?

Cleveref와 단어를 연결하는 방법은 무엇입니까?

를 사용하여 파일 끝의 의미에 단어를 연결할 수 있습니까 cleveref?

내 코드의 MWE는 다음과 같습니다.

\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{cleveref}
\begin{document}
    Today I ran like a \label{cheetah}cheetah and it was amazing to feel the wind.

    \pagebreak

    \cref{cheetah}: is a large cat of the subfamily Felinae that occurs in North, Southern and East Africa, and a few localities in Iran. It inhabits a variety of mostly arid habitats like dry forests, scrub forests, and savannahs.
\end{document}

문장의 치타라는 이름이 문서 끝의 의미에 대한 링크가 되기를 바라며, 전화를 걸었을 때 \cref{cheetah}숫자가 아닌 치타라는 이름만 표시되었으면 좋겠습니다.

답변1

좋은 소식과 나쁜 소식이 있습니다. 나쁜 소식은 상호 참조 목표를 사용 \label하고 달성할 수 없다는 것입니다. \cref이는 설정에 따라 LaTeX가 \label최근에 증가된 카운터 변수와 의미 있게 연관될 수 없기 때문입니다.

하지만 좋은 소식도 있어요! 패키지 의 \hyperlink및 매크로를 사용하면 조판 목표를 완전히 달성할 수 있습니다 . 및 둘 다 두 개의 인수를 취하는 매크로입니다. 아래 예에서는 첫 번째 항목이 동일해야 합니다 . 두 번째는 아래 예에서 각각 자유 형식 -- 및 입니다.\hypertargethyperref\hyperlink\hypertargetcheetah_defcheetah\textbf{Cheetah}

\documentclass{article}
\usepackage{hyperref}
\begin{document}

Today I ran like a \hyperlink{cheetah_def}{cheetah} and 
it was amazing to feel the wind.

\pagebreak

\noindent
\hypertarget{cheetah_def}{\textbf{Cheetah}}: A large cat 
of the subfamily Felinae that occurs in North, Southern 
and East Africa, and a few localities in Iran. It inhabits 
a variety of mostly arid habitats such as dry forests, 
scrub forests, and savannahs.
\end{document}

관련 정보