Hot answers tagged

9

I'll will give you a more basic approach without additional tools like JabRef. In my opinion, these tools are fine and can make life a lot easier, but you should have a basic knowledge of what is going on under the hood. Another example is latexmk which takes care of the multiple runs of different programs needed for the finished document. But you should ...


8

article class (and probably most others) defines the bibliography with \sfcode`\.\@m so you do not get end of sentence spaces.


8

For the answer to your edited question see here (the old version with explanations is left below). Our bibliography environment can be even more mundane now \defbibenvironment{bibliography} {\noindent} {\unspace} {} The work is now done by begentry which prints the label \renewbibmacro*{begentry}{% \printtext[labelnumberwidth]{% ...


8

The failure is not related to arara, but to the fact that you're loading twice your bibliography database: \addbibresource{test.bib} \bibliography{test} All you have to do is to remove the line \bibliography{test} which is redundant. So the MWE % arara: xelatex % arara: bibtex % arara: xelatex % arara: xelatex \documentclass{article} ...


8

From the babelbib manual: If you don’t want this behaviour you can use additional variants that use the same notation for all names. By appending -fl to the style name, e.g., babalpha-fl, all names are written “Forename Lastname”. By appending -lf, e.g., babalpha-lf, all names are written “Lastname, Forename”. So use babplain-lf instead of ...


8

Is title={Title} identical to title={ Title } and title=" Title "? Yes. See below for a sample .bib file and the result of running it through BibTeX, viz., a corresponding .bbl file. The .bbl file is created by BibTeX and is read by LaTeX during subsequent compilations; LaTeX, not BibTeX, does the actual typesetting the formatted bibliography. To study ...


7

Find plain.bst on your file system, copy the file, rename the file to something else. Open the file, add a comment that the name has changed and the current year and preferrably your name. Find the edition function and replace it with the following block: FUNCTION {format.edition} { edition empty$ { "" } { output.state mid.sentence = { ...


7

Throw the things you want to maintain your capitalization on into curly braces, e.g. {TCP}.


7

As with various parts of the TeX tool chain, often the most sensible way to report a bug in BibTeX is to raise the issue on the TeX Live mailing list. There are a range of TeX experts on that list and importantly the TeX Live developers are often in a good position to contact binary authors or to make changes to the code (license-dependent). Moreover, before ...


7

You can use the \vphantom command to include the closing bracket but not showing it, i.e. @book{test_123, title = {How to use \{\vphantom{\}} in Bib(La)TeX?}, author = {Vinckevicius, Aurimas} } works for me with normal BibTeX and the following tex file: \documentclass{article} \begin{document} \cite{test_123} \bibliography{references} ...


7

Technical Limitations The technical limitations of using the DOI as bibkey are that they should not contain a character that has special meaning in the .bib file syntax, that is you cannot have a comma , or curly braces {/} because that will make Biber/BibTeX think the bibkey has ended when it hasn't. Additionally one should be wary of special UTF8 ...


7

The implementation in biblatex-ieee follows as far as possible that in ieeetran. The latter describes itself as being official correct, so this is a reasonable reference point. On the specific point about the 'Oxford comma' here, if you look at texdoc ieeetran and for example ref. 20 you will see C. Barratt, M. C. Grant, and D. Carlisle. with a comma. ...


7

Running bibtex: voss@shania:~/Mist> bibtex test This is BibTeX, Version 0.99d (TeX Live 2015) The top-level auxiliary file: test.aux The style file: plain.bst Database file #1: test.bib Repeated entry---line 2 of file test.bib : @article{Carberry_2012 : , title={Deconstructing Write-Back Caches}, volume={9}, ...


7

The field type is just for this. Put in your entry type = {Tesis de Maestría},


6

According to the documentation of bibtex, the sort order of plain is author, year, title, as the OP stated, not author, title, year. This seems to be a misunderstanding. This refers to plain standard style, where as in section 2.2 of bibtex manual the changes are described: If the author, title, year sorting is requested, it's perhaps better to use the ...


6

@egreg's comment is correct; the user base for amsrefs is mainly material published by the ams, although i know of a few other journals that accept its use. bibtex was very solidly entrenched before amsrefs was envisioned, and there were (sadly unrealized) hopes for its "completion". there are, as far as i know, no formal pros/cons lists for amsrefs. one ...


6

\documentclass{article} \begin{document} \section{Polka loving Platypus} \cite{companion}\cite{article-full} \bibliographystyle{alpha} \bibliography{xampl, biblatex-examples} \end{document} Running bibtex on the aux file of the first LaTeX run gives us the following The style file: alpha.bst White space in argument---line 5 of file ...


6

Zotero Better BibTex allows for automated export to BibTeX/BibLaTeX (a.o.). It's set-and-forget; you export a collection to a file, tick "Keep updated", and Bob's your proverbial uncle. Any changes you make to that collection or its entries will cause a background update of the bib file. You can have multiple of such exports set up -- BBT implements heavy ...


6

The idea here is that control.author can pass information about a variety of options all encoded into one number. This is the standard idea of using different bits of a number to pass a series of boolean settings. To 'recover' the data, control.author.decode first does a test that control.author is in range (greater than 0, less than 128). That's done by ...


6

A solution to your problem would be to add a script to your git workflow, that reformats your .bib-file. One such tool is biber in toolmode. Calling: $ biber --tool example.bib results in a nicely formated file called example_bibertool.bib: @ARTICLE{bib:farzaneh, AUTHOR = {Seyed Amir Farzaneh and Mehran Sohrabi}, BDSK-FILE-1 = ...


6

Natbib sets the punctuation before the post-note with the key notesep in \setcitestyle. So to make it a space instead of comma-space, just put in the preamble \setcitestyle{notesep={ }} Also, do not put \begin...\end in your .bib file.


6

First of all, from the command line, run kpsewhich plain.bst to know where the file plain.bst is. Its path should be TEXMF/bibtex/bst/base/. Now copy plain.bst in the directory where your .tex file is, and rename it to myplain.bst. Then open myplain.bst in your editor and search for the lines: FUNCTION {format.names} { 's := #1 'nameptr := s ...


6

Using UTF-8 text input and rather basic math approximations we get: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \DeclareUnicodeCharacter{025B}{\ensuremath{\varepsilon}} \DeclareUnicodeCharacter{03F5}{\ensuremath{\epsilon}} \DeclareUnicodeCharacter{03B5}{\ensuremath{\varepsilon}} \begin{document} latin open e U+025b [ɛ] ...


6

Use the right packages, in this case textalpha; note that ε is U+03B5 GREEK SMALL LETTER EPSILON. Since we're dealing with the name of a star, the Greek letter is to be used. I also fixed the BibTeX entry for the paper, which had a few errors. \begin{filecontents*}{\jobname.bib} @ARTICLE{1937ApJ....86..570K, author = {Kuiper, G. P. and Struve, O. and ...


6

The bibliography style spbasic requires \usepackage{natbib} as it's seen in the comments on top of it %%********************************************************************************%% %% %% %% For Springer medical, life sciences, chemistry, geology, engineering and %% %% ...


6

It is in no way discouraged to comment any files you might have written. What you came across is a slight discrepancy in the handling of comments, or if you will a disagreement about what constitutes a comment. According to btxdoc, §4, item 7, p. 13 BibTeX allows in the database files any comment that's not within an entry. If you want to comment out an ...


6

Over the years, many packages have been written to do some special bibliography stuff. Urls and DOIs became prominent over the years, and some bibliographystyles have added features to actually cite online material. With biblatex we have a modern package that tries to implement all the functunality of the various packages in just one LaTeX package. It ...


6

To create a .bib file from scratch, the simplest is to use JabRef, a multiplatform bibliography manager written in java. You only have to choose the type of entries you want to cite (article, book, conference &c.), fill in forms for the relevant fields. JabRef has import and export functionalities. Added: As @AlanMunn recalled, Mac users have another ...


5

If you need the optional argument of \cite then you have to extend the code: \documentclass{article} \let\myCite\cite \makeatletter \def\cite#1{\cite@I#1!!} \def\cite@I{\@ifnextchar*\cite@II\cite@III} \def\cite@II#1!!{} \def\cite@III#1!!{\myCite{#1}} \makeatother \begin{document} foo\cite{article-minimal} and bar\cite{*article-full} ...


5

You can use pandoc-citeproc, which is a part of the excellent pandoc program, to convert your .bib file to a .json file. pandoc-citeproc --bib2json foo.bib > foo.json But I doubt the output will be exactly what you need, because the specs you have linked seem to go beyond what pandoc offers.



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