TransWikia.com

Change references from verbose-inote style to endnotes following the same design

TeX - LaTeX Asked by Albert Acedo on October 5, 2021

I am working on a proposal with a page limit, and I am running out of space. I am using verbose-inote for the references because is the style to use for the proposal. However, I am having problems of space and I would like to move all the references as endnotes at the end of the document with the same format that I have for the verbose-inote to gain some space.

I have this (messy) code as MWP:

documentclass[a4paper,11pt]{article}



usepackage[stable,para,hang]{footmisc}

makeatletter
footglue=.1em plus.15em minus.15em

longdef@makefntext#1{leavevmode
  @makefnmarknobreak
  #1%
}

usepackage[style=verbose-inote,maxcitenames=1,backend=bibtex,doi=false,isbn=false,url=false,giveninits=true,abbreviate=true,ibidpage=true]{biblatex}
renewbibmacro{in:}{}
DeclareAutoCiteCommand{footnote}[r]{smartcite}{smartcites}
DeclareFieldFormat[article]{volume}{bibstring{jourvol}addnbspace #1}
DeclareFieldFormat[article]{number}{bibstring{number}addnbspace #1}
AtEveryCitekey{clearfield{title}}

renewbibmacro*{volume+number+eid}{%
  printfield{volume}%
  setunit{addcommaspace}%<---- was setunit*{adddot}%
  printfield{number}%
  setunit{addcommaspace}%
  printfield{eid}}
  
%This delete the title of the journal when is repeated

newbibmacro*{footcite:note}{%
  ifnameundef{labelname}
    {printfield{label}}
    {printnames{labelname}}%
  ifsingletitle
    {}
  setunit{addcommaspace}%
  printtext{%
    bibstring{seenote}addnbspace
    ref{cbx@csuse{cbx@f@thefield{entrykey}}}%
    iftoggle{cbx:pageref}
      {ifsamepage{thevalue{instcount}}
                  {csuse{cbx@f@thefield{entrykey}}}
         {}
         {addcommaspacebibstring{page}addnbspace
          pageref{cbx@csuse{cbx@f@thefield{entrykey}}}}}
      {}}}


newcommand{TODO}[1]{{textcolor{red}{[textbf{TODO:} #1]}}}
% titlespacingsection{0pt}{6pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
% titlespacingsubsection{0pt}{6pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
% titlespacingsubsubsection{0pt}{6pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}

letoldfootnotesizefootnotesize
renewcommand{footnotesize}{fontsize{8bp}{1em}selectfont}
renewcommand{cite}{autocite} % citations in footnotes
bibliography{Mendeley,Zotero}

headheight=14pt


makeatletter
renewcommandfootnotesize{%
   @setfontsizefootnotesize@ixpt{8}%
   abovedisplayskip 8p@ @plus2p@ @minus4p@
   abovedisplayshortskip z@ @plusp@
   belowdisplayshortskip 4p@ @plus2p@ @minus2p@
   def@listi{leftmarginleftmargini
               topsep 4p@ @plus2p@ @minus2p@
               parsep 2p@ @plusp@ @minusp@
               itemsep parsep}%
   belowdisplayskip abovedisplayskip
}
makeatother




%letfootnote=endnote

begin{document}

testcite{Zhu2020} and cite{Wolf2020} repeat cite{Zhu2020}

end{document}

And this is the result:

And this is the result:

enter image description here

What I would like is to have all the references of the document as endnotes but following the same design. In this case, I will avoid repetitions and hopefully win some space. Something like that:

enter image description here

Thanks in advance!!

One Answer

It is easily possible to redirect biblatex's footnote citations to endnotes with the option notetype=endonly.

The following MWE uses enotez to typeset paragraph-style/inline endnotes.

documentclass[a4paper,11pt]{article}

usepackage{enotez}
usepackage[inline]{enumitem}
DeclareInstance{enotez-list}{enumstar}{list}{list-type = {enumerate*}}
setenotez{list-style=enumstar}

usepackage[backend=bibtex, 
  style=verbose-inote,
  maxcitenames=1, giveninits=true, 
  doi=false, isbn=false, url=false, abbreviate=true,
  ibidpage=true,
  notetype=endonly]{biblatex}

renewbibmacro{in:}{}
DeclareAutoCiteCommand{footnote}[r]{smartcite}{smartcites}
DeclareFieldFormat[article]{volume}{bibstring{jourvol}addnbspace #1}
DeclareFieldFormat[article]{number}{bibstring{number}addnbspace #1}
AtEveryCitekey{clearfield{title}}

renewbibmacro*{volume+number+eid}{%
  printfield{volume}%
  setunit{addcommaspace}%<---- was setunit*{adddot}%
  printfield{number}%
  setunit{addcommaspace}%
  printfield{eid}}

makeatletter
renewbibmacro*{footcite:note}{%
  ifnameundef{labelname}
    {printfield{label}}
    {printnames{labelname}}%
  ifsingletitle
    {}
  setunit{addcommaspace}%
  printtext{%
    bibstring{seenote}addnbspace
    ref{cbx@csuse{cbx@f@thefield{entrykey}}}%
    iftoggle{cbx:pageref}
      {ifsamepage{thevalue{instcount}}
                  {csuse{cbx@f@thefield{entrykey}}}
         {}
         {addcommaspacebibstring{page}addnbspace
          pageref{cbx@csuse{cbx@f@thefield{entrykey}}}}}
      {}}}
makeatother

addbibresource{biblatex-examples.bib}

begin{document}
testautocite{sigfridsson} and autocite{worman} repeat autocite{geer}

printendnotes
end{document}

1. E. Sigfridsson et al. Journal of Computational Chemistry vol. 19, no. 4 (1998), pp. 377–395. 2. N. Worman. Style in Greek Literature. Austin: University of Texas Press, 2002. 3. I. de Geer. “The Orkney Earldom of the Twelfth Century. A Musicological Study”.
PhD thesis. Uppsala: Uppsala Universitet, 1985.


I have doubts that this helps you save significant space. After all you get the same behaviour for repeated citations in footnotes and endnotes: A subsequent citation will still issue a new footnote/endnote with its own contents.

You may get better results if you base your style on style=numeric, and create an inline bibliography (Inline bibliography avoiding the list format?).

documentclass[a4paper,11pt]{article}

usepackage[backend=bibtex, 
  style=numeric, sorting=none,
  maxnames=1, giveninits=true, 
  doi=false, isbn=false, url=false, abbreviate=true,
  autocite=superscript]{biblatex}

renewbibmacro{in:}{}
DeclareFieldFormat[article]{volume}{bibstring{jourvol}addnbspace #1}
DeclareFieldFormat[article]{number}{bibstring{number}addnbspace #1}
AtEveryBibitem{clearfield{title}}

renewbibmacro*{volume+number+eid}{%
  printfield{volume}%
  setunit{addcommaspace}%<---- was setunit*{adddot}%
  printfield{number}%
  setunit{addcommaspace}%
  printfield{eid}}

defbibenvironment{bibliography}
  {noindent}
  {unspaceendgraf}
  {}

renewbibmacro*{begentry}{%
  printtext[labelnumberwidth]{%
    printfield{labelprefix}%
    printfield{labelnumber}}%
  setunit{addspace}}

renewcommand*{finentrypunct}{addperiodspace}

renewcommand*{bibfont}{normalfontfootnotesize}

addbibresource{biblatex-examples.bib}

begin{document}
testautocite{sigfridsson} and autocite{worman} repeat autocite{geer}

testautocite{sigfridsson} and autocite{worman} repeat autocite{geer}

printbibliography
end{document}

[1] E. Sigfridsson and U. Ryde. “Comparison of methods for deriving atomic charges from the electrostatic potential and moments”. Journal of Computational Chemistry vol. 19, no. 4 (1998), pp. 377–395. [2] N. Worman. The Cast of Character. Style in Greek Literature. Austin: University of Texas Press, 2002. [3] I. de Geer. “Earl, Saint, Bishop, Skald – and Music. The Orkney Earldom of the Twelfth Century. A Musicological Study”. PhD thesis. Uppsala: Uppsala Universitet, 1985.

Correct answer by moewe on October 5, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP