[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#535464: [texlive-latex-extra] Partial toc, titletoc and hyperref break



Package: texlive-latex-extra
Version: 2007.dfsg.17-2
Severity: normal
Tags: patch

using hyperref, titletoc and partial toc break in some condition:
------------ WORK ------------------
\documentclass{book}


\usepackage{titletoc}
\usepackage{hyperref}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}


\begin{document}

\startcontents[sections]

\chapter{Principes d'une nouvelle méthode multiphysique}

\printcontents[sections]{}{1}{\section*{Table des matières}}

\section{one}

\section{two}

\section{three}

\stopcontents[sections]

\chapter{two}

\startcontents[sections]
\section{toto}
\section{foo}



\end{document}
---------------------- BREAK --------------------------
\documentclass{book}


\usepackage{hyperref}
\usepackage{titletoc}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}


\begin{document}

\startcontents[sections]

\chapter{Principes d'une nouvelle méthode multiphysique}

\printcontents[sections]{}{1}{\section*{Table des matières}}

\section{one}

\section{two}

\section{three}

\stopcontents[sections]

\chapter{two}

\startcontents[sections]
\section{toto}
\section{foo}



\end{document}
--------------- WORk CORRECTED -----------------------
\documentclass{book}


\usepackage{hyperref}
\usepackage{titletoc}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}

\makeatletter
\AtBeginDocument{%
    \def\ttl@gobblecontents#1#2#3#4{\ignorespaces}%
}

\makeatother


\begin{document}

\startcontents[sections]

\chapter{Principes d'une nouvelle méthode multiphysique}

\printcontents[sections]{}{1}{\section*{Table des matières}}

\section{one}

\section{two}

\section{three}

\stopcontents[sections]

\chapter{two}

\startcontents[sections]
\section{toto}
\section{foo}



\end{document}

------------ END ----------------

Please forward to maintenair or correct.

Thank you bastien


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.26-2-amd64

Debian Release: squeeze/sid
  990 testing         security.debian.org 
  990 testing         debian.ens-cachan.fr 
   99 unstable        debian.ens-cachan.fr 

--- Package information. ---
Depends                    (Version) | Installed
====================================-+-=============
preview-latex-style                  | 11.83-7.3
dpkg                    (>= 1.14.18) | 1.14.26
tex-common                 (>= 1.18) | 1.18
texlive-common             (>= 2007) | 2007.dfsg.2-4
texlive-pictures        (>= 2007-11) | 2007.dfsg.2-4
texlive-latex-base      (>= 2007-11) | 2007.dfsg.2-4


Recommends                     (Version) | Installed
========================================-+-===========
texlive-humanities                       | 2007.dfsg.17-2
texlive-generic-extra                    | 2007.dfsg.17-2
texlive-latex-extra-doc                  | 2007.dfsg.17-2
texlive-latex-recommended                | 2007.dfsg.2-4
texpower                      (>= 0.2-2) | 0.2-7


Package's Suggests field is empty.


-- 

"ROUCARIES Bastien"
                                                   roucaries.bastien@gmail.com
-------------------------------------------------------------------------------
DO NOT WRITE TO roucaries.bastien+blackhole@gmail.com OR BE BLACKLISTED



Reply to: