GeneralWhat's wrong with my appendices ?

LaTeX specific issues not fitting into one of the other forums of this category.
Locked
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

What's wrong with my appendices ?

Post by Cham »

I'm experiencing indexing problems with words located in my appendices (the index is okay with words from normal chapters). All page numbers given in the index (for words from the appendices) have an offset of 2 pages and I don't know why.

I'm using the book document class. Here's a tiny snippet of the preamble :

Code: Select all

\documentclass[12pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
Here's how I define my appendices in my main (master) LaTeX document :

Code: Select all

\backmatter

\appendix
	\pagestyle{appendices}
	\renewcommand\thesection{A.\arabic{section}}
	\input{Appendices}
The page style is working great, so I don't think this is the source of the problem.

The Appendices file begins like this :

Code: Select all

\chapter{Appendices}

\section{First appendix title}

Bla bla bla ... word\index{word}, bla bla bla ... 
The problem is I'm yet unable to get the word to be properly indexed : its page number is suffering an offset of two pages in the index !

Here's how the index itself is defined (with the makeidx package) :

Code: Select all

\cleardoublepage
\phantomsection
\pagestyle{index}
\printindex
According to the code snippets given above, is there something wrong to you, the pros out there ? After hours of messing with my code, I really don't understand what's going on ! Now, this is getting extremely frustrating ! :cry:

Recommended reading 2024:

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

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

Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

What's wrong with my appendices ?

Post by Cham »

There's something fishy with my code. I need help to solve the index. Here's what I've found today :

The indexation works perfectly if I just remove the empheq package (what the ... ?). If I keep it, I can get the index to work correctly if I reduce considerably the book (by removing several chapters).

If I keep all the packages ON, and keep all the book's chapters, the indexation stop working properly around a simple word in the text, in the middle of chapter 3 (there are 15 chapters in the whole book). All indexed words before that specific word are correctly indexed while all the indexed words after that specific word aren't (there's a systematic offset of 1 or 2 pages in the index).

What the hell is going on ?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

What's wrong with my appendices ?

Post by localghost »

With the last post the problem description has become redundant [1]. Discussion will continue in the other topic.

[1] View topic: Problem with Index (packages conflicts ?)
Locked