Generaltitlesec, hyperref, and appendix

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
wheely_chairs
Posts: 26
Joined: Mon Jun 16, 2008 1:22 pm

titlesec, hyperref, and appendix

Post by wheely_chairs »

Hello,

I came across a bug in my document whereby appendix sections (in an article) are referred to as sections, rather than as appendices. The problem is caused by the titlesec package. Here is an MWE:

Code: Select all

\documentclass{article}

\usepackage{titlesec,hyperref}

\begin{document}

\appendix

\section{One}\label{sec:one}

This is \autoref{sec:one}

\end{document}
The reference will appear "section A". If you unload the titlesec package, you will see "Appendix A" (typeset twice) (this bug was also reported here). Furthermore, if you change to a class with chapters, the problem disappears.

Does anyone have a solution?

Thanks,

Chris

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

titlesec, hyperref, and appendix

Post by localghost »

Submit a report to the maintainer of the titlesec package with at least the reference to the discussion on ctt.


Thorsten
Post Reply