I use hyperref package and known command to add unnumbered chapters into Table of Contents, for example:
Code: Select all
\chapter*{Введение}
\addcontentsline{toc}{chapter}{Введение}
How to resolve this problem?
Code: Select all
\chapter*{Введение}
\addcontentsline{toc}{chapter}{Введение}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Введение}
\chapter*{Введение}
Code: Select all
\pdfbookmark[2]{#1}{#1}
\addcontentsline{toc}{subsection}{\hyperlink{#1}{#1}}
Code: Select all
"Undefined control sequence. \hyper@@link"
Code: Select all
\pdfbookmark[2]{#1}{#1}
\phantomsection
\addcontentsline{toc}{subsection}{#1}
Code: Select all
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Алфавитный указатель}
\printindex{}
Code: Select all
\cleardoublepage
\pdfbookmark[1]{Алфавитный указатель}{indexname}
\phantomsection
\printindex{}
Code: Select all
\cleardoublepage
\pdfbookmark[1]{Алфавитный указатель}{indexname}
\phantomsection
\addtocontents{toc}{Алфавитный указатель}
\printindex{}
Code: Select all
LaTeX Error: Something's wrong--perhaps a missing \item.
Code: Select all
I can't write on file `____________.pdf'.
Code: Select all
...{\cyri }\IeC {\cyryu }}{231}{section*.26}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Code: Select all
\documentclass{book}
\usepackage{lipsum} % Just for getting some text
\usepackage{hyperref}
\usepackage{makeidx}
\makeindex
\begin{document}
\tableofcontents
\chapter{One}
Some text\index{text}.
\lipsum[1]
\chapter{Two}
More text\index{text}.
\lipsum[1]
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\end{document}
Yes, you're right. I had misunderstood the problem. Anyway, let's explore a different approach. In a recent thread, I provided a redefinition of theindex environment for the article class in order to write indexes with three or more columns. In the case of the book class, here is the code:neGODnick wrote:Hi, Juanjo!
Your minimal code (I have tried it) generates the PDF with the same problems as I described above (see also the 1st topic): clicking opens chapters at the level of it's titles, but the index page opens at the level of the text (list of entires) below the title "Index"; "Index" is hided under the top of PDF-viewer window.
Code: Select all
\usepackage{multicol}
\makeatletter
\renewenvironment{theindex}
{\if@twocolumn
\@restonecolfalse
\else
\@restonecoltrue
\fi
\setlength{\columnseprule}{0pt}
\setlength{\columnsep}{35pt}
\begin{multicols}{3}[\chapter*{\indexname}]
\markboth{\MakeUppercase\indexname}%
{\MakeUppercase\indexname}%
\thispagestyle{plain}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt plus 0.3pt}
\relax
\let\item\@idxitem}%
{\end{multicols}\if@restonecol\onecolumn\else\clearpage\fi}
\makeatother
NEW: TikZ book now 40% off at Amazon.com for a short time.