Tag Info

Hot answers tagged

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]{% ...


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}, ...


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 ...


5

@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 ...


4

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 ...


4

Christian Hupfer's solution, which uses biblatex, is elegant and simple. Just in case you can't use biblatex -- say, because you must use a BibTeX-based bibliography style for which no good equivalent exists in biblatex, or because the journal you're submitting your paper to requires the use of BibTeX -- here's a way to achieve author-title-year sorting via ...


4

You should be able to do this with BibDesk templates. If you don't want the required/optional fields as specified in btxdoc, I'd start with this example, but replace the requiredFields and optionalFields with blocks like this for each field that you want to keep: <$fields.Author?> Author = <$fields.Author.bibTeXString/>, ...


4

If you mean the main bibliography, then use [...] \begin{document} \nocite{*} [...] \bibliographystyle{unsrt} \bibliography{bibfile} [...] same as style plain but without sorting the entries. If you mean a single bib entry then use: author = {K. Rustan and M. Leino and Peter M\"uller and Jan Smans},


3

Not yet finished, but done so far are Times --> \usepackage{mathptmx} Footer with the page progress --> clear the fields with \fancyhf{} first, otherwise it's messed up. \twocolumn stuff for the first two pages Somehow correct name header I have no clue for the desired reference and word count (at the moment) %Nam scripta a cursus ad philosophíæ ...


3

the error is not in cite it is simply that \apj is not defined, the bib file presumably intends you to load a package to define it, if not just \newcommand\apj{some journal name} will do. Unrelated but don't load epsfig package unless you really mean to emulate a document from the 1980's (which is the reason I wrote that package).


3

It's very easy. ;-) The macro responsible for the final printing of the citation is \@cite, the standard definition is % latex.ltx, line 6271: \def\@cite#1#2{[{#1\if@tempswa , #2\fi}]} The \if@tempswa conditional is set to true if \cite has an optional argument. \begin{filecontents*}{\jobname.bib} @article{uthor2015, author={A. Uthor}, title={A ...


3

I followed Harish Kumar's solution, but I needed to make a fake Aux file. To do this, I used a text editor to insert \citation{ } around each of my bibtex keys, e.g. \citation{johnson1998selective} \citation{peterson1478eulerian} \citation{anderson2014questionable} I pasted all of these into an ".aux" file, and pointed JabRef at that.


2

This automatically writes a mynewbib.bib file and puts the content between \begin{filecontents}...\end{filecontents} there. If mynewbib.bib already exists, nothing will be (over)written. I added a citation of article1 and compiled this document called foo.tex with pdflatex foo bibtex foo pdflatex foo Compiling twice with pdflatex is important and ...


2

The following solution uses biblatex: \documentclass{article} \usepackage[ natbib=true, style=authoryear, labelnumber, ]{biblatex} \addbibresource{references.bib} \DeclareFieldFormat{labelnumberwidth}{[#1]} \defbibenvironment{bibliography} % from numeric.bbx {\list {\printtext[labelnumberwidth]{% \printfield{prefixnumber}% ...


2

You should choose one of the available bibliography citation styles; natbib is not such a style: \documentclass{article} \usepackage{natbib} \begin{document} \section{Some section} \citet{LAS13} \citet{LCN09} \bibliographystyle{unsrtnat} \bibliography{main} \end{document} Here is a basic natbib template in ShareLaTeX that you can follow.


2

As you've confirmed in a comment, implementing @egreg's suggestion and getting rid of the extra pair of curly braces around the author fields (and around the editor fields too, while you're at it) lets LaTeX and BibTeX generate the desired citation call-out format. To address the second issue -- listing the authors' full names as "Surname, FirstName" rather ...


2

This is probably too late, but I reached your post and searching a bit more I think I found the answer. You can fix that by using \shortcites{key-list} before the first occurrence of the citation to the reference of many authors. Instead of "key-list", you should list the citation keys of all bib entries for which the first citation call-outs should use ...


2

You can use a macro in the year field, which you set in the document. \begin{filecontents*}{\jobname.bib} @manual{FoobarReference, author = {Smart Guy}, title = {The Foo/Bar Reference Manual}, year = {\foobaryear}, } \end{filecontents*} \documentclass{article} \newcommand{\foobaryear}{2015} \begin{document} The manual is \cite{FoobarReference}. ...


2

In a standard BibTeX environment the easiest solution is the note field, virtually all styles support this field and it is the place stuff goes if there is no field better suited. You can also go down this route if you use biblatex, but biblatex has a library field. This field is not enabled in the standard styles, though, but with a few lines of code we ...


2

The latexprogram is actually pdflatex running in dvi mode. According to latex --help, the output format can be set with -output-format=FORMAT use FORMAT for job output; FORMAT is `dvi' or `pdf' So you can try to force the dvi output by compiling with: latex file.tex -output-format=dvi What you have though actually does the same, if latex is giving ...


2

By the way, you should use the more modern biber with biblatex! The option you are looking for is named sortcites: \documentclass[]{article} \begin{filecontents*}{references.bib} @misc{first, title={Reference A}, author={Alice}, year={1980}, } @misc{second, title={Reference B}, author={Bob}, year={2000}, } \end{filecontents*} \usepackage[ ...


2

If you use biblatex+biber it's simple. The syntax for producing a bibliography is slightly different: you define the .bib files in the preamble with the \addbibresource command, load biblatex, and simply write\printbibliography where you want it to be. Note I changed the input encoding to utf8 as biber understands it. Also, times is obsolete, you should ...


1

Ok, my mistake: instead of "running" pdf lateX, I would just use the F1 button. This is what I used to do with my old computer and I thought it was pdflatex compiling. Every finally worked when I indeed run Bibtex = F11, then pdflatex = F6 (not F1), then again (F6)


1

First here is how to do it with multibib, followed by an approach with multibbl: \documentclass{article} \usepackage[labeled,resetlabels]{multibib} \newcites{L}{Links} \begin{document} Text, etc. \cite{art} and \citeL{link} \bibliographystyle{plain} \bibliography{References} \bibliographystyleL{plain} \bibliographyL{Links} \end{document} To do ...


1

(Too long for a comment, hence posted as an answer.) I gather you wish to use the abstract bibliography style since it's set to print the contents of any abstract fields (as well as incidentally, keyword and comment fields) that may be present in the bib entries. However, as you've discovered, the abstract bibliography style generates citaton call-out ...


1

According to the UK TeX FAQ, referenced in the comments: LaTeX won't include from other directories You wanted to \include{../bar/xyz.tex}, but LaTeX says: latex: Not writing to ../bar/xyz.aux (openout_any = p). ! I can't write on file `../bar/xyz.aux'. The error comes from TeX’s protection against writing to directories that aren’t ...


1

One tool I've used is BibtexParser. You can use it in a Python script that takes the .bib file and outputs another one with the fields you want. I've used it for something similar myself: https://github.com/twsh/Convertbibliography This isn't a Bibdesk specific solution, of course. But I take it that that doesn't matter to you.


1

Thanks to @AlfredoHernández for his answer. Following his suggestion, with a slight modification I found from this question, this command \newsavebox\mytempbib \savebox\mytempbib{\parbox{\textwidth}{\input{mainFile.bbl}}} works perfectly.


1

Using tocbibind package and the numbib option this will work for the standard classes such as article and book. \documentclass{book} \usepackage{blindtext} \usepackage[numbib,nottoc]{tocbibind} \usepackage{hyperref} \begin{filecontents}{mybiblo.bib} @article{MBBL2014, author = {Ministeriet for by Bolig og Landdistrikter}, title = ...



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