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.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Increased Size and uppercased Name of Endnotes List

Postby AleCes » Sun Feb 23, 2014 6:33 pm

Hello everybody,

I wonder whether there's a way to increase the size of list name (i.e. Notes) created by enotez and to make it uppercase. I couldn't find anything in the manual to this avail.

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.  
  16. \begin{document}
  17. \chapter{Introduction}
  18. \blindtext
  19. \endnote{\blindtext}
  20. \blindtext
  21. \endnote{\blindtext}
  22. \blindtext
  23. \endnote{\blindtext}
  24. \blindtext
  25. \endnote{\blindtext}
  26. \blindtext
  27. \endnote{\blindtext}
  28.  
  29. \printendnotes
  30. \end{document}

Tags:

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

Postby cgnieder » Mon Feb 24, 2014 12:23 pm

Have a look at the list-heading option for choosing the sectioning command used for the heading. This will naturally use the same font size used for the corresponding sectioning level, e.g.
  1. \setenotez{list-heading=\chapter*{#1}


For fine control on what is printed as list heading have a closer look at section 6 Language Support.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

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

Postby AleCes » Mon Feb 24, 2014 2:57 pm

Hello cgnieder!

If I add this command to \setenotez, I get the following error:
  1. Package scrlfile, 2012/06/15 v3.12 KOMA-Script package (loading files)
  2. Copyright (C) Markus Kohm
  3.  
  4. ) (/usr/share/texlive/texmf-dist/tex/latex/translations/translations.sty))
  5.  
  6. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  7. !
  8. ! LaTeX error: "kernel/misplaced-equals-sign"
  9. !
  10. ! Misplaced equals sign in key-value input 24
  11. !
  12. ! See the LaTeX3 documentation for further information.
  13. !
  14. ! For immediate help type H <return>.
  15. !...............................................
  16.  
  17. l.24 }
  18.  
  19. ?


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. list-heading=\chapter*{#1}
  13. }
  14.  
  15. \renewcommand*\enmark[1]{\llap{#1}}
  16.  
  17. \begin{document}
  18. \chapter{Introduction}
  19. \blindtext
  20. \endnote{\blindtext}
  21. \blindtext
  22. \endnote{\blindtext}
  23. \blindtext
  24. \endnote{\blindtext}
  25. \blindtext
  26. \endnote{\blindtext}
  27. \blindtext
  28. \endnote{\blindtext}
  29.  
  30. \printendnotes
  31. \end{document}

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

Postby cgnieder » Mon Feb 24, 2014 3:03 pm

You forgot a comma after itemize.
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

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

Postby AleCes » Mon Feb 24, 2014 8:23 pm

cgnieder wrote:You forgot a comma after itemize.

What a scatterbrain! :shock:

However, I've encountered another error:

  1. ! TeX capacity exceeded, sorry [input stack size=5000].
  2. \@nomath ...e \@font@warning {Command \noexpand #1
  3. invalid in math mode}\fi
  4. l.3426
  5.  


when I add
  1. \DeclareTranslation{English}{enotez-splitted-title}{\small{<name> <ref>}}

to the minimal example.

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

Postby cgnieder » Mon Feb 24, 2014 8:30 pm

AleCes wrote:
cgnieder wrote:You forgot a comma after itemize.

What a scatterbrain! :shock:

However, I've encountered another error:

! TeX capacity exceeded, sorry [input stack size=5000].
\@nomath ...e \@font@warning {Command \noexpand #1
invalid in math mode}\fi
l.3426


when I add
  1. \DeclareTranslation{English}{enotez-splitted-title}{\small{<name> <ref>}}

to the minimal example.

The translation should not contain any formatting such as \small. It should only determine the text to be used.

Probably what you want is something like
  1. \setenotez{
  2. list-heading = \chapter*{#1} ,
  3. split-heading = \section*{#1} ,
  4. split-title = <name> <ref>
  5. }

or
  1. \setenotez{
  2. list-heading = \section*{#1} ,
  3. split-heading = \subsection*{#1} ,
  4. split-title = <name> <ref>
  5. }


Then you also don't need to care about translation-strings.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

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

Postby AleCes » Mon Feb 24, 2014 9:29 pm

Actually you suggested I should use translation-strings in order "to get fine control on what is printed".

Interestingly enough
  1. \DeclareTranslation{English}{enotez-title}{\Huge{NOTES}}

works :o :!:

However, what I want is:

  1. \setenotez{
  2. list-heading = \Huge{\chapter*{#1}} ,
  3. split-heading = \large{\section*{#1}},
  4. split-title = <name> <ref>
  5. }


Is there a way to get such fine-tuning working?

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

Postby cgnieder » Mon Feb 24, 2014 9:52 pm

AleCes wrote:Actually you suggested I should use translation-strings in order "to get fine control on what is printed".

By that i meant the text (you also said something about uppercase IIRC...

AleCes wrote:However, what I want is:

  1. \setenotez{
  2. list-heading = \Huge{\chapter*{#1}} ,
  3. split-heading = \large{\section*{#1}},
  4. split-title = <name> <ref>
  5. }


Is there a way to get such fine-tuning working?


That doesn't like right at all! On a technical side neither \large nor \Huge take an argument but are font switches that are active until the end of the current group or until the next switch.

Why do you want the headings different from other headings in you text? That doesn't seem to make sense to me... if all chapter titles should be printed \Huge then this should be adjusted (e.g. with titlesec for all \chapter's at once. Changeing only the font size of the heading of the endnotes seems very inconsistent to me typographically...

Something like this is a setting I'd expect:

  1. \documentclass{book}
  2.  
  3. \usepackage[rm]{titlesec}
  4. \titleformat*{\chapter}{\Huge\bfseries}
  5. \titleformat*{\section}{\large\bfseries}
  6.  
  7. \usepackage{enotez}
  8. \setenotez{
  9. split-title = <name> <ref> ,
  10. split = chapter ,
  11. list-style = itemize
  12. }
  13. \DeclareTranslation{English}{enotez-chapter}{Chapter}
  14. \renewcommand*\enmark[1]{\llap{#1}}
  15.  
  16. \usepackage{blindtext}
  17.  
  18. \begin{document}
  19.  
  20. \chapter{Introduction}
  21. \blindtext\endnote{\blindtext}
  22. \blindtext\endnote{\blindtext}
  23. \blindtext\endnote{\blindtext}
  24. \blindtext\endnote{\blindtext}
  25. \blindtext\endnote{\blindtext}
  26.  
  27. \printendnotes
  28.  
  29. \end{document}


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

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

Postby cgnieder » Mon Feb 24, 2014 9:56 pm

AleCes wrote:Interestingly enough
  1. \DeclareTranslation{English}{enotez-title}{\Huge{NOTES}}

works :o :!:

Only by chance... :)

As I said before: \Huge is a switch. A better definition would be
  1. \DeclareTranslation{English}{enotez-title}{{\Huge NOTES}}

but I'd avoid adding formatting to the translations.
  1. \DeclareTranslation{English}{enotez-title}{NOTES}

would be even better and the formatting should be done with an interface for setting the format of every \chapter

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

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

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

I know it's typographically inconsistent but that's the way it's typeset in an old book and I must try to reproduce the formatting as faithfully as possible.


Return to “General”

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot], MSN [Bot] and 18 guests