
Hyperref 패키지를 사용하여 PDF 책갈피에 PDF 제목을 추가하고 싶습니다. 그러나 그것은 작동하지 않습니다.
그림과 같이 소개 위에 제목을 추가하고 싶습니다.
게다가 위 그림처럼 "식 (1)"을 단순히 빨간색 1이 아닌 전체적으로 링크로 만들고 싶습니다.
어떻게 이를 달성할 수 있나요? 많은 감사를 드립니다.
내 MWE는 다음과 같습니다.
\documentclass[a4paper, 10pt]{article}
\usepackage{amsmath}
\usepackage[backend=biber, style=numeric]{biblatex}
\usepackage[bookmarksnumbered, pdftitle={A PDF Title?}]{hyperref}
\hypersetup{colorlinks=true, citecolor=cyan}
\begin{filecontents*}{\jobname.bib}
@article{Azeez2013,
author = {Azeez, O. S. and Isafiade, A. J. and Fraser, D. M.},
title = {Supply-based superstructure synthesis of heat and mass exchange networks},
journal = {Computers \& Chemical Engineering},
volume = {56},
number = {7},
pages = {184--201},
year = {2013}
}\end{filecontents*}
\addbibresource{\jobname}
\title{A PDF title?}
\begin{document}
\maketitle
\section{Introduction}
This is an example for illustrating the use Hyperref package~\cite{Azeez2013}.
\section{Problem Statement}
What is wrong?
\begin{equation}
\label{eq: mass balance}
\sum_{i} m_{in} = \sum_{j} m_{out}
\end{equation}
This equation~\eqref{eq: mass balance} shows the mass balance of the model.
\section*{Acknowledgements}
\addcontentsline{toc}{section}{Acknowledgements}%
Who would you like to thank?
\addcontentsline{toc}{section}{References}
\printbibliography
\end{document}
답변1
추가 북마크는 다음과 같이 수행할 수 있습니다 \pdfbookmark
.
\pdfbookmark[1]{My Title}{title}
"방정식"을 포함하는 링크는 \autoref
괄호 안에 숫자를 넣지 않기 때문에 더 까다롭습니다. 수동으로 수행할 수 있는 방법은 다음과 같습니다.
\hyperref[eq: mass balance]{equation~(\ref*{eq: mass balance})}
별 모양은 \ref
링크가 이미 에 의해 설정되었기 때문에 링크 없이 참조를 설정합니다 \hyperref
.
전체 예:
\documentclass[a4paper, 10pt]{article}
\usepackage{amsmath}
\usepackage[bookmarksnumbered, pdftitle={A PDF Title?}]{hyperref}
\hypersetup{colorlinks=true, citecolor=cyan}
\usepackage{bookmark}% faster updated boomkarks
\newcommand*{\myeqref}[2][equation]{%
\hyperref[{#2}]{#1~(\ref*{#2})}%
}
\begin{document}
\pdfbookmark[1]{My Title}{title}% "1" = section level
\section{Introduction}
This is an example for illustrating the use Hyperref package.
\section{Problem Statement}
What is wrong?
\begin{equation}
\label{eq: mass balance}
\sum_{i} m_{in} = \sum_{j} m_{out}
\end{equation}
This \myeqref{eq: mass balance} shows the mass balance of the model.
\section*{Acknowledgements}
\addcontentsline{toc}{section}{Acknowledgements}%
Who would you like to thank?
\end{document}
북마크:
제목의 대상을 제목에 더 가깝게 이동합니다.
북마크 명령을 내부로 밀수해야 합니다 \maketitle
. \maketitle
대상을 제목에 더 가깝게 만들기 위해 사용된 클래스, 패키지, 정의, 책갈피를 넣을 위치에 따라 다릅니다 . class 에서 article
title 인수는 수직 모드에서 시작하므로 북마크를 여기에 배치할 수 있습니다.
\title{%
\pdfbookmark[1]{My Title}{title}%
My Title%
}
...
\maketitle
답변2
이것은 bookmark
질문의 일부일뿐입니다 ...
예를 들어 북마크에 대한 추가는 을 사용하여 수행할 수 있습니다 \pdfbookmark
.
관련 레벨이 제공되어야 합니다. 여기에서는 article
클래스 레벨이 0
적절합니다. 제목 책갈피가 나머지 레벨과 정렬되어야 하는 경우 레벨을 사용하십시오 1
. 그러나 여기서는 솔루션을 수행했습니다 0
.
\pdfbookmark[0]{bookmarkentry}{label}
레이블은 \title{}
예를 들어 주어진 일부 링크 표시입니다.
\documentclass[a4paper, 10pt]{article}
\usepackage{amsmath}
\usepackage[backend=biber, style=numeric]{biblatex}
\newcommand{\mydocumenttitle}{A PDF title}
\usepackage[bookmarksopen=true,bookmarksnumbered, pdftitle={\mydocumenttitle}]{hyperref}
\hypersetup{colorlinks=true, citecolor=cyan}
\begin{filecontents*}{\jobname.bib}
@article{Azeez2013,
author = {Azeez, O. S. and Isafiade, A. J. and Fraser, D. M.},
title = {Supply-based superstructure synthesis of heat and mass exchange networks},
journal = {Computers \& Chemical Engineering},
volume = {56},
number = {7},
pages = {184--201},
year = {2013}
}
\end{filecontents*}
\addbibresource{\jobname}
\author{A. U. Thor}
\title{\hypertarget{title:link}{\mydocumenttitle}}
\begin{document}
\maketitle
\pdfbookmark[0]{A PDF title}{title:link}
\clearpage
\section{Introduction}
This is an example for illustrating the use Hyperref package~\cite{Azeez2013}.
\section{Problem Statement}
What is wrong?
\begin{equation}
\sum_{i} m_{in} = \sum_{j} m_{out}\label{eq: mass balance}
\end{equation}
This equation~\eqref{eq: mass balance} shows the mass balance of the model.
\section*{Acknowledgements}
\addcontentsline{toc}{section}{Acknowledgements}%
Who would you like to thank?
\addcontentsline{toc}{section}{References}
\printbibliography
\end{document}