General ⇒ Problems with hyperref package
Problems with hyperref package
I'm trying to include links to websites in my document using the \href{*}{*} command, but actually i can't do that!
If i just include the "\usepackage{hyperref}" in my code it gets me and error saying:
(mestrado.toc)
\tf@toc=\write4
pdfTeX warning (ext4): destination with the same identifier (name{page.}) has b
een already used, duplicate ignored
<to be read again>
What is this "destination with the same identifier"?
Why i can't use this packege? I checked and i have it installed here!
I'm using Miktex and WinEdt.
Thanks in advance!
If i just include the "\usepackage{hyperref}" in my code it gets me and error saying:
(mestrado.toc)
\tf@toc=\write4
pdfTeX warning (ext4): destination with the same identifier (name{page.}) has b
een already used, duplicate ignored
<to be read again>
What is this "destination with the same identifier"?
Why i can't use this packege? I checked and i have it installed here!
I'm using Miktex and WinEdt.
Thanks in advance!
NEW: TikZ book now 40% off at Amazon.com for a short time.
Problems with hyperref package
Hello,
could you please post a minimal working example to reproduce the error? Normally, the inclusion of hyperref doesn't produce errors.
could you please post a minimal working example to reproduce the error? Normally, the inclusion of hyperref doesn't produce errors.
Problems with hyperref package
Hi ppaulo,
TeX-Frequently Asked Questions - PDFTeX destination ... ignored
In the meantime (while you post your MWE, as phi suggested), in the following link you can find information about the message that you are getting:ppaulo wrote: (mestrado.toc)
\tf@toc=\write4
pdfTeX warning (ext4): destination with the same identifier (name{page.}) has b
een already used, duplicate ignored
<to be read again>
What is this "destination with the same identifier"?
...
TeX-Frequently Asked Questions - PDFTeX destination ... ignored
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Problems with hyperref package
Thanks for helping me!
You can see a minimal code below: if i compile it i'll get the error.
\documentclass[a4]{abnt}
\usepackage[latin1]{inputenc}
\usepackage[brazil, english]{babel}
\usepackage{babelbib}
\usepackage[pdftex, dvips]{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{subfigure}
\usepackage{mathrsfs}
\usepackage{float}
\usepackage{hyperref}
\parindent 0pt
\begin{document}
\restylefloat{figure}
\selectlanguage{brazil}
\autor{abc}
\titulo{x}
\instituicao{y}
\local{Vitória - ES}
\data{2008}
\orientador{z}
\capa
\folhaderosto
\begin{resumo}
teste
\end{resumo}
\sumario
\chapter{Introdução}
teste
\chapter{Desenvolvimento}
teste
\end{document}
Thank you very much!
To compile it i think you must have abntex (http://abntex.codigolivre.org.br/).
You can see a minimal code below: if i compile it i'll get the error.
\documentclass[a4]{abnt}
\usepackage[latin1]{inputenc}
\usepackage[brazil, english]{babel}
\usepackage{babelbib}
\usepackage[pdftex, dvips]{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{subfigure}
\usepackage{mathrsfs}
\usepackage{float}
\usepackage{hyperref}
\parindent 0pt
\begin{document}
\restylefloat{figure}
\selectlanguage{brazil}
\autor{abc}
\titulo{x}
\instituicao{y}
\local{Vitória - ES}
\data{2008}
\orientador{z}
\capa
\folhaderosto
\begin{resumo}
teste
\end{resumo}
\sumario
\chapter{Introdução}
teste
\chapter{Desenvolvimento}
teste
\end{document}
Thank you very much!
To compile it i think you must have abntex (http://abntex.codigolivre.org.br/).
Re: Problems with hyperref package
According the website (http://www.tex.ac.uk/cgi-bin/texfaq2htm ... perdupdest) :
"Some packages are simply incompatible with hyperref"
I've tried to remove almost all packages and it continues with the problem.
"you should load your package before you load hyperref"
I've tried this too but didn't worked...
I don't think it's a question of page numbers as they say there...but i don't have enought knowladge to say that...i'm just a begginer with latex.
Thanks!
"Some packages are simply incompatible with hyperref"
I've tried to remove almost all packages and it continues with the problem.
"you should load your package before you load hyperref"
I've tried this too but didn't worked...
I don't think it's a question of page numbers as they say there...but i don't have enought knowladge to say that...i'm just a begginer with latex.
Thanks!
Re: Problems with hyperref package
please? someone?
Problems with hyperref package
Yes, it is a question of page numbers, as said here. The abnt class redefines \thepage and changes values of the page counter for the first pages. Just write your document forgetting those warnings and check that links after the ToC are correct. And write to the authors of this class reporting this issue.ppaulo wrote: I don't think it's a question of page numbers as they say there...but i don't have enought knowladge to say that...i'm just a begginer with latex.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Problems with hyperref package
Can you please teach me how to do it? I can't compile my code with this problem, i think that that's an error, not a warning, isn't it?Just write your document forgetting those warnings and check that links after the ToC are correct.
And what is a ToC?
I'll do it as soon as i solve the problem. =)And write to the authors of this class reporting this issue.
Thank you very much!!!
Problems with hyperref package
I've just checked and, yes, i can compile and generate a pdf file with this "error" (and you were right! it's not an error, it's a warning!)!
The links are correct! Except from the references link, that points to the last chapter!
I'll be reporting this problem to the abntex people!
About the Toc, i don't know exactly what is it, but i checked that during the compilation of the code, a file called *.toc is created.
My .toc generated is this one:
I can see that the last line, that refers to the references, links to chapter 4. Is there any way to make it link to the references?
Thak you very much! Every day i'm learning more about latex and liking it even more!
The links are correct! Except from the references link, that points to the last chapter!
I'll be reporting this problem to the abntex people!
About the Toc, i don't know exactly what is it, but i checked that during the compilation of the code, a file called *.toc is created.
My .toc generated is this one:
Code: Select all
\select@language {english}
\select@language {english}
\select@language {brazil}
\contentsline {chapter}{\numberline {1}Introdu\c c\~ao}{5}{chapter.1}
\contentsline {section}{\numberline {1.1}Ontologias}{5}{section.1.1}
\contentsline {section}{\numberline {1.2}ITU Telecommunication Standardization Sector}{5}{section.1.2}
\contentsline {chapter}{\numberline {2}Desenvolvimento}{7}{chapter.2}
\contentsline {section}{\numberline {2.1}Prot\'eg\'e}{7}{section.2.1}
\contentsline {section}{\numberline {2.2}ITU-T Rec. 805 - Arquitetura Funcional Gen\'erica da Rede de Transporte}{7}{section.2.2}
\contentsline {section}{\numberline {2.3}ITU-T Rec. 872 - Arquitetura de Redes \'Opticas de Transporte}{8}{section.2.3}
\contentsline {section}{\numberline {2.4}Plataforma LightPad}{8}{section.2.4}
\contentsline {chapter}{\numberline {3}Resultados Esperados}{9}{chapter.3}
\contentsline {chapter}{\numberline {4}Trabalhos Futuros}{10}{chapter.4}
\contentsline {chapter}{Refer\^encias}{11}{chapter.4}
Thak you very much! Every day i'm learning more about latex and liking it even more!

Problems with hyperref package
Errors stop compilation, warnings don't, as you can see.ppaulo wrote:I've just checked and, yes, i can compile and generate a pdf file with this "error" (and you were right! it's not an error, it's a warning!)!
The problem only affected to the few first pages, so links to most of the document pages should be correct.ppaulo wrote: The links are correct! Except from the references link, that points to the last chapter!
This will help others. Report the issue and refer to this thread. See below for an additional comment. They may also be interested in this other thread, which also concerns abnTeX.ppaulo wrote: I'll be reporting this problem to the abntex people!
ToC is just "Table of Contents". I've wanted to save some keystrokesppaulo wrote: About the Toc, i don't know exactly what is it, but i checked that during the compilation of the code, a file called *.toc is created.


After loading hyperref, copy this in the preamble:ppaulo wrote: My .toc generated is this one:
...............
I can see that the last line, that refers to the references, links to chapter 4. Is there any way to make it link to the references?
Code: Select all
\renewcommand{\ABNTaddcontentsline}[3]%
{\ifthenelse{\boolean{ABNTNextOutOfTOC}}
{\setboolean{ABNTNextOutOfTOC}{false}}
{\phantomsection\addcontentsline{#1}{#2}{#3}}%
}
Me too!ppaulo wrote: Thak you very much! Every day i'm learning more about latex and liking it even more!

Coming back to the problem with hyperref, it seems it comes from the following piece of code inside abnt.cls, which is in effect with the default options:
Code: Select all
.................................
\let\ABNToldendtitlepage\endtitlepage\relax
\renewcommand{\endtitlepage}{\ABNToldendtitlepage\addtocounter{page}{1}}
\pagestyle{empty}
\renewcommand{\thepage}{}
\renewcommand{\chaptertitlepagestyle}{empty}
\renewcommand{\ABNTBeginOfTextualPart}%
{%
\renewcommand{\thepage}{\arabic{page}}
\ifthenelse{\boolean{ABNTheader}}
............................
Code: Select all
%\renewcommand{\thepage}{}
Some final remarks concerning the code in your second post:
- Remove \usepackage{amsfonts}; amsfonts is already loaded by amssymb
- the subfigure package has been superseded by subfig; you can also use subcation instead (see the documentation of the caption package).
- Remove options when loading graphicx (so simply write \usepackage{graphicx}). LaTeX will find the right driver.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.