New answers tagged

0

So, as explained in this post, one should not put a bibliographystyle entry if one wants BibTeX to compute correctly the longbibliography option. Then a working example of the long bibliography option is as follow: \documentclass[aps,rmp,12pt,tightenlines,longbibliography]{revtex4-1} \begin{document} \cite{AuthorXXXX} %\FAULTY LINE ...


0

You can add a key field that's used for sorting: @Misc{ref1, key = {aaa}, Title = {\href{http://www.ref1.com}{aaa}} } @Misc{ref2, key = {ccc}, Title = {\href{http://www.ref2.com}{ccc}} } @Misc{ref3, key = {bbb}, Title = {\href{http://ref3.com}{bbb}} } Here's a full example, with filecontents* just for making it self-contained. ...


0

So for some reason, if I include a year year: {xxxx} It works. Otherwise, it doesn't... This was the cause... \RequirePackage[square, sort, numbers, authoryear]{natbib} Thanks for all the comments/answers.


0

Try enclosing the number and the volume in {} as also suggested in comments. Also, unrelated, the title likely has a typo. Should be: "A life in astrophysics. Selected papers of Viktor A. Ambartsumian"


2

If you look at the log file of the failed preview you it should tell you what the source of the error is. Depending on how you are producing the preview it may be that the command you've put in the preamble is already defined. I'm using natbib and apalike to preview, and I got the following error: ! LaTeX Error: Command \SortNoop already defined. ...


2

\nocite{TitlesOn}, as written in line 27 of jbact.bst % TITLES can be turned on and off! % Just nocite the reference TitlesOn in the paper (i.e. \nocite{TitlesOn}) % and have a bibliography article in your database with that cite key! % Without titles is Journal of Molecular Biology; % With titles is Journal of Theoretical Biology. Note: An ...


0

First important thing to know: The syntax of bst files is based on Polish notation. After knowing this, I understood the syntax. The code extract which I posted in the question is just declaration and initialization of the init states. If you want to customize a specific entry type, the right place for changes is further down in the dinat.bst file, where ...


1

\usepackage{rsc} provides the \bibliographystyles{rsc} and {angew}. The latter is what you are looking for (except for removing the page range; this you may have to hard-edit in your .bib file)


2

The .bib key must not contain spaces, and the opening brace of the year in your .bib file was not followed by a closing brace. With this file @book{Fluid_Mechanics_Seventh_Edition, author = {Frank M. White}, title = {Fluid Mechanics, Seventh Edition}, year = {2011}, publisher = {McGraw-Hill} } and a ...


1

This can be done with a bit of modification of the cite macro (we assume authoyear-ibid here) \renewbibmacro*{cite}{% \global\boolfalse{cbx:loccit}% \iffieldundef{shorthand} {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} {\usebibmacro{cite:ibid}} {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}} ...


3

Both citation call-out formats are examples of author-year style. The first, (Nordborg et al., 1996b) is called "parenthetic" citation call-out style. With natbib, it's produced with \citep{<key>} The second call-out style, viz., Nordborg et al. (1996b), is known as a "textual" style; with natbib it's generated via ...


1

