GeneralpdfTeX warning (ext4): destination with the same identifier

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
marbocam
Posts: 66
Joined: Thu Dec 19, 2024 11:14 am

pdfTeX warning (ext4): destination with the same identifier

Post by marbocam »

I'm gettin this error when compiling on cmd from page 1 to 4. Doesn't seem to make any non wanted changes, but I'm curious... What's going on?

pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has
been already used, duplicate ignored
<to be read again>

Thank you!

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10397
Joined: Mon Mar 10, 2008 9:44 pm

Re: pdfTeX warning (ext4): destination with the same identifier

Post by Stefan Kottwitz »

You have two pages numbered 1. This can be a title page, and then the "real" page 1. It can be resolved, for example, by using \hypersetup{pageanchor=false} before such a duplicate page, and set to true after it, or by using a different numbering style, even if the number on a title page is invisible.

Stefan
LaTeX.org admin
marbocam
Posts: 66
Joined: Thu Dec 19, 2024 11:14 am

Re: pdfTeX warning (ext4): destination with the same identifier

Post by marbocam »

Thank you, Stefan. I'm confused as to why this happened, though.. Doesn't seem to have added anything that may have caused this issue...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10397
Joined: Mon Mar 10, 2008 9:44 pm

Re: pdfTeX warning (ext4): destination with the same identifier

Post by Stefan Kottwitz »

Perhaps post the example here (reduced to the minimal things, without the regular text), then we will find it out. :-)

Stefan
LaTeX.org admin
marbocam
Posts: 66
Joined: Thu Dec 19, 2024 11:14 am

Re: pdfTeX warning (ext4): destination with the same identifier

Post by marbocam »

I'm unsure how to do that as I use a custom layout, but will try it with article...

Here's is my main doc:

Code: Select all

\documentclass{article}
\usepackage{etoolbox}
\usepackage{tikz}
%\usepackage[backend=bibtex,style=ieee,natbib=true,maxnames=100,minnames=100,citestyle=numeric-comp]{biblatex} %, defernumbers=true
%\addbibresource{references.bib}
\usepackage{rotating}
\usepackage{enumitem}
\usepackage{amsmath,array,graphicx}
\usepackage{float} % for tables
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
\counterwithin{equation}{chapter}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3} % Until subsubseccions in contents-
\usepackage[acronym, nonumberlist, style=super]{glossaries}

\newcommand{\capitalizefirst}[1]{\xmakefirstuc{#1}}%para mostrar la primera letra de los acronimos en mayuscula
% Customize the glossary style to bold the acronyms
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\makeglossaries
%\input{acronyms.tex}
\glsaddall

\usepackage{tocloft}
\setlength{\cftfignumwidth}{3em}
\setlength{\parskip}{8pt}

%% Some personalized configurations
%% Front page
\begin{document}
%\input{Portada}
\begin{titlepage}
\centering
\vspace*{-3cm}
% Add your image here
\vspace{1.5cm}
\Huge\textbf{Photonic Transceivers for 6G yada yada} \\
\vspace{1.8cm}
\mdseries\large Ph.D thesis\\
by\\
\Large\textbf{My name}
\vspace{1.8cm}
\begin{tabular}{l@{\hspace{.75em}}l}
\Large Supervisors:    & \Large Name\\[.5ex]
                    & Name\Large 
\end{tabular}
\vspace{1.6 cm}
\mdseries\large Place, month 2025
\end{titlepage}
\cleardoublepage

%% some more configs

% Acknoledgements/Abstract/About the author

% Contents
\ifEPUB
	
\else
	% Contents
	
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\contentsname}
\tableofcontents
        
% Figs
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures

% Lista de tablas
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables

%\cleardoublepage
%\phantomsection
\addcontentsline{toc}{chapter}{Acronyms}
%\printglossary[type=\acronymtype]

\fi
	\clearpage

\mainmatter % <---------- First chapter in page 1
% -------------------------------------------------------
% Chapters

%\input{cap_chapter_1}

\chapter{Introduction}
\label{chap1}

\section{Context and motivation}
\label{sec:context}
\subsection{Evolution of mobile wireless communications}
\end{document}

It won't compile, sorry... You might be able to see the issue though :D Normally, the first page doesn't have a number, and then until the first chapter there's roman numerals..
User avatar
Stefan Kottwitz
Site Admin
Posts: 10397
Joined: Mon Mar 10, 2008 9:44 pm

Re: pdfTeX warning (ext4): destination with the same identifier

Post by Stefan Kottwitz »

The first page number is 1 in roman format, after \mainmatter comes 1 in arabic format. That's the duplicate. Try this before \begin{document}:

Code: Select all

\hypersetup{pdfpagelabels=true}
Stefan
LaTeX.org admin
marbocam
Posts: 66
Joined: Thu Dec 19, 2024 11:14 am

Re: pdfTeX warning (ext4): destination with the same identifier

Post by marbocam »

Weird... I did that and the error keeps happening.. Then, I commented the \mainmatter line and, while the error desappeared, the numering of the pages continues in roman numerals and the link of the bookmark sends you to the title page of the thesis... :/
marbocam
Posts: 66
Joined: Thu Dec 19, 2024 11:14 am

Re: pdfTeX warning (ext4): destination with the same identifier

Post by marbocam »

Tried to contact you through the site, but that doesn't seem possible. If you can see my email on my profile, you can write me and I will send you a cleared project - we might figure it out them. Otherwise, it's fine. I mean, the pdf compiles just fine :)
Post Reply