Code: Select all
\setenotez{
list-heading = {\Huge\bfseries#1} ,
split-heading = {\large\bfseries#1} ,
}
Regards
Code: Select all
\setenotez{
list-heading = {\Huge\bfseries#1} ,
split-heading = {\large\bfseries#1} ,
}
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
Code: Select all
\usepackage{etoolbox}
\newrobustcmd*\enotezchapter[1]{{\Huge\bfseries#1}}
\newrobustcmd*\enotezsection[1]{{\large\bfseries#1}}
\setenotez{
list-heading = \enotezchapter{#1} ,
split-heading = \enotezsection{#1} ,
}
Code: Select all
\titleformat{\section}[display]
{}
{}
{0pt}
{\thesection.\ }
[]
\section
and \chapter
in book.cls
and I found the default formatting is
\Huge \bfseries
for \chapter
and\Large\bfseries
for \section
.Of course, however I had to modify the standard chapter formatting to suit my needs, to the extent that now only the chapter number iscgnieder wrote:I tested the code I proposed: with an up to date enotez it works without a problem -- but it looks ugly. Then I looked at the definitions of\section
and\chapter
inbook.cls
and I found the default formatting isThat is: they already have the formatting that you want -- now I'm even more confused! What exactly do you want to change from the default settings or why doesn't the default setting no suit your needs?
\Huge \bfseries
for\chapter
and\Large\bfseries
for\section
.
\Huge
while the title is \large
.Code: Select all
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\centering\bfseries\large}
{\Huge\thechapter}
{0pt}
{\MakeUppercase}
[]
\large
, not \Large
.That is information that would have been helpful from the start... So you want those modified
\chapter
and \section
but with a different font size for the list of endnotes?\chapter
and \section
, please?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
}
\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{\chapter}[display]
{\centering\bfseries\large}
{\Huge\thechapter}
{0pt}
{\MakeUppercase}
[]
\titleformat{\section}[hang]
{\centering\bfseries\large}
{}
{0pt}
{\thesection.\ \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}
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