I can reproduce the faulty output if I have \usepackage[applemac]{inputenc} in my document. \begin{filecontents*}{\jobname.bib} @article{Hereford2009, author = {Hereford, Joe}, doi = {10.1086/597611}, file = {:Users/remi/Documents/Biologie/Literature/BackgroundSelection/597611.pdf:pdf}, issn = {0003-0147}, journal = {The American Naturalist}, keywords = ...


3

The dash character in the line title = {{A Quantitative Survey of Local Adaptation and Fitness Trade‐Offs}}, is indeed not a "simple" dash (ASCII code 45), but a unicode-encoded character (code U+2010). Observe that this is a LaTeX issue, not a BibTeX issue. You can do several things. E.g., Do a global search of ‐ (U+2010) and replace all instances ...


2

I suggest you use the special type @inreference that is specifically for dictionaries and encyclopaedias. @inreference{BAR60, Author={Foo Bar}, Title={Baz}, Year={1960}, Booktitle={Encyclopaedia of Everything} } Then you can just do \DeclareFieldFormat[inreference]{title}{\printtext{s.v.}\addspace\mkbibquote{#1\isdot}} to automatically add the ...


0

With biblatex your MWE should look like this and should provide your requests out of the box (cf. here): \documentclass[a4paper,11pt,Times]{article} \usepackage[english]{babel} \usepackage[a4paper]{geometry} \usepackage{csquotes} \usepackage[style=authoryear]{biblatex} \addbibresource{bibliography.bib} \begin{document} The first reference is ...


2

biblatex-apa requires Biber from version 4.5. Page 2 of the manual states: 4.5 biber is now required. This is because APA style needs a custom sorting scheme and only biber supports this. bibtex support is going away in biblatex eventually anyway so it’s best to switch.


1

Your MWE is of no use since we do not have the contents of your *.bib file. My guess would be that you need to switch your bibliography parser to 'biber'. Does your MWE work with the following adjustments? \usepackage[bibstyle=authoryear,citestyle=authoryearbrak,backend=bibtex]{biblatex} If yes, you should change the bibliography tool of your editor to ...


3

You can automate the choice of length with the following code \newcounter{mymaxcitenames} \AtBeginDocument{% \setcounter{mymaxcitenames}{\value{maxnames}}% } \newlength{\citelabelwidth} \defbibenvironment{bibliography} {\list {\begingroup\defcounter{maxnames}{\value{mymaxcitenames}}\usebibmacro{cite}\endgroup} ...


0

If you want to avoid using natbib and biblatex (sometimes I have compilation issues with these packages), you can simple use the abstract style, as it uses they bibtex keys as cite keys. This was pointed out by this answer. Alternatively, this is also addressed by this alternative_answer, however it involves more steps: 1) download this style: ...


0

Posting answer from comments. The citation key bibl:sebi_01 had to be set to sebi_01 and pdflatex invoked instead of latex in the order: pdflatex cv bibtex cv pdflatex cv


0

As @Evpoc wrote in the comments, Sharelatex supports biber for quite some time now. However, I several times still received that error message. I found that changing \addbibresource{ref.bib} to \addbibresource{ref}, compiling, changing it back and compiling again resolves the problem. I suspect it is caused by some temporary files of biber that Sharelatex ...


1

As Bernard mentioned already, maxnames is a command which should solve your issue. Here's a thread with a full example. NOTE: maxnames is the setting to change this behavior in your entire document whereas maxbibnames only refer to the bibliography. Hope this helps.


3

In my opinion it is not a good idea to put bib labels in the right margin: You are forcing the reader to go to the right margin find the label and then back the whole line. But if you want ... \documentclass[12pt, twoside]{scrbook} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{marginnote} \usepackage{ragged2e} \usepackage[english]{babel} ...


2

\setcounter{enumiv}{9} would work if the the \thebibliography wouldn't apply \usecounter{enumiv} which in turn resets the enumiv counter. From article.cls \newenvironment{thebibliography}[1] {\section*{\refname}% \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}% \list{\@biblabel{\@arabic\c@enumiv}}% ...


2

The following solution uses the Biber back-end because we need to create a new field (indexname). Analogue to shortname and sortname our new field is called indexname. First we need to make the new field known to Biber and biblatex. Create a .dbx file with the following contents \DeclareDatamodelFields[type=list, datatype=name]{indexname} ...


2

In addition to loading natbib (before multibib), you may also want to edit the @misc-type entries a bit to take better advantage of the fact that you're using the plainnat bibliography type. \RequirePackage{filecontents} \begin{filecontents}{biblio.bib} @incollection{Akallabeth, author = "Tolkien, John Ronald Reuel", title = ...


1

JabRef provides an integration with TeXStudio, so you can push citations directly into TeXStudio. Just select TeXStudio in the toolbar as the external application and then you can push the currently selected entry as \cite{key} to TeXStudio.


1

The procedure suggested by @framerius works, but requires a little hack. I will summarize his answer here as well, for completeness. The issue is that bibtex ability to write to $TEXMFOUTPUT is restricted to avoid file overwriting and the bibtex command returns an error message bibtex: Not writing to $TEXMFOUTPUT/src.blg (openout_any = p). Open the file ...


-1

I had a similar issue where I was using the inbook template for webpages. To get the format of the reference to appear correctly I had put {[Accessed 22 January 2016]} in the year field. I was referencing two webpages from the same website so the overall references were very similar differing only by title and URL. It would compile when I had one of these ...


3

The classic apacite commands have no way of dealing with this case. Instead you should use the natbibapa option of the package, and use the natbib citation commands which provide uppercase initial citation commands such as \Citet which do what you need. From the apacite documentation, p.10: natbib provides a set of commands (e.g., \Citet) that ...


4

Adding uppercase=true should work. \field[strwidth=3,strside=left,ifnames=1,uppercase=true]{labelname} \field[strwidth=1,strside=left,uppercase=true]{labelname} I must comment, however, that this format effectively removes any way to distinguish between a three author work and a single author work, which I don't think is very practical. Here's a working ...


2

Several of the abstract fields (such as the one of kalesanUsesFSS) contain unescaped percentage characters, such as "5.2%". This leads BibTeX to consider the rest of the line as a comment, including the final "}". You may need your replace your "%" by "\%" (not tested).


1

The field author = {{N{\"o}me}, Name}, is malformed, according to the (complex) rules of BibTeX, because it produces the faulty entry \bibitem[{N{\"}}14]{ab_cd_2015} in the .bbl file. Essentially, the inner braces are ignored, so you end up as if the name was N\"ome which would produce almost the same, that is, \bibitem[N\"14]{ab_cd_2015} The ...


2

Here's a version with biblatex, because I find that natbib is really hard to customize. For now, the length is manual (set to 100pt) since this is the first time I've been trying to change biblatex this much and I'm not sure how to set it automatically. Although I doubt you should have longer last names, if they happen, you can just slightly increase that ...


0

Problem Solved. The root cause has been identified with the help from ShareLatex support. ShareLatex does support BibTex; yet it seems not to handle the relative path very well. The file location of my '.tex' is not the same as that of '.bib' and '*.bst'. So, to put them under the same path / folder, the problem can be solved.


1

I use this approach to hyperlink the article title: First, copy IEEEtran.bst to IEEEtranDOI.bst. In the ENTRY field around line 250, add a line like this: dayfiled + doi edition In the FUNCTION {format.article.title} field around line 1400, add a line like this: "title" bibinfo.check + doi empty$ {} { "\href{http://dx.doi.org/" doi * "}{" * ...


1

The package bibentry works under the assumption that each entry in the .bbl file is followed by a blank line and, unfortunately, model1-num-names.bst doesn't respect this convention. Modify a copy of model1-num-names.bst, say model1-num-names+blank.bst in the following way (line numbers added for reference) and place this modified copy in the working ...


0

I get 36 bibliography entries when I compile your example under the unsrt style - that prints numbers 1, [2], ...: \documentclass{article} \begin{document} \nocite{*} \bibliography{BibliographyforpaperFull} \bibliographystyle{unsrt} \end{document} In order to use a citation in your document, use \cite{<bibkey>}, where <bibkey> is the part ...


0

Solved using solution given here: How can I add the bibliography in a report with its own section, including number. \documentclass{report} \usepackage{filecontents} \usepackage{chapterbib} \usepackage[sectionbib]{natbib} \usepackage{etoolbox} %Don't use this %http://tex.stackexchange.com/questions/158871/bibliography-as-section-instead-of-section ...


2

Save it with .bib and compile with latex-bibtex-latex-latex and then take a look at the pdf. Take a look also to the other quesetion. If you need help take a look at these gifs I just made. Create the bib file Compile with latex-bibtex-latex-latex All files can be downloaded here: Google drive link


0

There seem to be two issues here. Firstly, biblatex cannot deal with .bst files; it uses its own system of .bbx, .cbx and .lbx files for style definitions. If you want to use .bst files you will have to resort to classical BibTeX. See for example Switching to biblatex: how to load custom elsarticle-harv.bst style, How to use custom bibstyle with biblatex ...


1

You have \end{document} \section{Bibliography} \bibliographystyle{plainnat} \bibliography{Test} So you end the document early and the bibliography is never input (as can be seen from the log that you posted) \end{document} should be at the end...


1

This is just a modification of @gaurav-bhutani's solution. I created a version of vancouver.bst/vancouver-authoryear.bst which retains various Vancouver specification options (doi flag, order references by appearance, etc) while enabling the following commands; \cite{smith77} produces "[1]" \citep{smith77} produces "[1]" \citet{smith77} produces "Smith ...


1

Don't specify the longnamesfirst option when loading natbib if you don't want the names of all authors shown the first time a multiple-author piece is cited. And, since the ecta bibliography style uses authoryear-style citation callouts surrounded in parentheses, the natbib options round and numberyear are not needed either (although providing them does no ...


2

You should not use \bibliography{bibfile.bib}{} but \bibliography{bibfile}: \documentclass{article} \begin{document} \cite{foo} \bibliography{bibfile} \end{document} During the compilation LaTeX try to add the .bib extension and so it goes wrong. since the file bibfile.bib.bib does not exist.


5

The apacite package (which can be used with natbib) does this automatically. Note however, if both authors also have the same initial, (as originally stated in your question title but not your actual example) it will fail. The proper APA citation form for these is "FirstName LastName (Year)" and in the bibliography "LastName, F. [FirstName] (Year)". The ...


1

Don't use the F1, that's for fast translation only. Use the blue arrow icon just next to it and it will work.


0

Suppose the path of your bibtex file is D:\abc.bib and the path of JabRef is D:\JabRef-3.0.jar, you can generate endnote file D:\abc.enw using the following command on windows: D:\JabRef-3.0.jar -o D:\abc.enw,endnote -n true D:\abc.bib Click here for the reference of the command line options. You can also create a windows batch script (.bat) for ...


5

I don't have GrindEq nor MS Word, but in the compilation of your TeX document a .bbl file is created (after the typical compile-a-few-times steps). This is actually the file which BibTeX converted the database into properly formatted \bibitems. You can make a copy of your TeX file, and in this copy, instead of using the line \bibliography{...}, copy paste ...


2

I'd have expected your bibtex style to stop that, but \mbox{\cite{is}} will stop line breaking (but may also affect the size of word spaces, so isn't ideal).



Top 50 recent answers are included