Skip to content

Commit

Permalink
modified index package to imakeidx rather than makeidx
Browse files Browse the repository at this point in the history
  • Loading branch information
GuriTheoChem committed Mar 11, 2024
1 parent 3b473a4 commit 9cae0ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified build/main.pdf
Binary file not shown.
7 changes: 4 additions & 3 deletions src/contents/latex_doc_preamble/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
% \titlecontents{subsection}[2em]{\vspace{0.5em}\sffamily}{\thecontentslabel\hspace{1em}}{}{\titlerule*[0.5pc]{.}\contentspage}
% \titlecontents{subsubsection}[3em]{\vspace{0.5em}\sffamily}{\thecontentslabel\hspace{1em}}{}{\titlerule*[0.5pc]{.}\contentspage}
\usepackage{booktabs} % For professional-looking tables
\usepackage{makeidx} % Package for creating index
\makeindex % Command to create the index
\usepackage{imakeidx} % Package for creating index

%--------------------------------------------------------------------------------------------------
% Code Block Formatting and Syntax Highlighting
Expand Down Expand Up @@ -259,4 +258,6 @@
% }
\usepackage{bookmark}
% Custom command for referencing figures with custom text
\newcommand{\figref}[1]{\hyperref[#1]{Figure~\ref*{#1}}}
\newcommand{\figref}[1]{\hyperref[#1]{Figure~\ref*{#1}}}
% Activate hyperlinks for the index
\makeindex[columns=2, title=Index, intoc]
1 change: 1 addition & 0 deletions src/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@

% Index
\clearpage
\phantomsection % To correct the anchor toc index to the index page. Otherwise, the toc index takes user to the last section of the appendix chapter before this.
\printindex % Print the index

\end{document}
Expand Down

0 comments on commit 9cae0ad

Please sign in to comment.