Commit 48c738df authored by Simon Marlow's avatar Simon Marlow
Browse files

omit the index in the HTML version, and the extra "References" TOC entry

parent fcc8bfda
......@@ -25,6 +25,15 @@
\makeatother
%---------------------------------------------------------------------
% conditional compilation for HTML/typeset
\newcommand{\ifhtml}[2]{%
\ifx \HCode\Undef
#2
\else
#1
\fi
}
% the major sections have \cleardoublepages between them
% if you want those between EVERY section, change the
% following defn:
......@@ -484,12 +493,12 @@ that it does not claim to be a definition of the language Haskell 2010.
\input{index-extra}
% Add a contents line for the References -- may be off by one page
\addcontentsline{toc}{part}{References}
\ifhtml{}{\addcontentsline{toc}{part}{References}}
\bibliographystyle{plain}
\bibliography{haskell}
%
\startnewstuff
\printindex
\ifhtml{}{\printindex}
\end{document}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment