BibTeX, biblatex and biberMultiple "forthcoming" or "in press" citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
arwintcher
Posts: 29
Joined: Thu Feb 19, 2009 3:23 pm

Multiple "forthcoming" or "in press" citations

Post by arwintcher »

I'm having a problem with "forthcoming" references that I haven't been able to solve. I'm using Memoir + natbib, with an author-date citation style and a custom .bst file I made using "makebst" years ago. I use the natbib variations on the \cite{} command (like \citep{} and \citeyear{} etc.) to cite the references in the text.

I am citing several articles by the same author which are in a "forthcoming" status. When I cite them, they are printed out as "Author, forthcomingb", or if they are together, as "Author, forthcominga,b".

I tried a fix I found at http://www.44342.com/tex-f809-t16484-p1.htm, but it just has the effect of adding parentheses around the entry in the References section.

All I want is for there to be a space after "forthcoming". I tried adding extra brackets in my .bib file, so that it read {{forthcoming}}, but this also had no effect.

Does anyone have an idea for how I can fix this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
arwintcher
Posts: 29
Joined: Thu Feb 19, 2009 3:23 pm

Multiple "forthcoming" or "in press" citations

Post by arwintcher »

Another day, another google search, and a few dozen runs of makebst and various bits of cobbling and I think I have something that works well enough for me to call it good.

I re-ran makebst and chose the option to italicize the "a" and "b". Then I used this hack on my new bst file:

Code: Select all

Start with a .bst file created by custom-bib which does not
truncate years. Open this file in a text editor. Locate the
following function:
FUNCTION {reverse.pass}
{ next.extra "b" =
{ "a" 'extra.label := }
'skip$
if$
extra.label 'next.extra :=
extra.label
duplicate$ empty$
'skip$
{ "{\natexlab{" swap$ * "}}" * }
if$
'extra.label :=
label extra.label * 'label :=
}
Now replace the line { "{\natexlab{" swap$ * "}}" * } with the
following four lines:
{ year field.or.null #-1 #1 substring$ chr.to.int$ #65 <
{ "{\natexlab{" swap$ * "}}" * }
{ "{(\natexlab{" swap$ * "})}" * }
if$ }
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
taken from http://osdir.com/ml/tex.linguistics/200 ... 00021.html. Except instead of { "{(\natexlab{" swap$ * "})}" * } I made mine read { "{\natexlab{" swap$ * "}~}" * }. It's not exactly right but it is close enough.
Post Reply