TeX - LaTeX Asked on February 2, 2021
In the windycity style of biblatex, you don’t get page numbers in the first citation of journal articles if there is a postnote, or of chapters in collections at all. How can I make sure that the page numbers always show in the full citation of articles and chapters?
The MWE:
documentclass{article}
usepackage[style=windycity, sorting=nyt]{biblatex}
bibliography{biblatex-examples}
begin{document}
cite{shore}
cite[2]{glashow}
cite{westfahl:space}
end{document}
now produces:
Bradd Shore, “Twice-Born, Once Conceived: Meaning Construction and
Cultural Cognition,” American Anthropologist, new ser., 93, no. 1
(March 1991): 9–27.Sheldon Glashow, “Partial Symmetries of Weak
Interactions,” Nucl. Phys. 22 (1961): 2.Gary Westfahl, “The True
Frontier: Confronting and Avoiding the Realities of Space in American
Science Fiction Films,” in, in Space and BeyondSpace and Beyond: The
Frontier Theme in Science Fiction, ed. Gary Westfahl (Westport, Conn.
Greenwood, 2000).
but I want it to produce:
Bradd Shore, “Twice-Born, Once Conceived: Meaning Construction and
Cultural Cognition,” American Anthropologist, new ser., 93, no. 1
(March 1991): 9–27.Sheldon Glashow, “Partial Symmetries of Weak Interactions,” Nucl.
Phys. 22 (1961): 579-588, 2.Gary Westfahl, “The True Frontier:
Confronting and Avoiding the Realities of Space in American Science
Fiction Films,” in, in Space and BeyondSpace and Beyond: The Frontier
Theme in Science Fiction, ed. Gary Westfahl, 55-65 (Westport, Conn.
Greenwood, 2000).
(the incollection citation is a bit wonky because windycity uses different fields than standard biblatex styles but I wanted to use biblatex-examples as bib file for easy of use)
You'll have to chase the pages
and postnote
fields through the bibmacros and bibliography drivers in windycity.cbx
and windycity.bbx
.
documentclass{article}
usepackage[style=windycity, sorting=nyt]{biblatex}
DeclareBibliographyDriver{cite:article}{%
usebibmacro{author+title+etc}%
usebibmacro{articles}%
usebibmacro{colon+pages+etc}}%
renewbibmacro*{cite:pages}{}
renewbibmacro*{pages}{%
iffieldundef{pages}
{}
{setunit{addcommaspace}%
printfield{pages}%
clearfield{pages}%
togglefalse{edshift}}}
renewbibmacro*{postnote}{%
iffieldundef{postnote}
{}
{setunit{postnotedelim}%
printtext[bibhyperref]{printfield{postnote}}}}
addbibresource{biblatex-examples.bib}
begin{document}
cite{shore}
cite[2]{glashow}
cite{westfahl:space}
printbibliography
end{document}
Answered by moewe on February 2, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP