Skip to content

Instantly share code, notes, and snippets.

@jchaffin
Created February 8, 2019 05:13
Show Gist options
  • Save jchaffin/5b18ba930ee8cdae143a236a784711bb to your computer and use it in GitHub Desktop.
Save jchaffin/5b18ba930ee8cdae143a236a784711bb to your computer and use it in GitHub Desktop.
makeidx in middle of page
#+latex_header: \usepackage{makeidx}
#+latex_header: \makeindex
# This ridiculousness is to make the index start in the middle of a page.
# https://tex.stackexchange.com/questions/23870/index-shouldnt-start-new-page
#+latex_header: \makeatletter
#+latex_header: \renewenvironment{theindex}
#+latex_header: {\section*{\indexname}%
#+latex_header: \@mkboth{\MakeUppercase\indexname}%
#+latex_header: {\MakeUppercase\indexname}%
#+latex_header: \thispagestyle{plain}\parindent\z@
#+latex_header: \parskip\z@ \@plus .3\p@\relax
#+latex_header: \columnseprule \z@
#+latex_header: \columnsep 35\p@
#+latex_header: \let\item\@idxitem}
#+latex_header: {}
#+latex_header: \makeatother
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment