pdf 中的 hyperref 标题页问题

pdf 中的 hyperref 标题页问题

当我使用时hyperref,我的标题页是的第 1 页pdf,同样,第二页是的第 1 页pdf

在此处输入图片描述

在此处输入图片描述

我怎样才能防止这种情况发生?

  \documentclass[12pt]{article}
\usepackage[utf8]{inputenc} 
\usepackage[portuguese]{babel}

\usepackage[binary-units=true]{siunitx} 
\usepackage{graphicx} 
\usepackage{caption}
\usepackage{subfigure}
\usepackage{float}
\usepackage{fixltx2e} %\textsubscript{}
\usepackage{multirow}


\usepackage{amsmath}



\usepackage[margin=30mm,hmarginratio=1:1,top=32mm,columnsep=10pt]{geometry} % Document margins
\usepackage{hyperref}

\begin{document}

\begin{titlepage} 

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for the horizontal lines, change thickness here

\center % Center everything on the page

%----------------------------------------------------------------------------------------
%   HEADING SECTIONS
%----------------------------------------------------------------------------------------

\textsc{\LARGE some text}\\[1.5cm] % Name of your university/college
\textsc{\Large some text}\\[0.5cm] % Major heading such as course name
\textsc{\large some text}\\[0.5cm] % Minor heading such as course title

%----------------------------------------------------------------------------------------
%   TITLE SECTION
%----------------------------------------------------------------------------------------

\HRule \\[0.4cm]
{ \huge \bfseries some text}\\[0.4cm] % Title of your document
\HRule \\[1.5cm]

%----------------------------------------------------------------------------------------
%   AUTHOR SECTION
%----------------------------------------------------------------------------------------

% If you don't want a supervisor, uncomment the two lines below and remove the section above
\Large \emph{some text \\some text}\\ [30mm]
%\textsc{}\\[3cm] % Your name

%----------------------------------------------------------------------------------------
%   DATE SECTION
%----------------------------------------------------------------------------------------

{\large \today}\\[2cm] % Date, change the \today to a set date if you want to be precise

%----------------------------------------------------------------------------------------
%   LOGO SECTION
%----------------------------------------------------------------------------------------

%\includegraphics[width=50mm,keepaspectratio]{}\\[0.5cm] % Include a department/university logo - this will require the graphicx package

%----------------------------------------------------------------------------------------

\vfill % Fill the rest of the page with whitespace
\end{titlepage}

\section{Intro}

some text  some text  some text some text

\section{2}

\newpage
\section{3}
\end{document}

答案1

如果页码没有出现在标题页上,则\thepage可以重新定义为显示不同内容1,例如Title0

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{titlepage}
\renewcommand*{\thepage}{Title}
My Title.
\end{titlepage}
\section{Introduction}
\end{document}

如果页码出现在标题页上,则可以使用不同的界面:\thispdfpagelabel设置当前页面的页面标签。\hypersetup{pageanchor=false}组内禁用环境中的自动页面锚点,以防止重复的目标错误。

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{titlepage}
\thispdfpagelabel{Title}
\hypersetup{pageanchor=false}
My Title.
\end{titlepage}
\section{Introduction}
\end{document}

相关内容