Generalwarning when using showexpl in conjuction with hyperref

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

warning when using showexpl in conjuction with hyperref

Post by fractal.generator »

Dear all,

I used showexpl package in junction with hyperref package.

When I use two consecutive \LTXinputExample commands with captions, I get many warning as follows
warning wrote:! pdfTeX warning (ext4): destination with the same
identifier (name{page.1}) has been already used,
duplicate ignored
Here is my trivial minimal input file:

Code: Select all

 \documentclass{book}

\usepackage{showexpl}
\lstset{explpreset={pos=b}}

\usepackage[a4paper, margin=2cm]{geometry}
\usepackage{hyperref}

\begin{document}

\LTXinputExample[caption={data1}]{data1.tex}
\LTXinputExample[caption={data2}]{data2.tex}

\end{document}

The content of data1.tex :

Code: Select all

111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111 
111111111
The content of data2.tex :

Code: Select all

222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222 
222222222
The warning appears when there are at least two consecutive \LTXinputExample commands with captions.

The warning will disappear when I either
remove the caption from \LTXinputExample
or remove the hyperref package from the preamble.

What should I do to remove the warning?


Regards,


Hayashi
Last edited by fractal.generator on Thu Oct 16, 2008 12:43 pm, edited 2 times 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.

fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Re: warning when using showexpl in conjuction with hyperref

Post by fractal.generator »

The post above has been modified for the sake of clearity.
Post Reply