LaTeX forum ⇒ GeneralIncreased Size and uppercased Name of Endnotes List Topic is solved

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

Re: Increased Size and uppercased Name of Endnotes List

Postby cgnieder » Mon Feb 24, 2014 10:21 pm

Well, if it must be then something like
  1. \setenotez{
  2. list-heading = {\Huge\bfseries#1} ,
  3. split-heading = {\large\bfseries#1} ,
  4. }

might work (I haven't tried it).

Regards
site moderator & package author

Tags:

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

Postby AleCes » Mon Feb 24, 2014 10:54 pm

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: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Mon Feb 24, 2014 11:10 pm

What about

  1. \usepackage{etoolbox}
  2. \newrobustcmd*\enotezchapter[1]{{\Huge\bfseries#1}}
  3. \newrobustcmd*\enotezsection[1]{{\large\bfseries#1}}
  4. \setenotez{
  5. list-heading = \enotezchapter{#1} ,
  6. split-heading = \enotezsection{#1} ,
  7. }


Regards
site moderator & package author

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

Postby AleCes » Tue Feb 25, 2014 12:05 am

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:

  1. \titleformat{\section}[display]
  2. {}
  3. {}
  4. {0pt}
  5. {\thesection.\ }
  6. []

User avatar
cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Tue Feb 25, 2014 1:07 am

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

Postby AleCes » Tue Feb 25, 2014 10:33 am

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.

  1. \usepackage{titlesec}
  2. \titleformat{\chapter}[display]
  3. {\centering\bfseries\large}
  4. {\Huge\thechapter}
  5. {0pt}
  6. {\MakeUppercase}
  7. []


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: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Tue Feb 25, 2014 12:52 pm

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

Postby AleCes » Tue Feb 25, 2014 12:58 pm

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: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Tue Feb 25, 2014 8:42 pm

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

Postby AleCes » Tue Feb 25, 2014 11:04 pm

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

  1. \documentclass[10pt,a5paper,openany]{book}
  2. \usepackage{blindtext}
  3. \usepackage{bookmark}
  4. \usepackage{enotez}
  5.  
  6. \setenotez{
  7. reset = true,
  8. backref = true,
  9. totoc = chapter,
  10. split = chapter,
  11. list-style = itemize
  12. }
  13.  
  14. \renewcommand*\enmark[1]{\llap{#1}}
  15. \usepackage{titlesec}
  16. \titlespacing{\chapter}{0pt}{*0}{*1.5}
  17. \titlespacing{\section}{0pt}{*2}{*1.5}
  18. \titlespacing{\subsection}{0pt}{*0}{*0}
  19. \titleformat{\chapter}[display]
  20. {\centering\bfseries\large}
  21. {\Huge\thechapter}
  22. {0pt}
  23. {\MakeUppercase}
  24. []
  25. \titleformat{\section}[hang]
  26. {\centering\bfseries\large}
  27. {}
  28. {0pt}
  29. {\thesection.\ \MakeUppercase}
  30. []
  31. \titleformat{\subsection}[hang]
  32. {\bfseries\small}
  33. {}
  34. {0pt}
  35. {\thesubsection.\ \textsc}
  36. []
  37. \renewcommand{\thechapter}{\Roman{chapter}}
  38. \renewcommand{\thesection}{\Alph{section}}
  39. \renewcommand{\thesubsection}{\arabic{subsection}}
  40.  
  41. \begin{document}
  42. \chapter{Introduction}
  43. \blindtext
  44. \endnote{\blindtext}
  45. \blindtext
  46. \endnote{\blindtext}
  47. \blindtext
  48. \endnote{\blindtext}
  49. \blindtext
  50. \endnote{\blindtext}
  51. \blindtext
  52. \endnote{\blindtext}
  53.  
  54. \printendnotes
  55. \end{document}


Return to “General”

Who is online

Users browsing this forum: No registered users and 9 guests