Page LayoutMatches Page Number in PDF

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jack1234
Posts: 3
Joined: Sun Jun 26, 2011 10:33 pm

Matches Page Number in PDF

Post by jack1234 »

Hi, in my pdf documents,
it is ordered by i,ii,iii(with abstract etc)
then started by 1,2,3,...(the contents)
just like the those normal books we have seen.

I have seen some pdf files able to display the page number directly matched the page number specified, i.e. it could display i,ii,iii,.., 1,2,3, may I know how to do it?

I have tried hyperref package, but it does not work, the latex is as follows:

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage{float}
\usepackage[pdfpagelabels]{hyperref}
\title{\huge Title \\[2cm]}
\vfill
\date{\Large June 2011}
\begin{document}
\maketitle \thispagestyle{empty}
\newpage
\pagenumbering{roman} \pagebreak
\tableofcontents \pagebreak
\pagenumbering{arabic}
\section{Sec1}
\subsection{subsec 1.1}
\subsection{subsec 1.2}
\section{Sec2}
\section{Sec3}
\section{Sec4}
\section{Sec5}
\section{Sec6}
\section{Sec7}
\end{document}
Last edited by Stefan Kottwitz on Sun Jun 26, 2011 10:58 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Matches Page Number in PDF

Post by Stefan Kottwitz »

Hi Jack,

welcome to the board!

It depends on the PDF reader which page number is displayed in a toolbar. The option pdfpagelabels is already good for this. You could try the Adobe Acrobat reader.

On the page, i ... iii should be fine, of course. In the toolbar, Acrobat shows ii for the page with the table of contents, tested with your code.

Btw. the forum provides a code environment. I just edited your post for better displaying the code.

Stefan
LaTeX.org admin
jack1234
Posts: 3
Joined: Sun Jun 26, 2011 10:33 pm

Re: Matches Page Number in PDF

Post by jack1234 »

Thanks for the reply and modifying!

I am using Adobe Acrobat Pro Extended 9.2.
I have attached screenshots of my problem.
The pdf file in the screenshots is generated using the latex code I have attached, I am not sure is it due to the acrobat version I am using?
Attachments
screenshot.pdf
(173.07 KiB) Downloaded 203 times
Post Reply