Recently I have updated coding to Bilingual dictionary in Latex (the minimal example published at the link) as part of Showcase of beautiful typography done in TeX & friends by adding declention and conjugation tables of irregular nouns, adjectives, pronouns and verbs. With those changes of code I have lost formating of the last page formated with dictstyle, namely fancyhead and top rule and rule that splits two column page. Even with the files without tables the formating on the last page is lost.
Asked
Active
Viewed 469 times
4
1 Answers
6
Here are the last lines of the abridged version you put in the "Showcase" thread:
\begin{document}
\twocolumn
\pagestyle{dictstyle}
% the letters in alphabetical order
\input{letters/dict_letter_a.tex}
\input{letters/dict_letter_aa.tex}
% list of all letters, each letter in separate .tex file, example of letter file, see below.
% print the index of authors of photographs
\thispagestyle{empty}
\printindex
\thispagestyle{empty}
\end{document}
What's the problem? The \thispagestyle command applies to the current page, which happens to be the last one in the dictionary part. You probably want
\begin{document}
\twocolumn
\pagestyle{dictstyle}
% the letters in alphabetical order
\input{letters/dict_letter_a.tex}
\input{letters/dict_letter_aa.tex}
% list of all letters, each letter in separate .tex file, example of letter file, see below.
% print the index of authors of photographs
\clearpage % output the last page
\pagestyle{empty} % all pages with style "empty" from now on
\printindex
\end{document}
egreg
- 1,121,712
\clearpagebefore\thispagestyle{empty}(but probably it should be\clearpage\pagestyle{empty}\printindex; the command\thispagestyledoesn't issue a page changing command, so it's applied to the current page, which happens to be the last in the dictionary proper. – egreg Dec 20 '12 at 08:57