I used showexpl package in junction with hyperref package.
When I use two consecutive \LTXinputExample commands with captions, I get many warning as follows
Here is my trivial minimal input file:warning wrote:! pdfTeX warning (ext4): destination with the same
identifier (name{page.1}) has been already used,
duplicate ignored
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
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 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