Questions tagged [bibtex]

71 questions
20
votes
3 answers

Loading bibtex file in org-mode file

I'm trying to use org-mode to do almost everything. In my scientific writing activity, I would like to sketch a whole paper in an .org file and then export in LaTeX. I don't want to load the .bib bibtex file in the init.el as I could have multiple…
petrux
  • 665
  • 1
  • 5
  • 18
13
votes
1 answer

Highlighting missing references

Is it possible for auctex to display missing references differently to ones which are in the bib file? Currently, all references look identical so it's impossible to tell at a glance which citation keys are defined in the bib file, and which are…
cazgp
  • 231
  • 1
  • 3
11
votes
4 answers

How to make emacs align and indent a bibtex entry?

I want bibtex-mode to align and properly indent fields. I copied a bibtex entry for the following article into Emacs: (Article source here) But, with a simple paste, the alignment is lost in Emacs and the indentation is messed up: The TAB key…
Viesturs
  • 805
  • 8
  • 19
8
votes
3 answers

Split a complicated string?

Q: how do I split a complicated string when whitespace delimiters aren't discriminating enough? Background I'm working with BibTeX files. I want to split an author string of the form "first-name middle-name last-name" into its tokens. Doing so is…
Dan
  • 32,584
  • 6
  • 98
  • 168
8
votes
1 answer

Org-Ref: Managing multiple projects, each with own notes.org files and bibtex-pdfs folders

When using org-ref, the bibliography:ref.bib directive in the notes.org file can be used to direct it to the corresponding ref.bib bibliography. Is there a similar such directive or approach to enable the ref.bib file to "discover" its corresponding…
nyameko
  • 545
  • 2
  • 15
6
votes
1 answer

Changing the order of the entries of the bibtex-autokey generator-*

I am trying to migrate from Zotero to org-ref, and got stuck when trying to use the doi-utils-add-bibtex-entry-from-doi command. After reading the Automatic Reference Key Generation section and searching online couldn't find an answer to this…
Ajned
  • 672
  • 4
  • 19
6
votes
1 answer

How to create a small bibtex file from a bigger one?

Q: how do I create a stripped-down bibtex file based on the citations used in a given paper? I have a single, master bibtex file that contains thousands of entries. For most papers, I only ever use a few dozen of those entries. When I submit the…
Dan
  • 32,584
  • 6
  • 98
  • 168
5
votes
1 answer

bibtex2html options in org-mode publishing

How do I pass the bibtex2html option -nobibsource when publishing via ox-bibtex.el? I have added it directly to the ox-bibtex.el file by commentling out line 265 and adding my own: ;;'("-a" "-nodoc" "-noheader" "-nofooter") '("-a" "-nodoc"…
m43cap
  • 183
  • 4
5
votes
1 answer

How to add 'timestamp' and 'owner' to 'bibtex-clean-entry'?

I am a recent and happy user of BibTeX mode (bibtex.el), but there is one thing I can't get to work as I wish. When I create a template, I can enforce insertion of timestamp and owner with: (defun current-date () (format-time-string "%Y.%m.%d"))…
5
votes
1 answer

Syntax highlighting is breaking in long bibtex files (spacemacs bibtex layer)

So I have a long papers.bib bibtex file that I edit with emacs (spacemacs bibtex layer), but the syntax highlighting only ever goes about halfway down. Here it is at about line 790: Other times this happens elsewhere: line 10,000, line 900, etc.…
Jonathan
  • 567
  • 5
  • 20
5
votes
2 answers

How to turn every ALL CAP word in a buffer into Title case?

I need to fix a large .bib file where all proper names are in ALL CAPITALS (thanks ProQuest!) Is there an elisp function that searches a buffer/region for words in all capitals and turns all characters except the first one into lowercase…
stefano
  • 165
  • 3
5
votes
1 answer

Org-mode latex pdf export command doesn't find citations

I'm trying to write my thesis in org-mode, and so far it feels amazing. The integration with my todo system, the easy markup language, integration with latex. Wow. But recently (since I upgraded to the latest latex version on my Arch system, and…
Japhir
  • 215
  • 1
  • 6
4
votes
1 answer

How to generate cited references with biber and xelatex

I would like to generate cited references and bibliography using biber and xelatex through org mode, but have not figured out how to do so. I have to use xelatex because I am working with Chinese articles. Sample Document: #+TITLE: How to Automate…
Sati
  • 775
  • 6
  • 21
4
votes
1 answer

BibTeX Line Breaks in fields

I'd like to have linebreaks within fields of a BibTeX entry that are preserved even after I format the entry with C-q. Currently, what happens in my BibTeX buffer is this. I produce an entry with a long annotation that includes a linebreak, like…
Bernhard
  • 355
  • 1
  • 9
4
votes
1 answer

initialization of bibtex package

When i ran the following code in just started emacs (with-temp-buffer (insert "@article{aaaa, author = {AAA}, title = {BBBB} }") (bibtex-mode) (bibtex-autokey-get-field "title")) I get the following error: Debugger…
RCV
  • 105
  • 6
1
2 3 4 5