Tag Info

New answers tagged

0

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}


2

Those references are badly formatted: title={Schemes over {$\mathbb{F}_1$}}, and title={Zeta functions over {$\mathbf{F}_1$}}, should be the right ways. Although I'd use \mathbf for both; check the original papers to see the right formatting. Also the — in the booktitle field should be ---: In the example I use filecontents* so that it is ...


0

You can cite webpages with a code you can see below: @online{WebPage, author = {StackExchange}, howpublished = "<URL: \url{://tex.stackexchange.com/}>. Cited 5.7.2015" } It is always a good thing to mention what is the date you have cited the webpage.


1

natbib in the presence of hyperref uses the url package to format these and that package defines a sans serif style which you can invoke with \urlstyle{sf} For the DOI field, natbib defines the command \doi via something like \providecommand{\doi}[1]{doi: #1} which you can override with \newcommand{\doi}[1]{doi: \url{#1}} ...


1

You could redefine the rm-urlstyle: \documentclass{article} \usepackage{natbib,hyperref} \usepackage{helvet} % helvetica font \renewcommand{\familydefault}{\sfdefault} %\usepackage{sfmath} % helvetica for math mode too \makeatletter \def\url@rmstyle{% \def\UrlFont{\sffamily}} \makeatother \begin{document} test \citet{foo2010} ...


0

Two initials should be two distinct tokens for BibTeX, so you should separate them by a space: @Article{buller1996, Title = {Interpersonal Deception Theory.}, Author = {Buller, D. B. and Burgoon, J. K.}, Journal = {Communication Theory}, Year = {1996}, Number ...


1

Based on the answer given by @daleif in How to delete a full stop on reference ending, I added \newcommand\EatDot[1]{} in the main file and amended the bibliography file to: @article{test1, note = "\href{http://www.blah1.com/}{Title 1}\EatDot", } @article{test2, note = "\href{http://www.blah2.com/}{Title 2}\EatDot", } The output file is: [1] ...


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


0

The solution is concerning the build directory option. You didn't state if you changed the default TexMaker menu -> options -> commands -> "Use a build subdirectory" which is disabled (by default). If you did not change that, then the above @Kate and @R. Schumacher instructions should work for you. The instructions should NOT work for you if you changed ...


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)


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

It's simpler with biblatex, and its url and urlseen fields: \documentclass[a4paper,twoside,11pt]{report} \usepackage[utf8]{inputenc} \usepackage{filecontents} \begin{filecontents}{urltest.bib} @misc{Quora, title = {In optimization, why is Newton's method much faster than gradient descent?}, url = ...


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


1

I have no problem compiling, if I declare Lucida Sans Unicode as main font. I suspect Lucida Sans is a type 1 font, requiring font encoding declaration, &c., which might be the source of the problem. Incidentally, to have nice quotes in your bibliography, load csquotes. Without it, I had hideous fake opening quotes. Also, you may type accented letters ...


1

plain-style sort your entries alphabetically after the name of the first author. In your case, it will be sorted by title.


1

I had the warning after executing Biber. WARN - BibTeX subsystem: warning: comma(s) at end of name (removing) My code was the following: @Book{jur2009, author = {Jurafsky, D, and Martin, J.}, year = 2009, title = {Speech and Language Processing: An Introduction to Natural Language Processing, Speech Recognition, and Computational ...


1

I later realised that I was using the natbib package after all; it was being loaded by my document class. This meant that egreg's solution did not work for me - perhaps natbib does not use the \@cite command that egreg redefined? However, the following, which is obtained by combining Mico and Timm's comments \setcitestyle{notesep={\ }} \let\oldcite\cite ...


1

(This is a compilation of some of the comments I provided when the query was first posted.) Since you're using the plain bibliography style, you could use either the @unpublished entry type or the catch-all @misc entry type for the paper at hand. With either of these two entry types, I suggest you use the note field to provide URL and similar information. ...


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.


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


0

Like the below? I presume you have no objection to using biblatex? The filecontents part is just to generate a bibliography database on the fly. In practice you would put it in a file of its own. \documentclass [12pt]{article} \usepackage[citestyle=numeric, sorting=none] % List citation in order they appear {biblatex} \usepackage{filecontents} ...


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


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


1

If you simply change the bibliography style from alpha to alphadin, you get: I believe this is what you're looking for. \documentclass[11pt]{scrbook} \usepackage{filecontents} \begin{filecontents}{test.bib} @BOOK{Braess2013, title = {Finite Elemente: Theorie, schnelle L{\"o}ser und Anwendungen in der Elastizit{\"a}tstheorie}, publisher = ...


1

All this is automatic with biblatex+\biber: biblatex cooperates with babel, and biber, unlike bibtex, understands utf8, so you can type directly accented letters Note the syntax is diferent than ordinary bibliographies: you declare the bibliographic file(s) in the preamble with \addbibresource{myfile.bib} (with the extension!), and write \printbibliography ...


0

use FUNCTION {format.arxiv} { arxiv empty$ { "" } { "{\url{arXiv:" arxiv * "}}" * } if$ } and, of course, an entry arxiv in the list ENTRY. Then I get: \documentclass{article} \usepackage{filecontents} \usepackage{url} \begin{filecontents*}{\jobname.bib} @unpublished{demo, author="foo", title="bar", arxiv="1234.5678" } ...


0

You can download the file unsrt-phys.bst in the link below: https://drive.google.com/open?id=0B8AqjYFfBKw0dEZXcFN0WEVIN0U&authuser=0 and put it in the folder of your article. Then change the style of bibliography to \bibliographystyle{unsrt-phys}. Run Bibtex, and enjoy it!


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

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


0

This is some kind of hacky solution and I'm not sure whether it's a good idea to do so or not. Experience users, might kindly comment on this. Locate apacite.bst file. In my linux system it is at /usr/share/texlive/texmf-dist/bibtex/bst/apacite/apacite.bst Copy it to your working directory and rename it to something like Myapacite.bst. Open ...


-1

In the Elsevier template, you should use the file generated by TexMaker which ends in .bbl. This file will contain all your references that you added in your article. Just copy the content of this .bbl file and paste it into the .tex article and delete the reference to your bib file. Copy everything including the\begin{thebibliography} and ...


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.


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


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


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


0

You get something like This is BibTeX, Version 0.99d (TeX Live 2015) The top-level auxiliary file: tubby.aux The style file: biblatex.bst Database file #1: tubby-blx.bib Database file #2: tubby.bib I was expecting a `,' or a `}'---line 3 of file tubby.bib : : title = {RFC 3550, RTP: A Transport Protocol for Real-Time Applications} (Error may have ...


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


8

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


0

Another answer which only applies to Beamer: Somehow beamer doesn't like the ' in formulas. That means if I write $t'$ I get the error, whereas $t^\prime$ works. I'm not sure if this only happens under certain conditions -- just mentioning it here since it's another possible source of this error.


0

Here is an example of what can be done with biblatex+biber (one important feature of biber, as compared with bibtex is it understands utf8; hence you may typeset accented letters directly in the .bib file). I took the liberty to change the font package from times, which is obsolete to the much more recent and complete newtxtext, newtxmath, which is based on ...


0

Here is my workflow. Get the DOI of the article to cite. You find the DOI on the download page of the paper and it is also usually printed on the first page of the paper. Paste the DOI into the Jabref search plugin DOI to BibTeX and press "fetch". You will get a "list" of the search results, which is in most cases only one item. Click "OK" to import them. ...


0

It's really difficult to help you without a MWE. However, I recommend you use BibLaTeX (with Biber as backend) instead of BibTex. BibLaTeX provides the citation style numeric, which produces numeric citations, and the bibliography style reading, which prints out an abstract. Sorry, but I don't have time right now to try out the code snippets below, but I ...


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


0

My answer is a variation to Damien's for KDE (4.14): 1) the same - check "Listen for remote operation ..." 2) Go to the KDE System settings > File Assosiations. 3) Create new file type (button "+ Add..." in the bottom): group - text type name - bibliography 4) Select bibliography and in the right part of window "Add...": Filename Patterns: *.ris, ...


0

I figured something out. This isn't very graceful, but it did the trick. I made the counting start with "`" (acute, that is, the previous ASCII character in the table) instead of "a" in FUNCTION {forward.pass}, which now reads like this: FUNCTION {forward.pass} { last.label label = { last.extra.num #1 + 'last.extra.num := last.extra.num ...


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


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


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


0

As it's apparently not possible with Detex here's another approach -- test it on a copy of your data: sed 's/^\([^{]*\){\(.*\)}\([^}]*\)$/\1\2\3/' copy_of_my.bib > another_copy_of_my.bib This uses the Unix/GNU/Linux etc. sed tool to match a whole line (^ matches the start and $ the end) consisting of: A group of 0 or more characters other than ...


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



Top 50 recent answers are included