Tag Info

Hot answers tagged

4

You have two errors in your hack. First, you leave urldate on stack after your if$ statement. This is how you get two dates. You need to use this instance with swap$ instead of putting the third instance of urldate on stack: FUNCTION {format.urldate} { urldate duplicate$ empty$ { pop$ "" } { "~(Accessed: " swap$ * ")" * } if$ } However, if ...


4

The simple solution is to modify the title field in the bib file. Change "Recent advances in physics" to "J. Smith, Recent advances in physics", and so on for each citation. If you want a fix for the general case, you'll need to modify revtex4's .bst file to change the formatting of the output. On my system, Debian Linux with Tex Live, the location of the ...


4

Add \bibliographystyle{abbrv} before \bibliography{testbiblio} full code. I modified little bit. :) \begin{filecontents}{testbiblio.bib} @ARTICLE{one, author = {John Smith}, title = {Recent advances in physics}, journal = {Phys. Rev. D}, year = {2015}, volume = {10}, pages = {123456}, number = {5} } \end{filecontents} ...


4

\documentclass{article} \begin{document} \section{Polka loving Platypus} \cite{companion}\cite{article-full} \bibliographystyle{alpha} \bibliography{xampl, biblatex-examples} \end{document} Running bibtex on the aux file of the first LaTeX run gives us the following The style file: alpha.bst White space in argument---line 5 of file ...


4

texdoc bibtex is the obvious source. This lists all standard types with their required and optional fields (pp. 8-9): article An article from a journal or magazine. Required fields: author, title, journal, year. Optional fields: volume, number, pages, month, note. book A book with an explicit publisher. Required fields: author or editor, ...


3

I assume that your wish to avoid seeing the word "microwave" hyphenated as "mi-crowave" anywhere in the document, not just in the bibliography section. If you want to suppress hyphenation of this word globally, just add the instruction \hyphenation{microwave} in the preamble. (If you load the babel package as well, be sure to insert the instruction ...


3

May be you need this: \def\pkg#1{\textsf{#1}\ixp{#1}~\citex{#1}} \def\citex#1{\expandafter\ifx\csname cit:#1\endcsname\relax \expandafter\gdef\csname cit:#1\endcsname{}% \citep{#1}% \else \nocite{#1}% \fi } The \citex macro tests if the parameter was used before, i.e. if the control sequence \cit:parameter is defined. If not, then ...


2

I added a *-variant that prints the citation anyway, and it doesn't count as the first (maybe you want it in the introduction or later in the document). \begin{filecontents*}{\jobname.bib} @Manual{vcd, title = "vcd: Visualizing Categorical Data", author = "David Meyer and Achim Zeileis and Kurt Hornik", year = "2015", note = ...


2

Try using your commands in reverse order: \usepackage[square,numbers,sort&compress]{natbib} \bibliographystyle{apalike} \bibliography{BachelorBib} I have done in that way and it worked for me. I believe it didn't have anything to do with package which I used. My bibliography style was ieeetr. Just give it a try.


2

I have no idea about texstudio but you have deleted the generated bibliography (bbl) so you need to run in order latex, bibtex, latex, latex, on your document to regenerate it.


2

Here is an attempt at getting a bibliography as described in your post, made with biblatex: \documentclass[firstinits=true]{acm_proc_article-sp} \usepackage{biblatex} \usepackage{filecontents} \usepackage{xpatch} \begin{filecontents}{mybiblio.bib} @ONLINE{ pal:working, URL = "http://opensource.mit.edu/papers/madanmohan.pdf", ORGANIZATION= "{M}{I}{T} ...


2

The basic method to stop hypheantion, entirely (after the macro) is to: \hyphenpenalty=10000 Which basically tells the TeX engine that hyphenation would be really bad, worse than a more ragged line, or stretching words etc. There are others, see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=hyphoff


2

It is possible to create new drivers and new entry fields in biblatex even whithout biber. When the backend is not biber, biblatex uses a special .bst file biblatex.bst to generate the .bbl file, thus one has to modify biblatex.bst. Here is the procedure: 1) locate biblatex.bst and make copy of it and rename the copy (i.e., mybiblatex.bst) and put the ...


1

There is some problem with using achemso when you do not have any citations. If I run \begin{document} \bibliographystyle{achemso} \bibliography{library.bib} \end{document} I get an error. But running \begin{document} \bibliographystyle{plainnat} \bibliography{library.bib} \end{document} or \begin{document} \cite{somebody1990} ...


1

To disable the replacing repeated author, organization, and editor names with long dashes when using the siam bibliography style, you could take the following steps: Find the file siam.bst in your TeX distribution. Make a copy of this file and name the copy, say, siamnodash.bst. (Do not edit an original file from your TeX distribution.) Open siamnodash.bst ...


1

You can create a Makefile or a script to do this. The script can be called from the TexMaker or other editor. At Linux, I use a Makefile for the purpose. I just need to run make and everything is compiled! :) A Makefile or script is useful since you don't need to "stick" with an editor configuration. You can run it also from a terminal, allowing you to ...


