-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For citepages=separate, print "here" followed by page number without parentheses #131
Comments
Yeah, I changed to this for version 2. I'll take a look for how it could be fixed in this version. |
@jjmccollum, can you give this kind of thing a go? \documentclass{article}
\begin{filecontents}[overwrite]{\jobname.bib}
@inbook{Geurts2017,
author = {Geurts, Bart},
title = {Presupposition and Givenness},
booktitle = {The Oxford Handbook of Pragmatics},
editor = {Huang, Yan},
location = {Oxford},
publisher = {Oxford University Press},
date = {2017},
pages = {180--198}
}
\end{filecontents}
\usepackage[style=sbl,citepages=separate]{biblatex}
\addbibresource{\jobname.bib}
\DefineBibliographyStrings{english}{thiscite = {here}}
\renewbibmacro*{pages}{%
\iffieldundef{pages}
{\ifbool{bbx@inset}
{}
{\printfield{postnote}%
\global\booltrue{suppresspostnote}}}
{\printfield{pages}%
\ifboolexpr{
test {\iffieldundef{postnote}}
or
bool {bbx@inset}
}
{}
{\newunit%
\iffieldpages{postnote}
{\bibstring{thiscite}
\setunit{\addspace}}
{}%
\printfield{postnote}}}}
\begin{document}
\null\vfill
Filler text \autocite[181]{Geurts2017}.
\end{document} |
That worked perfectly! You should be fine to close the issue. Thanks again, and I'm excited to hear that there's a version 2 in the works! |
Great. I'll leave open and fix in this version (just not make default until version 2) |
When I get back to it! I just spent a bucket load of time on https://github.com/dcpurton/scripture |
The "Citing Page Numbers for Chapters and Articles" entry of the SBL Handbook of Style: Explanations, Clarifications, and Expansions webpage (https://sblhs2.com/2018/02/08/citing-page-numbers-for-chapters-and-articles/), offers two points on when and how to cite specific page numbers (i.e., in a postnote) in a first citation of an article or book section:
My concern in this issue is point 2. Using the example from the webpage, suppose I have the following bibliographic entry:
And suppose that I cite this entry for the first time with a specific page number in the postnote via
\autocite[181]{Geurts2017}
. The webpage suggests that the output should look as follows:I am aware that
biblatex-sbl
accommodates the citation of the postnote with thecitepages=separate
option, but I would like to change thethiscite
string tohere
, remove the parentheses around the postnote, and instead place a comma and space before the postnote. Based on the discussion at https://tex.stackexchange.com/questions/102711/complex-formatting-of-page-numbers-postnote-in-biblatex-citations, I can at least change "esp." to "here" with the following line:\DefineBibliographyStrings{english}{thiscite = {here}}
But I haven't yet managed to replace the parentheses around the postnote with a preceding comma and space, and the advice from the TeX Stack Exchange thread did not seem to work. I'm not necessarily asking for a change to the
biblatex-sbl
code, but I would love to know how I might patch things locally to get the desired behavior.The text was updated successfully, but these errors were encountered: