plk / biblatex Goto Github PK
View Code? Open in Web Editor NEWbiblatex is a sophisticated bibliography system for LaTeX users. It has considerably more features than traditional bibtex and supports UTF-8
biblatex is a sophisticated bibliography system for LaTeX users. It has considerably more features than traditional bibtex and supports UTF-8
The question biblatex-apa and Unicode characters on TeX.SX demonstrates that the command \MakeSentenceCase
doesn’t work for constructs such as {\char"00E5}
.
The problem was reported over at SE:
http://tex.stackexchange.com/questions/80389/problem-with-biblatex-and-footnotes
Looks like the problem is related to \finentry
and was introduced some time after 1.7. 1.7 uses:
\protected\def\blx@finentry@usedrv{%
\unspace
% \blx@initunit
}
The later versions uncomment \blx@initunit
and this gives the missing postnote delimiters in \fullcite
and friends. Was there any particular reason for this change?
It would be great, if you could add support for URN (see RFC1737 and RFC2141).
I found a solution on the web using eprint and eprinttype fields:
% use eprint for urn: example fields (bib-file)
% % eprint = {urn:nbn:de:bsz:100-opus-5191},
% % eprinttype = {urn},
% in your document preamble define
\DeclareFieldFormat{eprint:urn}{%
URN\addcolon\space
\ifhyperref
{\href{http://www.nbn-resolving.org/#1}{\nolinkurl{#1}}}
{\nolinkurl{#1}}}
(credit goes to Martin Weis: https://groups.google.com/forum/#!msg/de.comp.text.tex/D-EBL3OfIQE/yJW8gtLnEHMJ)
Consider the following MW:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Bli74,
author = {Blinder, Alan S.},
year = {1974},
title = {The economics of brushing teeth},
journaltitle = {Journal of Political Economy},
volume = {82},
number = {4},
pages = {887--891}}
@inbook{PsyG,
keywords = {simmel}, hyphenation = {german},
author = {Georg Simmel},
title = {Zur Psychologie des Geldes},
booktitle = {Aufsätze 1887 bis 1890. Über sociale Differenzierung. Die Probleme der Geschichtsphilosophie (1892)},
editor = {Heinz-Jürgen Dahme},
volume = {2},
maintitle = {Georg Simmel Gesamtausgabe},
maineditor = {Otthein Rammstedt},
address = {Frankfurt am Main},
publisher = {Suhrkamp},
year = {1999},
sortyear = {1889},
edition = {2},
origdate = {1889-05},
pages = {49-65},
shorthand = {PsyG}}
@collection{Ackerman.Strickland:1981,
Address = {Bloomington},
Author = {Ackerman, Forrest J. and Strickland, A. W.},
Title = {A Reference Guide to American Science Fiction Films},
Volume = {1},
Year = {1981}}
}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[style=authoryear]{biblatex}
\ExecuteBibliographyOptions{backend=biber}
\usepackage{csquotes}
\addbibresource{\jobname.bib}
\usepackage{hyperref}
\DeclareSortExclusion{collection}{author,editor,sortname,translator}
\DeclareSortExclusion{collection}{maintitle}
\DeclareNosort{
\nosort{type_title}{\regexp{\AA\s+}}}
\begin{document}
\cite{PsyG,Bli74,Ackerman.Strickland:1981}
\printbibliography
\end{document}
If there is only one \DeclareSortExclusion (\DeclareSortExclusion{collection}{author,editor,sortname,translator}), is correctly sorted under "R". As soon as I add the second \DeclareSortExclusion which shouldn't have any effect, the entry is sorted under "A".
While working on a style which could handle tv series and shows the necessity came up to determine whether multiple episodes of a certain show are cited. Since tv shows often don't have a creator in the traditional it's necessary to determine whether a title is unique. See the details here.
hello!
Is it possible to implement a title/year disambiguation similar to the extrayear or extratitle? It would be helpful when the labelname is missing. The extratitle disambiguates even when years are different.
How can I set a datamodel from within a style file? Simple
\ExecuteBibliographyOptions{datamodel=dm}
throws this error:
! Package keyval Error: datamodel undefined
At the same time, setting datamodel usepackage option works fine.
I'm using version 2.0 from texlive 2012. This is an MWE (I tried to simplify things a little):
\RequirePackage{filecontents}
\begin{filecontents}{dm.dbx}
\end{filecontents}
\begin{filecontents}{style.bbx}
\ExecuteBibliographyOptions{datamodel=dm} % this does not work
\end{filecontents}
\documentclass{article}
\usepackage[bibstyle=style,
%datamodel=dm, % this works
]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{knuth:ct}
\end{document}
Citing all of the entries in the documentation bib file generates undefined control sequence errors:
! Undefined control sequence.
<argument> ...c@refsection @entry@\blx@slist@name
...
! Undefined control sequence.
<argument> \blx@tempa
l.25 \begin{document}
It looks like this is associated with biber and entry sets. Here's an example.
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\begin{filecontents}{\jobname.bib}
@article{glashow,
author = {Glashow, Sheldon},
title = {Partial Symmetries of Weak Interactions},
journaltitle = {Nucl.~Phys.},
volume = {22},
date = {1961},
pages = {579--588}}
@article{weinberg,
author = {Weinberg, Steven},
title = {A Model of Leptons},
journaltitle = {Phys.~Rev.~Lett.},
volume = {19},
date = {1967},
pages = {1264--1266}}
@set{set,
entryset = {glashow,weinberg},
annotation = {A \texttt{set} with two members}}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
%\cite{glashow,weinberg}
\nocite{set}
\printbibliography
\end{document}
We have the preamble-only \DeclareSourcemap
and the biber.conf
file for the user to specify mapping rules. What should style authors use? There is \DeclareDefaultSourcemap
, but this seems more suited to handling different data formats.
There are a number of questions at TeX.SE that request an alphabetic style with author-year citation labels. For example:
http://tex.stackexchange.com/q/11827
Can these labels be specified with \DeclareLabelalphaTemplate
?
Maybe I did something wrong with building the latest version, but with biblatex 2.0, version from 2012/05/13 \ExecuteBibliographyOptions{backend=biber} gives me an error:
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.6 \ExecuteBibliographyOptions{backend=biber}
?
When I define 'backend=biber' as an option with \usepackage[…]{biblatex}, everything works fine.
Could you please tell me how I should use collation tailoring in biblatex/biber? I need to sort cyrillic letters before the others (this is called collation reordering, afaik). Playing with sortlocale option didn't help. Biber's --collate_options seems not to allow reorder (I tried biber --collate_options="reorder => 'Cyrl, others'").
This feature request has already been on the sourceforge tracker for a while. Since I'm not sure wether this tracker is actually still active, I repost it here.
In some fields it has become quite common to have articles prepublished online before they are officially published in the respective journal. I therefore suggest a new bibstring "prepublished" for the pubstate field.
I seem to be having issues with language mappings which might be a bug. But I'm not sure I understand them well enough to know if what I'm seeing is a bug. If it's not, please set me straight ASAP and close it.
The following MWE illustrates the problem. Please note that the mapping of English language to the French language localisation file is done simply for the purposes of illustration!
\documentclass{article}
\usepackage[english]{babel}% NO PROBLEM IF I REMOVE THIS
\usepackage[style=verbose,language=auto]{biblatex}% NO PROBLEM IF LANGUAGE=ENGLISH
\DeclareLanguageMapping{english}{french}
\addbibresource{biblatex-examples.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
Contrary to what one might expect, this seems to use the language definitions from english.lbx, rather than french.lbx.
If one (a) deletes babel (remembering that my system uses English as default) or (b) changes language to "english" in the Biblatex options, then I get the behaviour I expected (i.e. I get French language bibstrings and so forth).
Obviously, I didn't see this behaviour when doing anything as silly as mapping English to French! I was mapping English to a custom .lbx file; but I seem to be seeing the same behaviour if babel is being used and the language is not explicitly set to English: the custom language mapping is being ignored and english.lbx loaded. Is that as it should be?
Since the beginning of November, style=authoryear
or style=authoryear-comp
will result in citations that have a colon between author and year. Looks strange to me and the behaviour was different before November. Anyway, not sure if this is a bug...
Hi,
ist it possible to add support for KoMa-script pagestyles-mechnisim (scrplain, scrheadings) It's quite ugly to see, that the bibliography doesn't have the same pagestyles like the rest of the document.
A recent question on StackExchange has spotted an incompatibility between biblatex and the silence package (which I’m the maintainer of). The reason for this incompatibility is that \blx@warning
uses \blx@noline
for gobbling line numbers until the biblatex
package has finished loading.
As egreg demonstrates in his answer to the question it’s relatively easy to add corresponding compatibility code to the silence package. But clearly, I would prefer not to have to support \blx@warning
(and other package-specific feedback macros) explicitly.
Hence my question: Would it be possible to do without the \blx@noline
trick, e.g. by replacing
\protected\def\blx@warning#1{%
\begingroup
\blx@safe@actives
\PackageWarning{biblatex}{#1\blx@noline}%
\endgroup}
\protected\def\blx@warning@noline#1{%
\begingroup
\blx@safe@actives
\PackageWarningNoLine{biblatex}{#1}%
\endgroup}
with
\protected\def\blx@warning@noline#1{%
\begingroup
\blx@safe@actives
\PackageWarningNoLine{biblatex}{#1}%
\endgroup}
\let\blx@warning\blx@warning@noline
\AtEndOfPackage{
\protected\def\blx@warning#1{%
\begingroup
\blx@safe@actives
\PackageWarning{biblatex}{#1}%
\endgroup}}
and
\protected\def\blx@info#1{%
\begingroup
\blx@safe@actives
\PackageInfo{biblatex}{#1\blx@noline}%
\endgroup}
\def\blx@info@noline#1{%
\begingroup
\blx@safe@actives
\PackageInfo{biblatex}{#1\@gobble}%
\endgroup}
with
\protected\def\blx@info@noline#1{%
\begingroup
\blx@safe@actives
\PackageInfo{biblatex}{#1\@gobble}%
\endgroup}
\let\blx@info\blx@info@noline
\AtEndOfPackage{
\protected\def\blx@info#1{%
\begingroup
\blx@safe@actives
\PackageInfo{biblatex}{#1}%
\endgroup}}
?
In example 14 (references by section), replacing the first chapter contents with:
\chapter{Title of first chapter}
\begin{refsection}
\cite{set}
\end{refsection}
generates the error:
ERROR: Undefined control sequence.
--- TeX said ---
<argument> \blx@tempa
l.37 \begin{document}
The error only occurs when citing entry sets.
The following example can not be properly expressed by biblatex at the moment:
Cassirer, Ernst: Gesammelte Werke. Bd. 11.: Philosophie der symbolischen Formen. Teil 1: Die Sprache. Hrsg. von Birgit Recki.
Bearb. von Claus Rosenkranz. Hamburg 2001.
What we have here is a work (Philosophie der symbolischen Formen) which consists of three individual books, each of them with their own title. This work which was originally published as three-part book, is now available as part of a multi-volume work (Gesammelte Werke). Typically, this will be done the following way:
maintitle = {Gesammelte Werke},
title = {Philosophie der symbolischen Formen}
volume = {11}
part = {1}
Unfortunately, there's no clean way to give the title of the individual book ("Die Sprache). I therefore suggest to add a parttitle field.
Hello,
I would like to index more than one fied, to have index entry like author!title!pages
. I did'tn see how can I do.
For yet, I index these 3 fields separtly and concate them bt python script.
sortcites
orders citations according to the scheme specified by the sorting
package option. If this scheme actually isn't used in a bibliography, I get an undefined control sequence error:
ERROR: Undefined control sequence.
--- TeX said ---
<argument> \blx@tempb
Here's an example.
\documentclass{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear,sortcites,sorting=nyt]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{companion,knuth:ct,markey}
%\printbibliography
\printbibliography[sorting=ydnt]
\end{document}
Maybe I did something wrong with building the latest version, but with biblatex 2.0, version from 2012/05/13 \ExecuteBibliographyOptions{backend=biber} gives me an error:
! Package keyval Error: backend undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.6 \ExecuteBibliographyOptions{backend=biber}
?
When I define 'backend=biber' as an option with \usepackage[…]{biblatex}, everything works fine.
I just realized that you can only use one filter at a time defined with \defbibcheck. Is there any reason not to allow something like \printbibliography[check=filter1,check=filter2]?
Hi. I have just installed biblatex 2.3 (biblatex-2.3.tds.tgz) under ~/texmf/.
The document below compiles by running latex and biber on foo.tex. However, I get an ! Extra \fi
error whenever I run latex on it. How can I get rid of it? Thank you!
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./foo.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, french, basque, ibycus, monogreek, greek, ancientgreek, portuguese,
loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/home/rostov/texmf/tex/latex/biblatex/biblatex.sty
(/home/rostov/texmf/tex/latex/biblatex/biblatex2.sty
(/home/rostov/texmf/tex/latex/etoolbox/etoolbox.sty
(/usr/share/texmf-texlive/tex/latex/etex-pkg/etex.sty))
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/kvsetkeys.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/etexcmds.sty)))
(/home/rostov/texmf/tex/latex/logreq/logreq.sty
(/home/rostov/texmf/tex/latex/logreq/logreq.def))
(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
(/home/rostov/texmf/tex/latex/biblatex/blx-dm.def)
! Extra \fi.
<argument> ...expandafter ,\CurrentOption }}}}\fi
l.4790 \ProcessLocalKeyvalOptions{blx@opt@eldt}
?
Here are the relevant examples:
foo.tex:
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\bibliography{ref.bib}
\begin{document}
First sentence\autocite[1]{paper}.
\end{document}
ref.bib:
@Article{paper, author={Name}, title={Title}, journaltitle={Journal}, volume={1}, issue={1}, pages={1--2}, year={2000}}
Traditionally in bibtex databases the &-sign must be written in TeX syntax "&". My suggestion: With biblatex/biber it should be possible to write "&" instead of "&" and of course the old version should also be valid. I see no conflicts with tabulars etc. The advantage would be easier typing and easier converting from/to other bibliographical sources.
...Rolf
I’ve just noticed that the csf files all have DOS-style end-of-line markers. Is this on purpose?
I wanted test issue for #31, with the master branch (was I wrong ?), but I obtain at the loading of biblatex
g = inserted for \ifnum.
D
l.86
?
Hello!
The folowing code:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map[overwrite]{
\step[fieldset=options, fieldvalue={ZZZ}]
}
}}
\begin{document}
\end{document}
leads to the following compilation error:
Entity: line 148: parser error : expected '>'
</bcf:map map_overwrite="1">
^
INFO - This is Biber 1.0 (beta)
INFO - Logfile is 'sourcemap.blg'
INFO - Reading 'sourcemap.bcf'
I used the dev branch from the repository.
Somehow the \therefsegment
command is broken in the newest biblatex.
When I compile 12-references-by-segment.tex
from the biblatex examples, the references back to the segments don't work. I get a lot of LaTeX Warning: Reference refsegment:2 on page 4 undefined on input line 39
no matter how often I compile.
I wonder if one of the real TeX experts can look at this? Given:
\documentclass{article}
\usepackage[backend=biber,style=numeric-comp,defernumbers]{biblatex}
\begin{document}
\newrefsection[biblatex-examples.bib]
\cite{bertram,companion}
\printbibliography
\end{document}
and the sequence latex,biber,latex
the .aux file contains incorrectly:
\abx@aux@number{2}{bertram}{1}{3}
\abx@aux@number{3}{companion}{1}{4}
instead of
\abx@aux@number{2}{bertram}{1}{1}
\abx@aux@number{3}{companion}{1}{2}
Running latex once more fixes it. This is odd. It seems that in biblatex2.sty,
blx@labelnumber@\the\c@refsection
is being incremented twice for some reason and then this is written to the .aux, causing the the second latex after biber to pick up a number one higher than it should and the label is incorrect in the output. Running latex once more and it's fine thereafter. I suspect it's something fairly simple but I can't see it ...
Hi,
the default stand sorting scheme nty dispatch all anonymous entry inside bibliography.
I made my owm sorting scheme, http://geekographie.maieul.net/Tri-des-oeuvres-anonymes, but maybe a similar schem could be add to the standard files ?
At the moment relatedstrings are printed in the bibentry language, which varies in a multilanguage bibliography. Is it possible to change this? I'd rather expect them to be in the main language of the document. I tried to adjust the language in the 'related' macro, but with no success.
Considering this recent post on TeX.SE I am wondering whether we can relax the default dataonly
option setting for related entries. In particular if the related entry could take the setting skipbib
, its labelname
could be considered in name disambiguation so that the following setup would work.
\begin{filecontents*}{lit.bib}
@BOOK{werner,
author = {Werner, Dennis},
title = {Title of the Book}}
@INCOLLECTION{werner2,
title = {Title of the Article},
Author = {Tester, Hans},
related = {werner4}}
@BOOK{werner3,
author = {Werner, Dennis},
editor = {Schneider, Uwe AND Werner, Hans},
title = {Title of the Article}}
@COLLECTION{werner4,
editor = {Schneider, Uwe AND Werner, Hans},
title = {Title of the Book}}
\end{filecontents*}
\documentclass{article}
\usepackage[backend=biber,style=authortitle,
uniquename=allfull]{biblatex}
\bibliography{lit}
\newbibmacro*{in:labelname}[1]{%
\entrydata{#1}{\printnames{labelname}}}
\renewbibmacro*{cite}{%
\iffieldundef{shorthand}
{\ifnameundef{labelname}{}{%
\printnames{labelname}\setunit{\nametitledelim}}%
\usebibmacro{cite:title}%
\ifentrytype{incollection}
{\setunit{\addcomma\space}%
\forcsvfield{\usebibmacro{in:labelname}}{related}}{}}
{\usebibmacro{cite:shorthand}}}
\begin{document}
\null\vfill
Filler.\footcite{werner} Filler.\footcite{werner2}
\printbibliography
\end{document}
This is another request concerning the missing labelname.
\ifsingletitle seems to not work in this case. Could it be made working?
Can you add 'author-pages' citation style to biblatex? It should be able to automatically handle multiple citation and generate correct hyperref links.
Examples:
.bib
file:
@Book{author137,
author="Author",
pages="137",
}
@Book{author274,
author="Author",
pages="274",
}
\usepackage[style=authorpages][biblatex]
...
This is a sentence. \cite{author137}
Produces:
This is a sentence. (Author, p137)
\usepackage[style=authorpages][biblatex]
...
This is a sentence. There are two sentences. \cite{author137, author274}
Produces:
This is a sentence. There are two sentences. (Author, p137, p274)
Regards.
The subbibliography headings get a number although they shouldn't when typeset with the twoside option in the KOMA script classes . See here for details and solution.
Just came across this question:
http://tex.stackexchange.com/q/55256
It is an interesting one. Could a variant of \citeorder
be created? Say \citeorder*
indexes entries by the order of citation command; entries first cited in the same command are assigned the same index. Then we could use sortcites=true
and sorting=cy
with
\DeclareSortingScheme{cy}{\sort{\citeorder*\field{year}}}
Consider the following MWE:
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Bli74,
author = {Blinder, Alan S.},
year = {1974},
title = {The economics of brushing teeth},
journaltitle = {Journal of Political Economy},
volume = {82},
number = {4},
pages = {887--891}}
@inbook{PsyG,
keywords = {simmel}, hyphenation = {german},
author = {Georg Simmel},
title = {Zur Psychologie des Geldes},
booktitle = {Aufsätze 1887 bis 1890. Über sociale Differenzierung. Die Probleme der Geschichtsphilosophie (1892)},
editor = {Heinz-Jürgen Dahme},
volume = {2},
maintitle = {Georg Simmel Gesamtausgabe},
maineditor = {Otthein Rammstedt},
address = {Frankfurt am Main},
publisher = {Suhrkamp},
year = {1999},
sortyear = {1889},
edition = {2},
origdate = {1889-05},
pages = {49-65},
shorthand = {PsyG}}
@collection{Ackerman.Strickland:1981,
Address = {Bloomington},
Author = {Ackerman, Forrest J. and Strickland, A. W.},
Title = {A Reference Guide to American Science Fiction Films},
Volume = {1},
Year = {1981}}
}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[style=authoryear]{biblatex}
\ExecuteBibliographyOptions{backend=biber}
\usepackage{csquotes}
\addbibresource{\jobname.bib}
\usepackage{hyperref}
\DeclareSortExclusion{collection}{author,editor,sortname,translator}
\DeclareSortExclusion{collection}{maintitle}
\DeclareNosort{
\nosort{type_title}{\regexp{\AA\s+}}}
\begin{document}
\cite{PsyG,Bli74,Ackerman.Strickland:1981}
\printbibliography
\end{document}
If there is only one \DeclareSortExclusion (\DeclareSortExclusion{collection}{author,editor,sortname,translator}), is correctly sorted under "R". As soon as I add the second \DeclareSortExclusion which shouldn't have any effect, the entry is sorted under "A".
When I replace \DeclareSourcemap in my style with \DeclareStyleSourcemap it stops working. Biblatex is 2.4. Below is a sort of MWE I tried to compose. It works with Sourcemap, but not with StyleSourcemap.
\RequirePackage{filecontents}
\begin{filecontents}{example.bbx}
\RequireBibliographyStyle{numeric}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map[overwrite]{
\step[fieldset=options, fieldvalue={useauthor=false}]
}
}
}
\end{filecontents}
\begin{filecontents}{\jobname.bib}
@BOOK{book,
author = {Author},
title = {Title},
}
\end{filecontents}
%\listfiles
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[bibstyle=example]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
This cam to me via biblatex-chem, but it is a core bug somewhere:
\listfiles{}
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{bibexample.bib}
@Set{ aldol-borodin,
entryset = {Borodin1864,Borodin1873},
}
@article {Borodin1864,
author = {Borodin, A.},
title = {Ueber die Einwirkung des Natriums auf Valeraldehyd},
journaltitle = {J. Prakt. Chem.},
volume = 93,
number = 1,
url = {http://dx.doi.org/10.1002/prac.18640930168},
doi = {10.1002/prac.18640930168},
pages = {413--425},
year = 1864,
}
@article {Borodin1873,
author = {Borodin, A.},
title = {Ueber einen neuen Abkoemmling des Valerals},
journaltitle = {Ber. Dtsch. Chem. Ges.},
volume = 6,
number = 2,
url = {http://dx.doi.org/10.1002/cber.18730060232},
doi = {10.1002/cber.18730060232},
pages = {982--985},
year = 1873,
}
@article {Kane1838a,
author = {Kane, Robert},
title = {Ueber den Essiggeist und einige davon abgeleitete
Verbindungen},
journaltitle = {J. Prakt. Chem.},
volume = 15,
number = 1,
url = {http://dx.doi.org/10.1002/prac.18380150112},
doi = {10.1002/prac.18380150112},
pages = {129--155},
year = 1838,
}
\end{filecontents}
\usepackage[backend=biber,
citestyle=numeric-comp,
subentry]{biblatex}
\bibliography{bibexample}
\begin{document}
Who discovered the aldol reaction? Borodin\autocite{aldol-borodin} or even Kane\autocite{Kane1838a}?
Borodin's first publication was published 26 years after Kane's
work\autocite{Borodin1864,Kane1838a}.
\printbibliography
\end{document}
Compare the last citation when using the numeric
style.
I wrote a new test script which runs the installed biblatex+biber on all of the doc examples files and looks for errors in the logs. Here is the output for the ones with problems (4 example files have errors/warnings). We should look into these:
==============================
Test file: 17-numeric-prefixed-2.tex
PDFLaTeX errors/warnings
------------------------
! Package keyval Error: No value specified for resetnumbers.
! Package keyval Error: No value specified for resetnumbers.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
Biber errors/warnings
---------------------
==============================
==============================
Test file: 18-numeric-hybrid.tex
PDFLaTeX errors/warnings
------------------------
! Package keyval Error: No value specified for omitnumbers.
Package biblatex Warning: Please rerun LaTeX.
! Package keyval Error: No value specified for omitnumbers.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
Biber errors/warnings
---------------------
==============================
==============================
Test file: 21-indexing-advanced.tex
PDFLaTeX errors/warnings
------------------------
LaTeX Warning: Command \markboth has changed.
LaTeX Warning: Command \markright has changed.
Biber errors/warnings
---------------------
==============================
==============================
Test file: 82-style-debug.tex
PDFLaTeX errors/warnings
------------------------
! Undefined control sequence.
\blx@bbx@debug ...][-\thelisttotal ]}\abx@donames
\def \do {\printlist [debu...
l.33
--
! Undefined control sequence.
\blx@bbx@debug ...][-\thelisttotal ]}\abx@dolists
\def \do {\printfield [deb...
l.33
--
! Undefined control sequence.
\blx@bbx@debug ...rintfield [debug]}\abx@dofields
\do {options}\do {execute}...
l.33
Biber errors/warnings
---------------------
==============================
The text in the pink frame of CTAN is speaking about bibtex and biber explained after. I think it will be nice to speak of biber first, because it's now the default background.
TeXLive 11 has just been frozen forever and work on TeXLive 12 has begun. It seems like a good idea to have a release version of biblatex 2.0 and biber 1.0 to have it included in the TL12 version which burned put on DVD.
(I've mentioned this via email before, but figured the issue should get documented here.)
This error message occurs because installing with TeX Live no longer gives you an additional copy of the bib file here:
texmf/bibtex/bib/biblatex/biblatex-examples.bib
The TDS on SF looks fine, though. Any idea what could be going wrong in the upload to CTAN?
Update: I updated to 2.2 via tlmgr. I get two copies of biblatex-examples.bib here:
but 2 should be texmf/bibtex/bib/biblatex. The TDS in the upload looks OK.
This might not be the correct place but in the 2.1 releases biblatex.sty, the VERSION and DATE have NOT been replaced by the build script. This throws errors when compiling documents.
Setting mincitenames
here doesn't give the correct value:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[maxbibnames=6,minbibnames=6,maxcitenames=2,mincitenames=2]{biblatex}
\AtEveryCite{(\theminnames, \themaxnames)}
\AtBeginBibliography{(\theminnames, \themaxnames)}
\addbibresource{biblatex-examples.bib}
\begin{document}
\textcite{aksin}
\printbibliography
\end{document}
This was originally reported at SF (ID 3574212).
I’d like to propose some small improvements to the build script (dev):
--- a/build/build.sh
+++ b/build/build.sh
@@ -18,6 +18,7 @@
declare VERSION=$1
declare DATE=`date '+%Y/%m/%d'`
+[ -e build/tds ] || mkdir build/tds
\rm -rf build/tds/*
\rm -f build/biblatex.tgz
cp -r bibtex build/tds/
@@ -30,7 +31,7 @@
perl -pi -e "s|\\%v.+|\\%v$VERSION|;" build/tds/tex/latex/biblatex/*.def
# Can't do in-place on windows (cygwin)
-find build/tds -name \*.bak | xargs rm
+find build/tds -name \*.bak | xargs \rm -f
find build/tds -name auto | xargs \rm -rf
if [ "$2" = "norel" ]
The first change ensures that the tds
subdirectory exists before the first copy operation takes place. The second change is for the sake of consistency.
It seems that padding does not work for the field entrykey
. If I run biber 1.2 on the following, the entries are sorted lexicographically in the references (i.e., Paper B appears before Paper A). (It works correctly when sorting by year
.)
\documentclass{article}
\begin{filecontents}{\jobname.bib}
@misc{2,
author = {A. Author},
title = {Paper A},
year = {2012}
}
@misc{10,
author = {B. Author},
title = {Paper B},
year = {2012}
}
\end{filecontents}
\usepackage[style=alphabetic,sorting=key]{biblatex}
\DeclareSortingScheme{key}{
\sort{
\field[padside=left,padwidth=3,padchar=0]{entrykey}
}
}
\DeclareFieldFormat{labelalpha}{\thefield{entrykey}}
\DeclareFieldFormat{extraalpha}{}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
Consider the following minimal example:
\documentclass{article}
\usepackage{filecontents}
\usepackage{biblatex}
\begin{filecontents*}{test.bib}
@XData{JLS,
journaltitle = "Journal of Life Stories"
}
@Article{Mustermann2012,
author = "Mustermann, Max",
title = "My Life",
year = "2012",
volume = 29,
xdata = "JLS"
}
\end{filecontents*}
\addbibresource{test.bib}
\DeclareSourcemap{
\maps[datatype=bibtex, overwrite=false]{
\map{
\step[fieldset=volume, fieldvalue=30]
}
}
}
\begin{document}
\nocite{Mustermann2012}
\printbibliography
\end{document}
Despite overwrite=false
in the source mapping, the volume number is overwritten. Surprisingly, this seems to be related to the xdata
field. If it is removed or set to an empty value everything works as expected.
It seems that as of biblatex 2.x and biber 1.x, the sorting
option is now supported on the \printbibliography
command, which should allow one to break a bibliography into fragments with independent sorting orders. However, when using numbered references, there seems to be a bug which causes numbers to be assigned in the wrong order (even when using the defernumbers
option). At TeX.SE I've posted a more detailed explanation and a minimal example.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.