GeneralIncreased Size and uppercased Name of Endnotes List

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Increased Size and uppercased Name of Endnotes List

Post by cgnieder »

How about this:

Code: Select all

\documentclass[10pt,a5paper,openany]{book}
\usepackage{blindtext}
\usepackage{bookmark}
\usepackage{enotez}

\setenotez{
  reset = true,
  backref = true,
  totoc = chapter,
  split = chapter,
  list-style = itemize ,
  list-heading = \chapter*{#1} ,
  split-heading = \section*{#1} ,
  split-title = <name> <ref>
}

\renewcommand*\enmark[1]{\llap{#1}}
\usepackage{titlesec}
\titlespacing{\chapter}{0pt}{*0}{*1.5}
\titlespacing{\section}{0pt}{*2}{*1.5}
\titlespacing{\subsection}{0pt}{*0}{*0}
\titleformat{name=\chapter}[display]
  {\centering\bfseries\large}
  {\Huge\thechapter}
  {0pt}
  {\MakeUppercase}
  []
\titleformat{name=\chapter,numberless}[display]
  {\centering\bfseries\huge}
  {}
  {0pt}
  {\MakeUppercase}
  []
\titleformat{name=\section}[hang]
  {\centering\bfseries\large}
  {}
  {0pt}
  {\thesection.\ \MakeUppercase}
  []
\titleformat{name=\section,numberless}[hang]
  {\centering\bfseries\large}
  {}
  {0pt}
  {\MakeUppercase}
  []
\titleformat{\subsection}[hang]
  {\bfseries\small}
  {}
  {0pt}
  {\thesubsection.\ \textsc}
  []
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\Alph{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}

\begin{document}

\chapter{Introduction}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}

\printendnotes
\end{document}
Regards
site moderator & package author

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Increased Size and uppercased Name of Endnotes List

Post by AleCes »

Thank you so much you've been of such a great help to me!!! I really don't know how I could have pulled it off without you!

hang is better for numberless chapter titles such as Notes' because display leaves an empty space above the title when there's no chapter number.

Code: Select all

\titleformat{name=\chapter,numberless}[hang]
  {\centering\bfseries\Huge}
  {}
  {0pt}
  {\MakeUppercase}
  []
Thanks again.
Post Reply