Hot answers tagged

297

(The following is an expansion of the biblatex tag entry, which I helped to write). Some terminology It's first off important to realize that the term BibTeX is often used to refer to various distinct things, and this can lead to some confusion. For example we typically tell new users to "use bibtex for your bibliography" which usually just means don't do ...


230

To typeset accented characters inside bibliography fields for processing with BibTeX, encase them in curly braces. To list but a few accented characters: {\"a} {\^e} {\`i} {\.I} {\o} {\'u} {\aa} {\c c} {\u g} {\l} {\~n} {\H o} {\v r} {\ss} The word Birkhäuser should therefore be entered as Birkh{\"a}user. Addendum: There is an obvious follow-up ...


229

A simple way of doing it in BibTeX is with a @misc entry: @misc{WinNT, title = {{MS Windows NT} Kernel Description}, howpublished = {\url{http://web.archive.org/web/20080207010024/http://www.808multimedia.com/winnt/kernel.htm}}, note = {Accessed: 2010-09-30} } You should also perhaps include an author if you know it. And remember to load a package ...


171

The last time I cited an URL, I used a BibTeX entry of the following form: @misc{bworld, author = {Ingo Lütkebohle}, title = {{BWorld Robot Control Software}}, howpublished = "\url{http://aiweb.techfak.uni-bielefeld.de/content/bworld-robot-control-software/}", year = {2008}, note = "[Online; accessed 19-July-2008]" } If that does not show up, ...


134

Since this question comes up so often, I thought I'd try to supplement ArTourter's correct answer with a more general comment. What does a question mark mean It means that somewhere along the line the combination of LaTeX and BibTeX has failed to find and format the citation data you need for the citation: LaTeX can see you want to cite something, but ...


108

The appropriate separator for authors is "and". Comma is used to distinguish first and last name (link): author = "Orti, E. and Bredas, J.L. and Clarisse, C.",


104

This is not a bug; it's a feature. Depending on the bibliography style in use, BibTeX converts all characters in the title to lowercase, with the exception of the first character. If you want to override this, wrap the character(s) in curly braces, e.g., title = "Pascal, {C}, {Java}: were they all conceived in {ETH}?"


103

You can "comment" whole entries by erasing the @ in front of the type declaration (@book -> book); there are no other ways of commenting parts of entries. However, unknown fields are ignored, so you can say OPTpages={34--35}, in order to ignore the pages field. Also repeated fields are ignored.


100

Use \nocite{*} in the body of your document to include all the references in the .bib database. To include only some bibliographical entries, you can use \nocite{key1,key2,...,keyn} to include only the entries corresponding to key1,key2,...,keyn.


95

The correct way to load multiple bib files is to use \bibliography{file1,file2} Note the lack of space between the comma and the files!


85

When changing the bibliography style, sometimes natbib is upset because it can't interpret the data correctly. In any case, after changing the argument to \bibliographystyle a run of LaTeX and one of BibTeX are necessary to get back in sync. Removing the .bbl and .aux files before those run is recommended, in order to avoid spurious error messages that ...


80

The loss of capitalization is by design: BibTeX does this because some, but not all citation styles require capitalization in titles (a.k.a. "title case"); other styles use ordinary case. Your bibliography database should work with both capitalization styles without modification, so BibTeX styles are designed to work as follows: You must write the title in ...


74

Here's my compilation of the suggestions given. Feel free to edit other suggestions in as appropriate, in addition to posting each suggestion in a separate answer. Note that this list is manually updated, and may not include all the other answers that have been posted! If you find some other answer helpful, please upvote it as well. General-purpose ...


68

Another way this error can arise is if one of your BibTeX entries has no year.


64

I think the best description is given by the author himself in the documentation (1.1 About biblatex): This package provides advanced bibliographic facilities for use with LaTeX in conjunction with BibTeX. The package is a complete reimplementation of the bibliographic facilities provided by LaTeX. It redesigns the way in which LaTeX interacts with ...


64

I believe that the entry type you want to use is called @incollection. Back-filling information for the author's and editors' first names as well as the chapter and pages fields, the full entry could be as follows: @incollection{grandstrand:2004, author = "Ove Grandstrand", title = "Innovation and Intellectual Property Rights", editor ...


63

it is also possible, but not so easy as with bibtex. When you finished your document write into the preamble after the already existing biblatex definition: \documentclass{...} ... \usepackage[style=numeric-verb]{biblatex}% change it for your needs \bibliography{examples} %-------------- start insert modified commands ------------------ \makeatletter \def\...


58

For journal submission, I'm afraid my answer would be 'do not use biblatex'. The bibliography is generated at the LaTeX end by biblatex, and so it is not possible to 'paste in the formatted result'. Most journals want you to either do this or use their own BibTeX style, so biblatex is a bad choice. (This is a shame, but unless/until the journals update their ...


57

I had the same error trying to use spmpsci.bst in conjunction with natbib. While natbib's default citation style is author-year, spmpsci.bst is numeric, so this is a strange error to get. I eventually changed the following: \usepackage[square,sort,comma]{natbib} to \usepackage[square,sort,comma,numbers]{natbib} Problem went away.


55

With a TeX Live distribution (possibly also with MiKTeX) there is a bibexport program. Assuming your document is myarticle.tex, you have to compile it normally and then you call bibexport -o extracted.bib myarticle.aux where extracted.bib is the name that you want to give to your new .bib file. Notice that you have to give the extension .aux (or no ...


53

I have no problem with publisher = {Harold \& Maude}, and running pdflatex and bibtex.


51

I think things are just a bit more complicated than in @Joseph's answer. (Though in laying them out, I may violate the desire for a "concise" answer.) My go to reference for details of the BibTeX format is Norman Walsh's page which self describes as: This help entry contains the same information as Appendix B of the LaTeX manual. In BibTeX's world ...


51

Include your DOIs in the BibTeX database under the doi field and include the URLs under the url field; for example: \begin{filecontents*}{test.bib} @article{foo2010, author = "Foo Bar", journal = "J.P.B.", year = 2010, title = "Where the wild things are.", doi = {10.1.1/jpb001}, url = {http://dx.doi.org/10.1.1/jpb001} } \end{filecontents*} \...


50

It seems that the PhDbiblio-url2 bibliography style does not want the url field to contain \url{...}. It takes care of the url formating itself, enclosing the contents of the url field in \href{...}. If you have something like url = {\url{http://example.com/}}; in you .bib file, the PhDbiblio-url2 style translates that into \href{\url{http://example....


50

Just replace the first name in question, say Csaba, with {\relax Cs}aba. More generally, place the part of the name that is to be unaffected by the abbreviation inside a TeX group, which is a field that's delimited by { and }, and insert the command \relax at the beginning of that group. Another example of how to make use of this method: To help one's ...


48

The natbib package manages the creation and appearance of citations. However, it does not, by itself, determine whether and how lists of numerous authors should be truncated, either in a citation or in the reference listed in the bibliography. Truncation issues are defined in the .bst file, which is called in the command \bibliographystyle{<somestyle>}....


47

Just enclose the the author field in another set of braces: @book{CUDA, author = {{NVIDIA Corporation}}, title = {NVIDIA CUDA Compute Unified Device Architecture Programming Guide}, publisher = {NVIDIA Corporation}, year = {2007} }


47

You need to enclose the \ss macro in braces: (it's also a good idea to enclose the \" within the braces of the 'o'.) Gei{\ss}ler, J{\"o}rg Otherwise, TeX can't tell whether the macro is \ss or \ssler. Usually macros can also be delimited by spaces in LaTeX, but this won't work in your bib file because the space is used by BibTeX to delimit parts of names....


46

The behavior mentioned is the default using IEEEtran.bst style. To change it, you can define a IEEEtranBSTCTL entry in your bib database and change the default value for CTLdash_repeated_names. So, in this case, your entry should look like this: @IEEEtranBSTCTL{IEEEexample:BSTcontrol, CTLdash_repeated_names = "no" } Then in the body of your .tex file ...


45

Using the biblatex package, you only need to redefine one bibliography string: \documentclass{article} \usepackage[style=authoryear,maxnames=2]{biblatex} \DefineBibliographyStrings{english}{andothers={\&~al\adddot}} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{Aut10, author = {Author, A. and Buthor, B. and Cuthor, C.}, year =...



Only top voted, non community-wiki answers of a minimum length are eligible