Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use BibLaTeX with two different bibliography styles, one with author-year style (for publications) and the other one with simple numeric style for online references, but pdfLaTeX never really settles down. The issue is that because of the defernumbers/omitnumbers options I have to run pdflatex/biber/pdflatex/pdflatex to get the numbers right for the numeric ones (basically the references which are in the authoryear style are first not ignored in the numbering, so you need to run pdflatex twice to let BibLaTeX recompute the correct ones), but this last pdflatex run is going to change the width of the text size of the references, and thus might change the page breaks and move other references to other pages, thus requiring a rerun of pdflatex. Which would be perfectly fine if BibLaTeX (using version 2.4 + biber 1.4, but I think I have the same issue with 2.5/1.5 on another computer) hadn't a cycling behavior : one more run of pdfLaTeX changes the numbers back to the wrong ones, and you have to rerun one more time to get the right numbers... which changes the page breaks again, and you're stuck. The following almost-MWE (I had to include the alternative environment & citation command for @online entries to demonstrate the issue, not sure how to shrink it down) exhibits the cycling behavior of the defernumbers/omitnumbers options, which is (I think) the root cause of my issue :

\documentclass{article}

\usepackage[style=authoryear,backend=biber,labelnumber,defernumbers]{biblatex}

\DeclareCiteCommand{\citeonline}[\mkbibbrackets]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \printtext[bibhyperref]{%
     \printfield{prefixnumber}%
     \printfield{labelnumber}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\defbibenvironment{online}
  {\list
     {\printtext[labelnumberwidth]{%
  \iffieldundef{shorthand}
    {\printfield{prefixnumber}%
     \printfield{labelnumber}}
    {\printfield{shorthand}}}}
     {\setlength{\labelwidth}{\labelnumberwidth}%
      \setlength{\leftmargin}{\labelwidth}%
      \setlength{\labelsep}{\biblabelsep}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{\hss##1}}
  {\endlist}
  {\item}

\begin{filecontents*}{test.bib}
@article{TehAuthor2013,
  author = "TehAuthor",
  year = 2013,
  journal = "Random Thoughts about science",
  title = "Blablabla",
}
@online{TSE2011,
  author = "TSE",
  year = 2011,
  url = "http://tex.stackexchange.com/blabla",
}
\end{filecontents*}
\bibliography{test.bib}

\title{}
\begin{document}

\parencite{TehAuthor2013} \\
\parencite{TSE2011}

\printbibliography[heading=subbibliography,title={In print},nottype=online,omitnumbers]
\printbibliography[heading=subbibliography,title={Online},sorting=none,type=online,env=online]

\end{document}

Is this a bug worth reporting, or am I doing something very wrong ? (I know the whole alternative environment/subbibliography thing is not very beautiful, but it seems to do the work and I haven't found another way to do it)

share|improve this question
3  
No, you aren't doing anything wrong; your style is similar to one of the examples from the documentation with multiple sorting schemes thrown in. You can report the bug here: github.com/plk/biblatex/issues. – Audrey Jan 18 at 23:14
In case the authoryear is used for citation, a workaround would be to use a counter different from labelnumber in the definition of the label in the online list. – Guido Jan 19 at 10:27
I'm going to need some help in getting a minimal example which displays this behaviour. We have already established on github that it's not about omitnumbers per se, it's the interaction with page breaks which is relevant. The MWE above in fact behaves correctly, always requiring two latex runs to finalise the numbers due to defernumbers and use of the .aux file. – PLK Jan 21 at 14:44

1 Answer

For reference, this is fixed in biblatex 2.6 beta. See https://github.com/plk/biblatex/issues/70

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/94425/biblatex-not-settling-down-when-using-multiple-styles/97260
tex.stackexchange.com
crawl=CC-MAIN-2013-20
46873
application/http; msgtype=response
sha1:JO4MAOX4TUQ5AIIILAMBGDP6BHQMVMQA
<urn:uuid:c3728ca4-7503-4b23-9184-94851ed44e8d>
2013-06-18T03:40:12Z
198.252.206.16
sha1:POSSBA26EDXQL4FXPQNSLR6VDQNNGPJT
<urn:uuid:fde760a6-0597-4355-bfe9-bc8624c0fc3e>
http://tex.stackexchange.com/questions/94425/biblatex-not-settling-down-when-using-multiple-styles/97260
response
<urn:uuid:6ba6619a-6db4-43f1-8956-63836471b3bf>
robots: classic
hostname: ip-10-60-113-184.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2013-20
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for Spring 2013
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf