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} ,
}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis