Tag Info

New answers tagged

1

The new Bibulous project provides an alternative solution for what the OP asks for. Although Bibulous can check for the presence of a field that acts as a flag (in the BibLatex solution BibLatex solution provided by @moewe, using the entrysubtype field), a cleaner solution for Bibulous is to simply define a new entrytype for newspaper articles that ...


3

I think it can be done, without undue difficulty. Here's a sort of proof of concept: \newbibmacro*{cite:seen:related}{% {\xifinlistcs{\thefield{crossref}}{blx@bsee@\the\c@refsection} {} {\listcsxadd{blx@bsee@\the\c@refsection}{\thefield{crossref}}}}} \newcommand{\ifrelatedunseen}[2]{% \xifinlistcs{\thefield{crossref}}{blx@bsee@\the\c@refsection} ...


1

One solution is to redefine the macro cite:labelyear+extrayear to always wrap the labelyear (and extrayear, if applicable) in parentheses. \renewbibmacro*{cite:labelyear+extrayear}{% \iffieldundef{labelyear} {} {\printtext[parens]{% \printtext[bibhyperref]{% \printfield{labelyear}% \printfield{extrayear}}}}} This will make ...


0

Another possibility is to call bibtex with the --include-directory flag. So, instead of, bibtex myfile.tex do bibtex --include-directory="path/to/bibliography/folder" myfile.tex This is a particularly easy solution if you're using a dedicated editor such as Texmaker, WinEdt, TeXnic Center or emacs with AUCTex. In Texmaker, you can edit the bibtex ...


3

This seems to work for me (except that I can't really verify the Arabic) on OSX like this (I removed a lot of unnecessary packages for simplicity): \documentclass[oneside,16pt]{scrartcl} \usepackage{fontspec} \usepackage{csquotes} \usepackage{polyglossia} \setmainlanguage{arabic} \setotherlanguage{english} \setmainfont{Arial} ...


3

The magic conditional can be built using etoolbox's \ifboolexpr (etoolbox is loaded by biblatex; see also the etoolbox manual and the biblatex documentation, esp. §4.6.3 Tests with \ifboolexpr and \ifthenelse, pp. 179 sq.). In an \ifboolexpr we can use all the test provided by biblatex (see §4.6.2 Stand-alone Tests, p. 171-179 of the biblatex ...


0

I found the solution. The style which is used by the ACM Proceedings format can be specified using style=trad-abbrv in the usepackage statement.


2

tl;dr: A universal solution is very nearly impossible, biblatex offers the bookpagination (and pagination field) and a well-coded style will make use of those, so bookpagination = {none} seems a good way to go for biblatex. The Long Answer A solution that works for both natbib and biblatex is almost impossible (one might say all but impossible) for the ...


2

I think that thesis type is right. The following shows two possibilities. Incidentally, your date format was wrong, but I've corrected it: you need to divide dates with hyphens not slashes. \documentclass{article} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @thesis{thesis, author = {John Dough and Jane Doe}, title = {An example of some ...


3

The problem you have is that you have used inbook (which assumes a bookauthor) for incollection. As a result you are getting a spurious \newunit after the (non-existent) author's names. Change to @incollection and all will be well. To demonstrate, I have used a (not released) package I use which marks \newunitpunct with a small blue line and watches for ...


3

I'm using something similar to what you're looking for. You may have a look at that as well, but first, here's what you're looking for: \documentclass{scrartcl} \usepackage{lipsum} \usepackage[style=authoryear,autocite=footnote]{biblatex} \addbibresource{biblatex-examples.bib} %this is a mere copy of the \textcite definition, with added [\mkbibfootnote], ...


6

The environment thebibliography should be used only for a “manually typed” bibliography. With \printbibliography you definitely don't need it. So, remove \begin{thebibliography}{99} and \end{thebibliography}.


6

Add the following to your preamble: \emergencystretch=1em This allows for an additional line-breaking pass with the amount of "tolerable" white space per line increased by 1em. Alternatively, and as suggested by Ulrike Fischer, load the microtype package with the final package option to ensure that the microtypographic features are activated even when ...


1

Another plug for Emacs is M-x check-parens which does as it says: checks to make sure all your parentheses, braces, and square brackets have a matching partner. (Note that it can become confused by opening or closing braces that have been commented out.)


2

(Summarizing some of the ealier comments.) The Patrologia Latina, which runs to 221 printed volumes, and which contains far more works by a wide variety of authors, is probably better thought of as a series. That said, I find there is no great way to refer to individual works in series such as these insofar as each volume itself often contains several ...


0

biblatex can be used together with four different backends (§3.1.1 Load-time Options/backend, p. 43 of the biblatex documentation) biblatex's very own Biber the well known BibTeX bibtex8, a BibTeX version that can deal with 8-bit encodings bibtexu, a Unicode version of BibTeX (the documentation states that biblatex has not been tested with bibtexu in any ...


2

I think you can just change the field format as follows: \documentclass{article} \begin{filecontents}{\jobname.bib} @article{B, author = {Shelly Jones}, title = {Another article}, journal = {Another Journal}, date = {2013-08-14}, } @article{C, author = {John C. Doe and Jane Smith}, title = {The article}, journal = ...


5

biblatex supports independent citation and bibliography styles. Working from Biblatex enumerating sorted bibliography (using authoryear-ibid style), Harvard Reference using Biblatex, and How to add a comma between author and year: \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{refs.bib} @BOOK {KandR, AUTHOR = "Kernighan, ...


0

Unrecommended way I used the cite package before the BibLaTeX+Biber times. I enclose an example. % run: *latex mal-multiple-citations.tex \documentclass[a4paper,twoside,11pt]{report} %\usepackage[sorting=none,backend=bibtex]{biblatex} \usepackage{cite} \usepackage{filecontents} % Wikipedia + http://liinwww.ira.uka.de/bibliography/ ...


1

It looks like you want the style numeric-comp \documentclass[a4paper]{article} \usepackage[sorting = none, backend = bibtex, style=numeric-comp]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} We cite three sources \cite{aristotle:anima, aristotle:physics, aristotle:poetics}. We then cite one other source \cite{worman}. Finally we cite ...


1

If you have shortjournal fields and use the biber backend, you can do \DeclareSourcemap{% \maps[datatype=bibtex]{ % Journal abbreviations \map[overwrite]{ \step[fieldsource=shortjournal] \step[fieldset=journaltitle,origfieldval] } } } Many sites I download citations from (into Zotero) provide Journal Abbr (= shortjournal in the ...


3

At the start of sentences you should probably use \Cite, which is defined (in biblatex.def) as \newrobustcmd*{\Cite}{\bibsentence\cite} It therefore capitalises the first word it prints (as long as biblatex is able to capitalise that word). MWE \documentclass[paper=a5,DIV=7,12pt]{scrartcl} \usepackage{lipsum} ...


6

You just need this one line \DeclareFieldFormat{labelnumberwidth}{\mkbibbold{#1.}} to print the label in bold without brackets followed by a dot. MWE \documentclass{article} \usepackage{biblatex} \addbibresource{biblatex-examples.bib} \DeclareFieldFormat{labelnumberwidth}{\mkbibbold{#1.}} \begin{document} ...


4

Add the following lines in your preamble: \defbibenvironment{bibliography} {\list {% \printfield{prefixnumber}% \textbf{\printfield{labelnumber}}\addperiod} {\setlength{\labelwidth}{\labelnumberwidth}% \setlength{\leftmargin}{\labelwidth}% \setlength{\labelsep}{\biblabelsep}% \addtolength{\leftmargin}{\labelsep}% ...


5

As pointed out in your edited question this is not so much a bug, but a feature (luckily though for us, it is a feature that can be controlled and customised). Biber allows for sorting exceptions as well as for exceptions when creating initials. These exceptions can be declared with \DeclareNosort{} and \DeclareNoinit{} respectively. If the commands are ...


5

As an explanation, I can only imagine, that biber or biblatex are treating the "al" part of the name as some kind of name prefix, similar to the "de" in dutch names. I am quite sure to remember that there is a more global option as well, but I don't have the time now to work it out. As a simple workaround for a single name, you can just give the respective ...


1

As others have written, it is not clear how you are using this. Suppose for example you have that bib entry in a file url.bib and then just \documentclass{article} \begin{document} \bibliographystyle{plain} \nocite{*} \bibliography{url} \end{document} That will give a result similar to the one you got. Maybe this is how you have done it. In that case you ...


1

There are at least to ways you can fix this. The first is a re-definition of the bybookauthor macro that is used to print the bookauthor. \renewbibmacro*{bybookauthor}{% \ifnamesequal{author}{bookauthor} {} {\printnames{bookauthor}}% \printunit{\labelnamepunct}} This will insert \labelnamepunct into the punctuation buffer, where it will ...


1

You could try the following. We will presume we have two .bib files: \jobname-1.bib and \jobname-2.bib, here created via filecontents* \begin{filecontents*}{\jobname-1.bib} @inproceedings{slam2001, author = {Thomas Ball and Sriram K. Rajamani}, title = {Automatically Validating Temporal Safety Properties of Interfaces}, booktitle = ...


2

Updated As I understand it, you want to be able to add a note which will be printed at the start of a bibliographical entry (consistently with the use in your field where the bibliography seems to include material which might, in other fields, appear in footnotes or endnotes). I've had various tries at this during the course of today, getting somewhat ...


5

You can do this quite easily using reference sections with bound datasources: \documentclass{article} \usepackage[style=authoryear]{biblatex} \addbibresource{resource1.bib} \begin{document} \begin{refsection}[resource2.bib] \nocite{*} \printbibliography \end{refsection} \nocite{*} \printbibliography \end{document} Here, the first \nocite only adds the ...


0

I suggest, you use bibtex. In this Intro to BibTeX.pdf you will find a very basic introduction on how to use bibtex and how to cite referencs throughout your LaTeX document. There some tools that allow you to more or less automatically generate the bibtex-source for a given reference. One is JabRef which allows you to export whole .bib-files. GoogleBooks ...


5

Your author field is not properly formatted for BibTeX/biblatex. According to Tame the BeaST, §11 The author field, p. 23: Names are separated by the keyword and: author = {Smith, Jane and Doe, John} Names must be given in one of three formats "First von Last": author = {Johann Wolfgang von Goethe}, "von Last, First": author = {von Goethe, Johann ...


4

This solution modifies the default template for the label. This requires biber rather than bibtex as the backend. This means that the compilation sequence needs to be altered, too: pdflatex <filename>.tex biber <filename> pdflatex <filename>.tex with possibly an additional pdflatex <filename>.tex It will work fine with latex ...


1

So, I've used the following workaround. I downloaded biber-linux_x86_64.tar.gz from http://sourceforge.net/projects/biblatex-biber/files/biblatex-biber/1.8/binaries/Linux/biber-linux_x86_64.tar.gz/download. This unpacks into a single executable called biber. The Biber documentation informs me that they use PAR::Packer to build this executable. Apparently ...


2

The best solution here by far is to install vanilla TeX Live as explained in answers on this site and in the official instructions. There is some confusion, I think. In general, there is a difference between what is needed to build a binary and what is needed to use it. The quotation from biber's documentation is saying that perl is not needed to use ...


5

@moewe has already explained why this happens. A package free solution (well, almost package free) is to remove \MakeUppercase from the definition of \chaptermark (which I insist was a design error to begin with): \documentclass{book} \usepackage{filecontents} \usepackage{lipsum} \begin{filecontents}{\jobname.bib} @ARTICLE{greenwade93, author = "George ...


5

The problem you experience is because the optional argument to \chapter is passed to \MakeUppercase. That will cause the \cite{greenwade93} command to come out as \cite{GREENWADE93}, but of course biblatex cannot find the entry to that cite key. The UK List of TeX FAQs: Case-changing oddities actually describes several remedies for that situation. You ...


5

Zotero offers you options to export as both "BibTeX" and "BibLaTeX". Using the latter, you should not get triple brackets and that should solve this issue for you (and work better with biber anyways). Even with the BibTeX export, I can't replicate your issue in Zotero unless the first word contains more than one capital letter - i.e. "INTERNATIONAL Agency" ...


2

I don't know why, but if you use uppercase only in the refname, it works: @ARTICLE{GREENWADE93, author = "George Greenwade", title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})", year = "1993", journal = "TUGBoat", volume = "14", number = "3", pages = "342--351" } and ...


3

The problem with Biber's \DeclareSourcemap is that it may only be used once in a document (only the last instance will be executed, all the other calls will be ignored)*, as such it is quite hard to implement a macro using \DeclareSourcemap. If you just want to add a comment to some bibliography entries, we can go down a different route. ...


1

So apparently you cannot add multiple \DeclareSourcemap to a latex file since only the last one it taken into account. One Solution can be to declare only one source map and modify the entries manually \DeclareSourcemap{ \maps[datatype=bibtex]{ \map[overwrite]{ \step[fieldsource=entrykey,match=\regexp{^a$},final] ...


4

The error is in having the breve in the first place. No language uses z̆ and this is witnessed by the fact that Unicode doesn't have a slot for it. See also Breve (Wikipedia). The glyph z̆ can only be obtained with U+007A (LATIN SMALL LETTER Z) U+0306 (COMBINING BREVE) and not as a precomposed character. If the “American” transliteration of this ...


5

MWE and test file that shows the problem, if compiled without LuaTeX/XeTeX: \documentclass{article} \usepackage{ifluatex,ifxetex} \ifluatex \usepackage{fontspec} \else \ifxetex \usepackage{fontspec} \else \usepackage[utf8]{inputenc} \fi \fi \usepackage[ backend=biber, ]{biblatex} \begin{filecontents}{\jobname.bib} @book{foobar, author ...


4

The problem Here is the needed MWE: \begin{filecontents}{\jobname.bib} @book{withbreve, author = {Kru\u{z}kov}, title = {With Breve}, year = 2014} @book{withcaron, author = {Kru\v{z}kov}, title = {With Caron}, year = 2014} \end{filecontents} \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{biblatex} \addbibresource{\jobname.bib} ...


4

The problem is that biblatex treats the abbreviation dot in journal = {Am. J. Phys.} as a literal period (the end of a sentence). We can stop biblatex from doing that by using \isdot \DeclareFieldFormat{journaltitle}{\mkbibemph{#1\isdot}} As per the biblatex documentation §4.7.3 Adding Punctuation, p. 191: \isdot Turns a previously inserted literal ...


0

You cannot do this automatically, but in some cases it is possible to break the bbx file into pieces to give you what you want. For the case of mixing the authoryear style and the publist style this is pretty straight forward. Working from the following MWE \documentclass{article} \usepackage[labelnumber=true, bibstyle=authoryear]{biblatex} % ...


1

This is difficult to achieve because of biber. When you do \nocite{*} this causes <bcf:citekey order="0">*</bcf:citekey> to be written to the bcf file which is read by biber and then used to create the bbl file which is used by biblatex. Without modifying biber, we are forced to get biblatex to write something in the bcf file that will cause ...


2

I second the suggestion that being able to 'nocite' all entries in a specific .bib file would be useful, but until that happens, it is not tricky to quickly grab those citations all in one go. Imagine we want to populate a single file with all entry keys from a .bib file, so we can simply add a \input{nocites} That means we need a file called ...


3

The following approach is not entirely satisfying because technically for biblatex all entries will have been \(no)cited, this leads to biblatex applying disambiguation techniques it would not have to use. The main idea is to use a sourcemap restricted to \jobname-resource2.bib \DeclareSourcemap{ \maps[datatype=bibtex]{ \map{ ...



Top 50 recent answers are included