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 »

Well, if it must be then something like

Code: Select all

\setenotez{
  list-heading = {\Huge\bfseries#1} ,
  split-heading = {\large\bfseries#1} ,
}
might work (I haven't tried it).

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

Re: Increased Size and uppercased Name of Endnotes List

Post by AleCes »

Unfortunately what you suggested doesn't do the work it's supposed to do, it actually brings forth a mess, try it for yourself. :(
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 »

What about

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} ,
}
Regards
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Increased Size and uppercased Name of Endnotes List

Post by AleCes »

No way, still a mess, I think I need to completely redefine the format of chapter titles (list-heading) and section titles (split-heading) in the Notes chapter because the way you suggested the Notes chapter page's layout looks like a normal page with headers, and list-headings are preceded by a point because of this in the prologue:

Code: Select all

\titleformat{\section}[display]
{}
{}
{0pt}
{\thesection.\ }
[]
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 »

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 in book.cls and I found the default formatting is
  • \Huge \bfseries for \chapter and
  • \Large\bfseries for \section.
That 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?
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Increased Size and uppercased Name of Endnotes List

Post by AleCes »

cgnieder 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 in book.cls and I found the default formatting is
  • \Huge \bfseries for \chapter and
  • \Large\bfseries for \section.
That 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?
Of course, however I had to modify the standard chapter formatting to suit my needs, to the extent that now only the chapter number is \Huge while the title is \large.

Code: Select all

\usepackage{titlesec}
\titleformat{\chapter}[display]
{\centering\bfseries\large}
{\Huge\thechapter}
{0pt}
{\MakeUppercase}
[]
As for sections I need them to be \large, not \Large.

I know this thing is so complicated but please understand I'm forced to reproduce the formatting of a book printed at the beginning of last century. :?
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 »

AleCes wrote:Of course, however I had to modify the standard chapter formatting to suit my needs, to the extent that now only the chapter number is \Huge while the title is \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?
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Re: Increased Size and uppercased Name of Endnotes List

Post by AleCes »

I'm so sorry cgnieder, I thought it proper to take those lines away from the minimal example... :?

Yes, I want a different size for chapter and sections titles in the endnotes chapter.
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 »

Can you then provide a Infominimal working example that includes your redefinitions of \chapter and \section, please?
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Increased Size and uppercased Name of Endnotes List

Post by AleCes »

Here it is: please forgive me but I thought including these would uselessly lengthen the minimal example... :?

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}
Post Reply