I have a problem with the TOC of my document (two sides) that's is placed at the end. I use the package fancyhdr and the titlesec/titletoc, among the others. This is my preamble:
Code: Select all
Code, edit and compile here:
\documentclass[spanish]{book}\usepackage[T1]{fontenc}\usepackage[latin9]{inputenc}\usepackage{geometry}\geometry{verbose,paperwidth=170mm,paperheight=250mm,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2cm}\pagestyle{plain}\setcounter{secnumdepth}{3}\setcounter{tocdepth}{1}\usepackage{textcomp}\usepackage{amsmath}\usepackage{amssymb}\makeatletter\usepackage{fnpos}\usepackage{endnotes}\let\footnote=\endnote\renewcommand{\notesname}{Notas}\usepackage{ifthen}\usepackage{graphicx}\usepackage{colortbl}\usepackage{lscape}\usepackage{wrapfig}\usepackage{pst-math,pstricks-add}\usepackage{picins}\usepackage{wasysym}\usepackage{marvosym}\usepackage{mathtools}\newtagform{brackets}{[}{]}\usetagform{brackets}\usepackage{txfonts}\usepackage[a]{esvect}\usepackage{nccparskip}\usepackage[lflt]{floatflt}\usepackage{ccaption}\usepackage[font=small,labelfont=bf]{caption}\usepackage[spanish]{babel}\usepackage{subdepth}\usepackage{array}\usepackage{booktabs}\usepackage{multicol}\usepackage{multirow}
Code: Select all
Code, edit and compile here:
! Use of \reserved@a doesn't match its definition.\new@ifnextchar ...served@d = #1\def \reserved@a {#2}\def \reserved@b {#3}\f...l.10691 \tableofcontents{}If you say, e.g., `\def\a1{...}', then you must alwaysput `1' after `\a', since control sequence names aremade up of letters only. The macro here has not beenfollowed by the required stuff, so I'm ignoring it.! Argument of \ttl@assign@i has an extra }.<inserted text>\parl.10691 \tableofcontents{}I've run across a `}' that doesn't seem to match anything.For example, `\def\a#1{...}' and `\a}' would producethis error. If you simply proceed now, the `\par' thatI've just inserted will cause me to report a runawayargument that might be the root of the problem. But ifyour `}' was spurious, just type `2' and it will go away.Runaway argument?{\nobreak \@xcentercr }\reserved@a! Paragraph ended before \ttl@assign@i was complete.<to be read again>\parl.10691 \tableofcontents{}I suspect you've forgotten a `}', causing me to apply thiscontrol sequence to too much text. How can we recover?My plan is to forget the whole thing and hope for the best.! Argument of \ttl@assign@i has an extra }.<inserted text>\parl.10691 \tableofcontents{}I've run across a `}' that doesn't seem to match anything.For example, `\def\a#1{...}' and `\a}' would producethis error. If you simply proceed now, the `\par' that