Skip to content

Instantly share code, notes, and snippets.

@guimondmm
Last active November 25, 2018 15:05
Show Gist options
  • Save guimondmm/debfe275638cfdcbe8f6acf0abca8e8a to your computer and use it in GitHub Desktop.
Save guimondmm/debfe275638cfdcbe8f6acf0abca8e8a to your computer and use it in GitHub Desktop.
Segmented bibliography with BibLaTeX and untitled sections (no heading)
% Untitled section (no heading, e.g., Introduction):
\makeatletter\def\@currentlabelname{Introduction}\makeatother\newrefsection%
% Result: the label "Introduction" is not printed in the text but appears in the segmented bibliography
% Regular section with a heading:
\section*{Heading}\newrefsection%
% Result: the label "Heading" is printed above the paragraph as usual and also appears in the bibliography.
% Towards the end of the document, to print the segmented bibliography:
\defbibheading{subbibliography}{%
\subsection*{\nameref{refsection:\therefsection}}}%
\printbibheading%
\bibbysection[heading=subbibliography]
% Refer to BibLaTeX documentation for more details <http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment