1

This is a follow-up to: Two-column endnotes with one-column header

Clemens' answer is exactly what I needed. But there is another wish: Given the chapter ttles are ragged right in the main text, but I want to have them centered as the split title in the endnotes.

I tried this:

\setenotez{
list-name = {},
reset = true,
split = chapter,
split-title = {\centering <chapter title>},
mark-cs = {\textsuperscript}
}

but only got errors:

enter image description here

Any ideas? Thank you once again.

3
  • 1
    A complete example would be useful.
    – egreg
    Jul 15, 2015 at 20:32
  • Essentially that means you want two \sections (or two \chapters) with different formatting – one for the text and one for the list. So the question is really how to do that. Once you figured that out just use the split-heading option to use that command.
    – cgnieder
    Jul 15, 2015 at 21:02
  • Thank you, @Clemens, for showing me the right directiion. I Think I have worked out a solution and will post it shortly.
    – michael
    Jul 20, 2015 at 6:14

1 Answer 1

1

Finally, this is what I found out, thanks to Clemens' comment (and, of course, his big help in the first question concerning enotez, that I mentioned on top of the page):

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{enotez,multicol}
\usepackage{kantlipsum,microtype}


\usepackage[user,titleref]{zref}
\usepackage{xparse}
\let\oldchapter\chapter
\RenewDocumentCommand\chapter{som}{%
\IfBooleanTF{#1}
{\oldchapter*{#3}}
{%
  \IfNoValueTF{#2}
    {\oldchapter{#3}}
    {\oldchapter[#2]{#3}}%
    \refstepcounter{chapter}
  \zlabel{ch:\arabic{chapter}}%
}%
}

\NewSplitTitleTag{chapter title}{\ztitleref{ch:<split-level-id>}}
\setenotez{
  list-name = {},
  reset = true,
  split = chapter,
  split-title = {<chapter title>},
  mark-cs = {\textsuperscript}
}

\AtEveryEndnotesList{\begin{multicols}{2}} % before the whole list
\AfterEveryEndnotesList{\end{multicols}}   % after the whole list
\AfterEveryListSplit{\begin{multicols}{2}} % after a sub-heading in the splitted list
\AtEveryListSplit{\end{multicols}}         % before a sub-heading in the splitted list


\DeclareInstance{enotez-list}{custom}{paragraph}
{heading = \chapter*{#1},
notes-sep = 0\baselineskip,
format = \normalfont\footnotesize,
number = \textsuperscript{#1}
}

% column sep between columns in a multicols env:
\setlength\columnsep{22pt}

\begin{document}

\chapter{Superduper}
Text\endnote{\kant[1]}. Text\endnote{\kant[2]}.     
Text\endnote{\kant[3];\kant[4]}.
Text\endnote{\kant[5];\kant[6]}.

\chapter{Eher langweilig}
Text\endnote{\kant[1]}. Text\endnote{\kant[2]}.    
Text\endnote{\kant[3];\kant[4]}.
Text\endnote{\kant[5];\kant[6]}.

\newpage

\appendix
\chapter*{Anmerkungen}
\printendnotes[custom]

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .