> ## Content Index
> Fetch the complete content index at: https://blog.gonzaleztroyano.es/llms.txt
> Use this file to discover other available public pages before exploring further.

# Package hyperref Warning: The anchor of a bookmark and its parent's must not be the same
- URL: https://blog.gonzaleztroyano.es/package-hyperref-warning-the-anchor-of-a-bookmark-and-its-parents-must-not-be-the-same-added-a-new-anchor-on-input-line-334/
- Published: 2023-10-30T14:30:00.000Z
- Updated: 2023-12-02T21:51:31.000Z
- Author: Pablo González Troyano
- Tags: pensamientos, tech-notes, LaTeX

## Problema

Recientemente me he encontrado con este error a la hora de compilar un [documento LaTeX](https://cgis.gonzaleztroyano.es/que-es-latex-primeros-pasos?ref=blog.gonzaleztroyano.es). Tras *volverme loco* buscando cómo arreglarlo, comparto aquí la **sencilla solución**.

```plain
Package hyperref Warning: The anchor of a bookmark and its parent's must not be the same

```

## Solución

Ni ChatGPT, ni Google Bard, ni Bing AI... [Este comentario](https://tex.stackexchange.com/a/451063?ref=blog.gonzaleztroyano.es) en [LaTeX Stack Exchange](https://tex.stackexchange.com/questions/364010/hyperref-and-titlesec-conflict-and-warning?ref=blog.gonzaleztroyano.es) ofrece la solución:

## **titlesec** antes de **hyperref**

Tal y como apuntaba el [Juan del Acebo](https://tex.stackexchange.com/users/16493/juan-del-acebo?ref=blog.gonzaleztroyano.es), para solucionarlo, bastaba con importar el paquete *titlesec* que *hyperref*. ¡Únicamente esto!

Aquí lo comparto, por si le pudiera servir a alguien. ¡Saludos!

---

### ¿Alguna duda?

No dudes en [ponerte en contacto conmigo](https://blog.gonzaleztroyano.es/sobre-mi/#%C2%BFalguna-duda) para cualquier duda, sugerencia, queja o aclaración que creas necesaria. ¡Será un placer hablar contigo!