
예를 들어, 'Bases'라는 라벨이 붙은 책 섹션이 있습니다.
와 같은 명령을 넣지 않고 텍스트에 'Bases'를 입력할 때마다 하이퍼링크를 만들고 싶습니다 ~\ref{}
.
답변1
단순히 새로운 명령을 사용하면 어떨까요?
\documentclass{article}
\usepackage{hyperref}
\usepackage{xspace}
\newcommand{\Bases}{Section~\ref{Bases}\xspace}
\begin{document}
\section{Just for example}\label{Bases}
This is the reference \Bases to the section.
This is another reference \Bases.
\end{document}
하이퍼링크는 이미지에 표시되지 않지만 다음 위치에 있습니다 .pdf
.
패키지를 사용하는 경우 fancyref
넣는 것이 좋습니다sec:
참조 이름 "Bases" 앞에LaTeX/레이블 및 상호 참조더 많은 정보를 위해서.