1

Academic standards do not require you to cite the typesetting software you composed your dissertation with. It's a tool you used, not an intellectual input to your work. You wouldn't cite the manufacturer of your printer either. Of course the opposite is true if you are writing a dissertation about computer typesetting. Your question though has one more ...


1

The underscore _ is the problem. Normally the underscore is only allowed in math mode to start an index. That is why LaTeX/BibTex reports the error. You should escape the underscore, i.\,e. write \_. BUT, I guess from your question that you are doing somehing fundamentally wrong. Normally, there is the special field url={} that should be used in a bib-file, ...


1

I modified abbrvnat.bst to issue \myand{} instead of and (changing the places where " and " appears). Then prepared this input file: \begin{filecontents*}{\jobname.bib} @book{RefWorks:1, author={John Johnson}, year={2015}, title={Book Name}, publisher={Publishing Company}, address={United States of America}, edition={1st}, ...


1

biblatex's standard styles have no trouble (and no scruple) at all to display a url and urldate for @books or any other entry type. This feature can be turned off via url=off, in which case only @online entries retain their URLs (see ยง3.1.2.2 Style-specific [Preamble Options], p. 55 of the biblatex documentation). Most custom styles available from CTAN ...


1

Won't inserting \raggedrightjust before \printbibliographydo the job?


1

@cfr has provided a list of entry types recognized by BibTeX, along with lists of required and optional field types for each entry typle -- as given by the "basic" bibliography styles -- plain, abbrv, and alpha. The fields, and what BibTeX is supposed to with any given field, are defined by the bibliography style you select. For example, the plain ...


1

I use the browser extension Zotero to export .bib files. It also has the handy feature of downloading and renaming a .pdf of the article for offline if it is available, as well as organizing references into folders, and lots of other time (sanity) saving features. Output for OP article: @article{kaye_special_2014, title = {Special {Issue} on {Science} ...


1

Try deleting all the .aux and .bbl files generated before, leaving only .tex and .bib. Recompile main file first, then compile bibtex. It seems to be like the old thebibliography command generated aux files that are not compatible with \bibliography. If that still doesn't work, double check your .bib using some other tool like JabRef.


1

If you're looking for a solution to the problem rather than an answer to the question (as I understand it), I'd recommend using arara. There's very good integration documentation available in arara's critically-acclaimed manual, chapter 4. Essentially, you place a few lines at the top of your TeX document like this: % arara: pdflatex % arara: bibtex % ...


1

My suggestion is to use BibLaTeX. The BibLaTeX has a @software entry type (is similar to @misc), and a version field: @software{math, author = {{Wolfram Research, Inc.}}, title = {Mathematica 8.0}, url = {https://www.wolfram.com}, version = {0.8}, date = {2010}, }


1

Try \usepackage[hyphens]{url} ... \path {http://www.firstclass.cz/2014/03/odmitl-prodat-googlu-svuj-napad-za-tri-ctvrte-miliardy-ted-na-nem-sam-vydelava/#sthash.JkwV1KGY.nzfkNxcQ.dpbs} Note the "hyphens" option. This usually works fine with the plain old article class.


1

on the assumption that \nocite isn't really needed, this should work: \newcommand{\expkg|[1]{\textsf{#1}\ixp{#1}} \newcommand{\pkg}[1]{\textsf{#1}\ixp{#1} \citep{#1}\expkg{#1}} after all, a single \cite will put an entry in the \.aux file that tells bibtex to identify a matching entry in the .bib file and create an equivalent entry in the .bbl file -- ...


1

The astron style worked for me.


1

Google provide a service (scholar.google.com) which provide BibTeX information, it is not perfect, but improves with time. first look for the reference, then click the link cite ask for BibTeX format. You can configure your account to give the BibTeX format as default. Hope it could help you.



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