This is a follow-up question to a previous question I asked about "How to tweak volcite in biblatex-chicago to cite volume and page using Arabic numerals separated by a colon".
I would like to know if there is any way (when using a colon to separate volume and page references, but only when both a volume and a page are given) to further instruct biblatex-chicago
to omit the comma between citation and volume/page number when both of the following conditions apply:
- a
shorthand
field is being used (i.e., the bib entry has a non-emptyshorthand
field ANDbiblatex-chicago
has been set up to use shorthands AND the conditions are such that this particular citation will in fact be using that shorthand) - both a volume and a page are indicated in the cite command (e.g.,
\volcite{5}[102]{CCAG:astrology}
)
MWE:
\documentclass{article}
\usepackage[notes]{biblatex-chicago}
\begin{filecontents*}{\jobname.bib}
@book{CCAG:astrology,
Address = {Brussels},
Date = {1898/1953},
Editor = {Cumont, Franz},
Title = {Catalogus codicum astrologorum graecorum},
Shorthand = {\emph{CCAG}}}
\end{filecontents*}
\addbibresource{\jobname.bib}
% VOLCITE USING COLON (solution by David Purton)
\renewcommand*{\volcitedelim}{\addcolon}
\renewrobustcmd*{\mkvolcitenote}[2]{%
\ifblank{#2}
{\printtext[volcitevolume]{#1}}
{\printtext{#1}\volcitedelim\printtext{#2}}}
\begin{document}
\volcite{5}[102]{CCAG:astrology}.\mancite
\volcite{5}[102]{CCAG:astrology}.
\end{document}
I would like the output of the second paragraph to be
CCAG 5:102.
instead of
CCAG, 5:102.
but would like everything else to remain the same.
\volcites
). But if an answer supporting just\volcite
is acceptable, I think I can help.shorthand
will be printed based onbiblatex-chicago
's options. Hooking that code into\volcite
was straight forward. But hooking it into each cite in\volcites
took me a while to figure out. I feel like there should have been a better way and I've pinged moewe to take a look as well.