Download skb.
Transcript
\skbcvrefenum
This macro prints a list of references as an enumerated list, which helps to see how
many entries a list has and also makes it easier to read the list in the final CV.
It expects a list of citation references, and empty list is valid and and will result
in an empty reference list. The macro defines a new environment for the BibTeX
list using an enumerate environment, which was of course alreadt changed loading
the enumitem package. First, we calculate the length for \parindent by setting it
to \intscolumnwidth, addint \eparatorcolumnwidth and finally adding another
1pt to it. This will make the items of the enumeration list appear within the left
column of the CV. We then apply a few options to the enumerate environment:
leftmargin - set to the newly calculate \parindent.
labelsep - set to the spacer defined in moderncv \separatorcolumnwidth.
label - set to use arabic numbers without any trailing full stop.
noitemsep - no vertical separation between items, we want a small list.
topsep - finally add a top separator for the items of 1pt.
To reset \parindent, we set it back to 0pt once the enumerate environment is
closed.
With the new environment defined, the macro then opens a new refsgment (BibLaTeX) to group all references without impacting the overall reference list. It uses
\nocite to mark all references as being used without printing them, and then
\printbibliography for printing the list. The options here are:
heading - refers to the new heading we have defined earlier, called None.
segment - points to the current refsegment, so only references used here will
be part of the list.
maxnames - the maximum names shown per entry, we want to see as many
as possible.
minnames - the minimum names shown per entry, we want to see as many
as possible.
\newcommand{\skbcvrefenum}[1]{%
\defbibenvironment{bibliography}
783
{\setlength{\parindent}{\hintscolumnwidth}
784
\addtolength{\parindent}{\separatorcolumnwidth}
785
\addtolength{\parindent}{1pt}
786
\begin{enumerate}[leftmargin=\parindent,labelsep=\separatorcolumnwidth,label*=\arabic*,noit
787
}}
788
{\end{enumerate}%
789
\setlength{\parindent}{0pt}
790
}
791
{\item}
781
782
792
\begin{refsegment}
\nocite{#1}
\printbibliography[heading=None,segment=\therefsegment,maxnames=20,minnames=20]
\end{refsegment}
793
794
795
796
797
}
69