[PATCH -perfbook 2/7] Prevent warning of duplicate page identifier in Ebook-size builds

Akira Yokosawa <[email protected]>
Newsgroups org.kernel.vger.perfbook
Message-ID <[email protected]>
In Ebook-size builds, pdfTeX complains:

    pdfTeX warning (ext4): destination with the same identifier
    (name{page.i}) has been already used, duplicate ignored

As a workaround, disable pageanchor of hyperef for titlepage in
Ebook-size builds.

Signed-off-by: Akira Yokosawa <[email protected]>
---
 perfbook-lt.tex | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index af60f6f2388f..4c8870a135d9 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -641,7 +641,10 @@
 
 \frontmatter
 
+\IfEbookSize{\hypersetup{pageanchor=false}}{}
 \maketitle
+\IfEbookSize{\hypersetup{pageanchor=true}}{}
+
 \IfTwoColumn{
   \onecolumn\begin{adjustwidth*}{.95in}{.8in}
   \addtolength{\parindent}{6pt}
-- 
2.25.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.