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}

相關內容