Hot answers tagged

15

For your particular example (of the unified.bst) style, it suffices to add the following line to your preamble (and load the hyperref package) \newcommand{\doi}[1]{\textsc{doi}: \href{http://dx.doi.org/#1}{\nolinkurl{#1}}} The MWE \documentclass{article} \usepackage{natbib} \usepackage{hyperref} \begin{filecontents}{\jobname.bib} @article{chomsky1977b, ...


11

You could proceed as follows to direct BibTeX to abbreviate first (and middle) names down to the initials, while using a suitably modified version of the plain bibliography style: Find the file plain.bst in your TeX distribution. (One way to find this file is to issue the command kpsewhich plain.bst at a command prompt.) Copy this file to, say myplain.bst. (...


10

Add the following lines in your preamble \DeclareFieldFormat{labelnumberwidth}{} \setlength{\biblabelsep}{0pt} The first line is to print nothing in the label, the second to eliminate the spacing before the entries. MWE: \begin{filecontents*}{cvreferences.bib} @BOOK{book1, author = {John Doe}, title = {Title}, publisher = {Publisher}, ...


8

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


8

You can use biblatex with convenient options. Write: ...................... \usepackage[style=numeric,firstinits]{biblatex} \addbibresource{MyBibfile.bib} .................... \begin{document} .................... \printbibliography \end{document} This makes both citation and bibliography styles numeric. But you can choose citation style and ...


8

I had the same problem after installing El Capitan. Did you test if you are able to use pdflatex running from the terminal? In my case it worked. After knowing that I used which pdflatex to see where the pdflatex is, andthe result was /Library/TeX/texbin/pdflatex. Then I went to this directory, and I noticed that most of its content (including the pdflatex)...


8

amsrefs uses the command \eprint to format the eprint field, its standard definition is \newcommand{\eprint}[1]{\url{#1}}. You can redefine the command to your liking. Assuming you load hyperref \renewcommand{\eprint}[1]{\href{https://arxiv.org/abs/#1}{arXiv:#1}} links all eprints to their arXiv page, but only displays the short "arXiv:math/0409441" ...


7

Your example code shows you use the apacite package and associated apacite bibliography style, which implement referencing and citing according to the conventions of the APA (American Psychological Association). Starting with the 6th edition of the APA manual, the following guidelines must be followed when referencing and citing entries with multiple ...


7

If you look at your .bst, i.e. the BibTeX style file, there should be a function formating the DOI output. There you could use \hreffrom the hyperref package and \detokenize as mentioned here or here, you can do something like FUNCTION {format.doilink} { duplicate$ empty$ { pop$ "" } { doi empty$ { skip$ } { "{,\ doi:~\href{http://dx.doi.org/" * ...


6

In order for BibDesk to use a particular style file in its TeX preview, the .bst file only needs to be somewhere where a normal TeX distribution can find it, such as in TEXMFHOME. Since we're talking about a Mac here (because of BibDesk), this usually means that it needs to be in ~/Library/texmf/bibtex/bst/. (If you do not know how to set up the TEXMFHOME ...


6

Three suggestions: Don't load both the apacite and the natbib packages; instead, run either \usepackage{apacite} or \usepackage[natbibapa]{apacite} (Use the latter if you wish to use the natbib-like citation commands, e.g., \citet and \citep). Do familiarize yourself with the user guide of the apacite package. In particular, the user guide provides ...


5

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/>, <?$fields.Author?&...


5

I finally came to a solution. When I had \bibliography{mybib}, the bibliography file could not be found. By specifying the location as I did below solves the problem. \bibliographystyle{plain} \bibliography{/Users/SextonEconomics/Desktop/mybib} \end{document}


5

If you have enabled the option to "Automatically save a backup document every n minutes" in BibDesk's "Opening and Saving" preference pane (accessed via the menu item BibDesk > Preferences...), then BibDesk will automatically save a backup copy of any changed open bib file every n minutes (where n >= 5) in the same folder as the open file with "(Autosaved)" ...


5

The best current implementation of a true APA style is the biblatex-apa style. Here's a sample document using it. If you want to use the 'Retrieved from' field, you need to name it correctly, the biblatex field name is urldate and the formatting of the date has to be correct too: YYYY-MM-DDTHH:MM:SS (if you need exact times, although they won't be printed ...


5

Combining the answer from @egreg's comment with this suggestion for adding arguments to biber in latexmk, I created a .latexmkrc file in the project directory with the following content $biber='biber --output-safechars %O %S'; which solved the problem.


5

If you install a full MacTeX installation, a number of very useful GUI programs are also installed. They take up very little space, so it's not very worthwhile to delete them anyway, but mainly you may find them useful. What's installed TeXShop This is a full featured TeX editor/IDE. If you've never used LaTeX before it can make your life substantially ...


4

There is no technical reason not to mix utf8 text and LaTeX in one .bib file. Biblatex, with biber, handles both fine. Ease of input, readability, and portability may count in favour of various approaches. For some fonts, especially fixed width ones, hyphens, en-dashes, and em-dashes are hard to distinguish. Some characters are hard to input, especially ...


4

There is no need to remove these fields from the bibtex files. All you have to do is to use the isbn, dii and url option of biblatex and set them to false, i.e., \usepackage[doi=false, issn=false, url=false]{biblatex} Alternatively you can use \AtEveryBibitem{\clearfield{<field>}} to remove other unwanted fields.


4

Bibtool can do a lot of the work for you. Take this .bib file: % masterfile.bib @InProceedings{a, crossref = {z}, author = {Author, A.}, year = {2001}, title = {Alpha}, } @InProceedings{b, crossref = {z}, author = {Buthor, B.}, year = {2002}, title = {Bravo}, } @Proceedings{z, editor = ...


4

It is possible to use biblatex with Bibdesk to generate the TeX preview. Go to Preferences --> TeX preview Then if you want to use XeLaTeX change the executable for pdflatex to xelatex Then you have to change the TeX template. Based on what you have provided a suitable template is. \documentclass[a4paper, 11pt, DIV=13]{scrartcl} \usepackage{fontspec} \...


4

This is not possible without modifying the code and recompiling TeXShop, specifically in the TSTextView object. It's not hard, but would require some familiarity with Objective-C. If you use \citepage{ as a command name, it should work as-is.


4

Well, the problem with your code is a wrong bib entry and a not compiling not so minimal MWE ... Please see thechanges I did to your entry: @misc{ref:iqhistory, Author = {A.C.E Intelligence}, Howpublished = {\url{http://www.aceintelligence.com/detailed_history_of_iq.php}}, Month = {June}, Note = {Last accessed 22 Mar, 2016}, Title = {\...


3

Copy the RTF template (~/Library/Application Support/BibDesk/Templates/rtfExportTemplate.rtf) into a new file (e.g. ~/textExportTemplate.rtf) Convert this file to a text file, and change its extension (yuck, what year is this again?) to .txt Add the template to BibDesk preferences (File > Preferences > Templates) You should now be able to Export your ...


3

There is a nice solution to similar issue by Roly in Missing $ inserted issue, who recommends to use \usepackage[strings]{underscore}. The package arranges that, while in text, ‘_’ itself behaves as \textunderscore (the behaviour of _ in maths mode is not affected).


3

From what I gather, previewtemplate.tex is just a skeleton file for BibDesk to call LaTeX. \documentclass[letterpaper]{article} %% I cut details \begin{document} \nocite{<<CiteKeys>>} % <<CiteKeys>> is replaced by the selected entries' keys \bibliography{<<File>>} % <<File>> by the path to ...


3

The question mark usually indicates an unresolved reference. I suppose you added the bibtex database to your document like this: Select "Insert" --> "List / TOC" --> "BibTex Bibliography..." from the menu In the dialogue box click on "Add..." Click "Browse..." Select the file you want (in this case: test.bib) Now, don't forget to confirm the dialogue ...


3

Because the \addbibresource command in biblatex can in fact open other types of resources than .bib files (most notably, URLs, and experimentally RIS, and some XML formats), the file extension .bib is required. This is quite different from the \bibliography command (which it replaced) in which the extension was implicit. So the solution to your problem ...


3

Look in BibDesk's "Fields" preference pane. There's a "PDF Viewer" popup button that (regrettably) should do what you want.


3

You can't edit the Minimal BiBTeX template directly, but you can make your own template and then choose that when you export or copy items. To do this, create a plain text file with minimal-URL.txt with the following content: <$publications> @<$pubType/>{<$citeKey/>, <$requiredFields> <$name/> = <$bibTeXString/>, <...


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