Tag Info

New answers tagged

1

So long as you don't have special characters such as \ss or \i in the author names, this should work without requiring changing .bst files. \begin{filecontents*}{\jobname.bib} @BOOK{Campbell(1996), AUTHOR = {J. Y. Campbell and A. W. Lo and A. C. MacKinlay}, TITLE = {The econometrics of financial markets}, PUBLISHER = {Princeton University ...


3

\documentclass{article} \usepackage{harvard} \citationmode{abbr} \citationstyle{dcu} \bibliographystyle{xdcu} \newcommand\HARVARDAND{\harvardand} \begin{document} A \citeasnoun{Campbell(1996)} B \cite{Hamilton(1994)} \bibliography{tst} \end{document} xdcu.bst is a copy of dcu.bst with "u" change.case$ added in some likely looking places (I ...


2

I walked around my question with the following steps. It is not a clear tex solution, may be not suppose to be here, but in any way it is working. I tried to use with perltex, got some interesting errors. My Solution Preparation I prepare a perl script, to find desired reference and information belongs to that one, parsed into a variables, ...


3

Insert the author as author = {Hu, Xiao{-}Yu}, so the hyphen will be hidden and not mistaken for a compound name marker à la French (Jean-Claude or similar). For the URL, load also \usepackage{url}. Example (with filecontents* just to make it selfcontained, use your separate file). \begin{filecontents*}{\jobname.bib} @electronic{something, title = ...


2

You asked: How do I best modify the BibTeX to show more fields? Don't modify BibTeX. Instead, modify the entry. E.g., you could move the material in the city, country, and isbn fields to a field called note, as the ieeetr bibliography style recognizes the note field type and will typeset its contents. (The ieeetr style does not recognize fields named ...


2

I also use note field. For example, I put this information in the note field: [arXiv preprint \href{http://arxiv.org/abs/1409.0876}{arXiv:1409.0876}, September 2014] And, then I use either one of the following redefinitions of \href: \def\href#1#2{#1 #2} or \def\href#1#2{#2} The first definition keeps the url (without any actual hyper-link), while ...


1

You can add entries to Mendeley manually by File > Add Entry Manually. This opens a pop-up, where you can choose the entry type (e.g. Web Page, Generic, Bill, Journal Article, etc.). Once you have typed in what information you want, click Save. The entry will now figure as any other Mendeley entry, and will also be present in your generated .bib file. ...


1

In Document»Settings»Bibliography choose the Default (numerical) bibliography style. And then go to Latex preamble section and write this code: \bibliographystyle{unsrtnat} \usepackage[numbers,sort&compress]{natbib} This worked for me, it should work for you too.


12

Documentation: You can find the documentation for bibliographies here: bibmod-doc A new implementation is currently in beta. You can find the documentation for it here: mkiv-publications From BibTeX to ConTeXt MKVI Some examples: These citation styles seem to work out of the box: (Author, YYYY) \cite[alternative=authoryears][author2001] Author ...


2

You can prevent notes to be printed in (full) citations by "clearing" the content of the how the note at every citation. This can be done with the \AtEveryCitekey hook (the bibliographic data is available at \AtEveryCitekey but not at \AtEveryCite) \AtEveryCitekey{\clearfield{note}} Given the example, a better solution would be to use the url and urldate ...


1

I was getting this problem with a custom-generated bibliography style (using Patrick Daly's custom-bib generator, merlin.mbs). The solution (pointed out to me very helpfully by Patrick) is to generate a style using author-year citations, but use the "numbers" option in the LaTeX document, i.e. in the .dbj file produced by merlin.mbs, uncomment the line ...


1

Here's something quick-and-dirty I did (in standard Bibtex) in order to cite a special issue and it produced a result that was good for my purposes. @book{JPhysABell2014, title = {Special issue on 50 years of {B}ell's theorem}, author = {Journal of Physics A: Mathematical and Theoretical}, volume = {47(42)}, month = {October}, ...


0

I resolved the problem, it was the fault of my use of the apalike package \usepackage{apalike}, once I've removed it, it works very well.


2

The following works: \documentclass{elsarticle} \bibliographystyle{model1-num-names} \usepackage{filecontents} \begin{filecontents*}{mybib.bib} @article{PGW-2010, author = {A.Padmanabhan and S.Ghosh and S.Wang}, journal = {J Grid Computing}, pages = {365-389}, publisher = {Springer}, title = {A Self-Organized grouping SOG ...


5

The cite format you are looking for ist called authoryear. You can set it as an option: \cite[alternative=authoryear][Willows1995] Or you can set it as the default style for \cite using the refcommand-option: \setuppublications [refcommand=authoryear]


3

Just as an answer so the item can be closed. Since the OP use the natbib package, a comment above the bibliography can be added via \renewcommand\bibpreamble{Here is my note}


0

I finally managed to get a solution for this. I used a slightly modified .bst file "apalike-url" instead of "apalike" as mentioned here.


3

One usually does this using the optional argument to \cite. \documentclass{IEEEtran} \begin{document} \cite[equation 1]{Andrews99} \bibliography{test} \bibliographystyle{IEEEtran} \end{document} Contents of test.bib: @book{Andrews99, author ="Andrews, G. E. and Askey, R. and Roy, R.", title ="Special Functions", publisher="Cambridge University Press", ...


0

Since the apalike bibliography style is meant to generate authoryear-style citation callouts, the designer of the style file apparently didn't anticipate that there would be entries (of type @misc, say) that do not have a year field. Here's a simple work-around: Load the natbib package, and use that package's instruction \citeauthor{url-1} instead of ...


4

To get the bibliography, you need to run BibTeX. Example for a calling sequence: pdflatex test bibtex test pdflatex test pdflatex test The BibTeX run will fail because of two problems: $ bibtex test This is BibTeX, Version 0.99d (TeX Live 2014) The top-level auxiliary file: test.aux I couldn't open style file te.bst ---line 3 of file test.aux : ...


2

The recently developed Bibulous package, replacing BibTeX's style files with easy-to-structure templates, deals with multiple languages easily and can provide the OOP's requested behavior. Using the following .tex file \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} % russian requires T2A ...


0

You could use biblatex-apa and its online entry type. If there is no year, it adds (n.d.) (no date) after the title, but that can be removed with a small patch if you don't want it. \documentclass{article} \usepackage[style=apa]{biblatex} \usepackage[american]{babel} \DeclareLanguageMapping{american}{american-apa} \usepackage{filecontents}% ...


2

I use \hyp{} from the hyphenat package and have Biber replace all hyphens in the author field with it. Put this in your preamble: \usepackage{hyphenat} \DeclareSourcemap{ \maps[datatype = bibtex]{ \map{ \step[fieldsource = author, match = \regexp{-}, replace = \regexp{\{\\hyp\{\}\}}] } } } For some reason, Biber started to include ...


5

\documentclass{article} \usepackage{natbib} \usepackage{color} \bibliographystyle{apalike} \makeatletter \let\oldcitation\citation \def\citation#1{% \global\@namedef{ZZ#1}{}% \oldcitation{#1}} \let\oldbibitem\bibitem \let\bibcolor\relax \renewcommand\bibitem[2][]{% \expandafter\ifx\csname ZZ#2\endcsname\relax \color{red}% \else \color{black}% \fi ...


5

I'd treat it with the catch all @misc entry: \documentclass{article}% no page break before bibliography \usepackage{natbib} \usepackage{url} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @misc{eu-269-2014, author={{Council of European Union}}, title={Council regulation ({EU}) no 269/2014}, year={2014}, ...


4

Since you haven't posted the actual bib entries, it's not possible to be entirely certain in diagnosing what's going on. My strong suspicion, though, is that you have too many commas in the author fields of the entries numbered 2 and 3 in your example. In an author field, you must use the keyword and to separate authors. Use commas only if you need (or wish) ...


1

I've converted your code snippets into a compilable document (see below). (You were missing a few commas separating surnames from given names, by the way.) The ordering of the four entries performed by the natdin style is entirely standard: The sorting is done first by authors and only then by year. That's why the two solo-authored pieces by Morgenstern, ...


2

If biblatex/biber is an option, you can use biber to generate a document-specific .bib file. All you need is a document using biblatex compiled to generate the usual .bcf which biblatex/biber uses. Then you can run: biber --output_format=bibtex --output_resolve <filename>.bcf where <filename> is the name of your <filename>.tex.


2

This is a supplement to pavel's answer which aims to address an issue raised in the comments. It is therefore a more specific solution than the one there: the simpler command will work fine if you don't need to resolve crossref fields in .bib entries. In order to resolve crossref fields in a .bib file when using biblatex/biber, you need to tell biber what ...


2

jabref can do this in both command line and gui modes. First gui mode: Keep your master.bib file open in jabref. Then in Tools → New subdatase based on AUX file to get Here select the .aux file, click parse, and select and the generate. You should get a sub database opened in jabref. Save it. From command line, assuming that you take care of paths do ...


2

If you don't mind installing jabref, it can do it for you. Both command line (link here) and gui options are available. From command line do jabref.jar -a filename[.aux],newBibFile[.bib] You should be done. Take care that jabref.jar is in system path, and run this command from the same folder as your .aux file.


1

When you specify a PDF output file, pandoc will run pdflatex or xelatex for you to create it. However, pandoc does not attempt to run bibtex or biber. So, if you want to use native latex citations, you should first produce a tex file: pandoc -s --template=template.latex -f markdown+raw_tex draft2.md -o final.tex Then, pdflatex final.tex bibtex ...


0

Here is a way of obtaining what you want with biblatex-apa and some patches: \documentclass{article} \usepackage[style=apa]{biblatex} \usepackage[american]{babel} \DeclareLanguageMapping{american}{american-apa} \usepackage{filecontents}% \begin{filecontents*}{apabibli1.bib} @article{Sampson1989, author = {Sampson, R J and Groves, W B}, year = {1989}, title ...


0

You have to run bibtex on all aux files. This means you have to run bibtex on cv2 as well as pre, peer, conf and talk. The multibib manual (you can read id running textbook multibib from the command line) clearly specify this (section 1.2). The manual also gives instructions on how to generate a script (bash) file to run it on all files


5

Basically, the syntax for an entry in a .bib file is @ENTRY{<key>, <field1> = {<data>}, <field2> = {<data>}, <field3> = {<data>}, <field4> = {<data>}, ... <fieldn> = {<data>}, } If the ENTRY type for key is not defined in the .bst file in use, BibTeX will issue a warning such as ...


0

Assuming you have no truly odd characters in the year field, i.e., if the field contains just digits and the occasional / ("slash") character, it suffices to change the line year field.or.null purify$ #-1 #4 substring$ in the file apalike.bst to year field.or.null #-1 #14 substring$ Actually, you should make this change to a copy of the file ...


4

Let us assume you have the following files/setup: mybibstyle.bst mybibliography.bib Create a file myfile.aux containing the following: \relax \citation{*} \bibstyle{mybibstyle} \bibdata{mybibliography} This is literally the output from compiling the following minimal example: \documentclass{article} \begin{document} \nocite{*} ...


3

The standard BibTeX styles do not support the field url or similar. If you need to include urls, you need to use a style which supports them. The urlbst package provides a way of converting a BibTeX style file into one which supports such fields. In particular, it provides pre-converted versions of the standard BibTeX styles. For example, ...


0

I had the same problem, and ultimately the following worked for me, seemingly also to be the simplest solution (in a hosted environment where I could not alter bib styles): \usepackage[square,sort,comma,numbers]{natbib} \usepackage{url} \usepackage{hyperref} ... \bibliographystyle{plainnat} \bibliography{my_bib} citing as: \cite{Bacon:2000} with a ...


2

You asked, [How] can [I] configure this, without resort to manually modify the .bst file? I'm afraid the IEEEtran bibliography style doesn't provide switches and macros that can be redefined "on the fly" from within your TeX document. Fortunately, the required edits to the bst file aren't difficult to undertake, in no small part because the ...


1

After some more experiments and reading documentation I am pretty sure there is no way to avoid creating an intermediate Latex file if one wants to use native Latex citation and bibliography power. The reason is with Pandoc we can apparently use one of two possible techniques to produce bibliographic references: Either CSL files (with the --csl setting) or ...


0

I strongly recommend keeping your .bib file in a version control system, regardless. However, BibDesk will not automatically add/remove fields, unless you tell it to. As far as I can recall, the only fields it might modify are the file links, which have a Bdsk- prefix. BibDesk's file links are pretty robust, and they're also private to BibDesk; as far as I ...


1

Basically a white paper is a technical report. At www.cse.msu.edu you will find this example: @TECHREPORT{MSU-CSE-06-2, AUTHOR = {R. Behrends and L. K. Dillon and S. D. Fleming and R. E. K. Stirewalt}, TITLE = {White paper: Programming according to the fences and gates model for developing assured, secure ...


1

I suggest you use the catch-all @misc entry type for this case, and use only two fields: author and note. (Most bibliography styles have no required fields for entries of type @misc; in particular, the year field isn't required for this entry type.) By placing double curly braces around "Detroit Gazette", you inform BibTeX that it's a "corporate author" ...


4

Mostly, it is used to allow for searching or sorting based on, surprisingly, key words. That way, if an article deals with a concept which is not part of the title, abstract, etc, you can add the key word and then it will appear in searches in your reference manager. In your case JabRef. Frequently, the field is populated already in on-line databases. You ...


0

There is now a plugin to complete citation tags for asciidoc documents. vim-autocite


5

The abbvrnat style hard codes the string and as separator between the second-to-last and the last name. Thus, if one is happy with the way abbrvnat formats the bibliography the solution is to modify the style (the alternative is to use makebst to create a new bib style with the desired properties). The procedure is as follows: Make a copy of ...


0

with this patch [1] for IEEEtranN.bst the urldate entry will be shown with ieeeTran 1.8a don't forget to update your tex installation with texconfig-sys rehash hopefully it's in the next release [1] http://pastebin.com/fqSS9fRX


1

Both Gates, Henry Louis, Jr. and Gates, Jr., Henry Louis are entirely acceptable, in the sense that there's no possibility for confusion over what the various parts of the name are. The first form may be a bit more common than the second form, but there's obviously nothing "wrong" with either form. Incidentally, the makebst utility, which lets ...


1

I have solved this issue by using: \bibliographystyle{apalike} References now display exactly how I need them too.



Top 50 recent answers are included