BibTeX, biblatex and biberbiblatex | Text Citation Output

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
niteshs
Posts: 45
Joined: Wed Jun 06, 2012 9:57 pm

biblatex | Text Citation Output

Post by niteshs »

Hi,

I am getting "author1, author2 (key)" as the output of the \textcite command when using the biblatex package with the following options:

Code: Select all

\usepackage[
  backend=biber,
  bibstyle=thesis,
  sorting=none,
  firstinits=true,
  maxcitenames=2,
  maxbibnames=99
]{biblatex}
I am expecting the output to be "author1 and author2 (key)", which is what I used to get earlier. I don't know what has changed since then. Can someone help me get the output right?

Thanks

(I think I posted this earlier, but the post has inexplicably disappeared!)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

biblatex | Text Citation Output

Post by localghost »

niteshs wrote:[…] (I think I posted this earlier, but the post has inexplicably disappeared!)
You can simply search your posts to find the concerned topic. And if you posted earlier, it has for sure not "inexplicably disappeared".

If you expect answers to your question, you should add useful information and provide a proper minimal example (as always).


Thorsten
niteshs
Posts: 45
Joined: Wed Jun 06, 2012 9:57 pm

biblatex | Text Citation Output

Post by niteshs »

Here is an MWE (I'm afraid it doesn't really give any more information),

Code: Select all

\documentclass{article}

\usepackage[
backend=biber,
bibstyle=mystyle,
sorting=none,
firstinits=true,
maxcitenames=2,
maxbibnames=99
]{biblatex}
\addbibresource{biblio.bib}

\begin{document}
This paragraph shows that the output of the textcite command is not what it should
be. For example two author citations appear separated by a comma as shown by
\textcite{lamb_slow_1938}, instead of being separated by `and'. On the other hand
mulitple author citations appear quite right as indicated by \textcite{good_hydrogen_1966}.

\printbibliography
\end{document}
The output looks like this:
textcite.png
textcite.png (82.38 KiB) Viewed 6395 times
Edit: I just noticed that the .bgl file has some warnings so I have uploaded that, as well as the .bbl file, just in case.
Attachments
test.bbl
(4.25 KiB) Downloaded 365 times
test.blg
(113.24 KiB) Downloaded 228 times
niteshs
Posts: 45
Joined: Wed Jun 06, 2012 9:57 pm

Re: biblatex | Text Citation Output

Post by niteshs »

Is there anywhere else I might be able to find an answer to this problem? Maybe someone could point me to the right direction?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

biblatex | Text Citation Output

Post by localghost »

Your last code sample is still not complete because the bibliography database file (*.bib) is missing. So it's not surprising that you have got no answer.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

biblatex | Text Citation Output

Post by cgnieder »

Also the style mystyle is unavailable to us. I suspect it is in there where the “and” “disappears” since the code below has it:

Code: Select all

\documentclass{article}

\usepackage[
backend=biber,
% bibstyle=mystyle,
sorting=none,
firstinits=true,
maxcitenames=2,
maxbibnames=99
]{biblatex}
\addbibresource{biblatex-examples.bib}

\begin{document}

This paragraph shows that the output of the textcite command is not what it should
be. For example two author citations appear separated by a comma as shown by
\textcite{baez/article}, instead of being separated by `and'. On the other hand
mulitple author citations appear quite right as indicated by \textcite{companion}.

\printbibliography
\end{document}
Regards
site moderator & package author
niteshs
Posts: 45
Joined: Wed Jun 06, 2012 9:57 pm

biblatex | Text Citation Output

Post by niteshs »

Haha! I posted all the files except the ones that were actually relevant!

I had figured since the bibstyle= option is for the bibliogrpahy format only (as opposed to the style= option), it should have no effect on the citation format, but perhaps that is not the case? (Actually I just realized- I had tried to upload it but "The extension bbx is not allowed.")

Here is the .bib file but I doubt that is the problem since the .bib file format hasn't changed. My original custom .bbx on the other hand was lost, so it is possible the new one has a problem. I am still not convinced though that the bibstyle is affecting the citation output. Incidentally the bibstyle file is chem-biochem.bbx with only the following additional code (added at the end) as the modification:

Code: Select all

\AtEveryBibitem{%
  \clearfield{day}%
  \clearfield{month}%
  \clearfield{endday}%
  \clearfield{endmonth}%
  \clearfield{note}
}
Hopefully this leads to a solution!
Attachments
biblio.bib
(972 Bytes) Downloaded 272 times
niteshs
Posts: 45
Joined: Wed Jun 06, 2012 9:57 pm

Re: biblatex | Text Citation Output

Post by niteshs »

Problem identified (sort of).

It turns out the bibstyle IS affecting the citation style. Using a different bibstyle (numeric-comp) 'brought back the missing "and" '. In fact I now remember that my earlier custom .bbx was obtained my modifying the 'numeric' bibstyle.

I can now use a different modified bibstyle to fix the problem.
(I guess I should now mark this as solved?)
niteshs
Posts: 45
Joined: Wed Jun 06, 2012 9:57 pm

biblatex | Text Citation Output

Post by niteshs »

While the cause of specific issue of the citation style is identified, I would still appreciate some help:

I want to use the chem-biochem.bbx style for the bibliograhy (with the modification mentioned above), but with the text citation style "author1 and author2" instead of "author1, author2". Can someone help me do that?

I tried setting the options for biblatex as

Code: Select all

citestyle=numeric-comp,
bibstyle=chem-biochem
but that did not help. Maybe the bibstyle somehow overrides the citestyle?

Any suggestions?

Edit: It seems the chem-biochem.cbx style file is simply a lightly modified version of numeric-comp cite style (it calls \RequireCitationStyle{numeric-comp} with the only apparent difference being the parenthesis type and the cite key being 'emphasized'). Yet, when I use the option

Code: Select all

style=chem-biochem
I still get "author1, author2". So I don't understand where this difference in the citation style is coming from! More reason to suspect the bibstyle instead?
Post Reply