Tag Info

Hot answers tagged

20

The loss of capitalization is by design: BibTeX does this because some, but not all citation styles require capitalization in titles (a.k.a. "title case"); other styles use ordinary case. BibTeX's approach works as follows: You must write the title in the capitalized form, and your bst style either keeps it this way or converts it to lower case. Lower-casing ...


16

If you need the bibliography sorted in order of appearance, use \bibliographystyle{unsrt} because the plain bib style sorts alphabetically by author. As an aside: your bib entries are wrong. Authors should be separated by and rather than commas: @article{ GatorTechSmartHouse, Author = {S. Helal and W. Mann and H. El-Zabadani and J. King and Y. ...


12

biblatex has a number of counters which when set to non-zero positive values less than 10000 allow breaks in urls in the bibliography. The specific counters are biburlnumpenalty biburlucpenalty biburllcpenalty for breaks after numbers, uppercase letters and lowercase letters, respectively. In your case it suffices to set the lowercase penalty to 9000; ...


12

If you're using the natbib package, a possessive citation command should behave very much like the textual citation command \citet. This can be done by altering the name formatting command \NAT@nmfmt in the definition for \citet. One catch with this approach is that numeric styles don't apply \NAT@nmfmt, but you can make them do so by patching \NAT@test via ...


11

that is hardcoded in the bst file, Copy it to myapj.bst and replace FUNCTION {bbl.and} { "and"} with FUNCTION {bbl.and} { "\&"} and use in your document \bibliographystyle{myapj.bst}. The file myapj.bst can be saved in the documents directory or in your local bibtex/bst path, if available. As an alternative use another harvard style like ...


10

The biblatex way is to use origdate, but the default styles do not support origdate awfully well. You might like the following redefinitions. This will work for the standard mergedate=compact option of biblatex, it also seems to require biber. We just add a macro to print the origyear, if defined, in citations and the bibliography. ...


10

Probably not the most efficient way to do this (I'm new to biblatex), but it works \documentclass{beamer} \usepackage[backend=bibtex, style=authoryear-comp]{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @Article{Kennedy01, author = {Kennedy, Marc C. and O'Hagan, Anthony}, title = {Bayesian calibration of computer ...


10

Use a space Especially in math mode both {\foo} and \foo{} will have an adverse effect on spacing, and as you comment surrounding the command may negate it altogether, for example {\small} does nothing as the font change is discarded at the }.


9

The @collection entry seems to be exactly what you want. The BibLaTeX documentation says: A single-volume collection with multiple, self-contained contributions by distinct authors which have their own title. The work as a whole has no overall author but it will usually have an editor. @book is not the most appropriate choice here because BibLaTeX ...


9

You can use biber to do this. On a command line type biber --tool --output_encoding=UTF-8 myfile.bib For myfile.bib containing: @Article{Schroeder:Na, author = {Schr{\"o}der, M.}, title = {Na{\"i}ve construction of hyper{K\"ahler} metrics}, journal = {{\'E}c. Norm. Sup.}, year = 2000 } you will get an output file myfile_bibertool.bib ...


9

Typically such names are listed with the real name (i.e. in this case, Strutt). With an alphabetic style, however, you can have the best of both worlds, I suppose, by using the commonly known name as the citation label. Here's how to do this in biblatex. Doing it in natbib is probably not possible without a lot of work. The biblatex package has a field ...


9

Many BibTeX bibliography style files employ sentence style to render the contents of the title field of entries of type @article, @techreport, and @misc, i.e., they turn uppercase letters (except the very first letter) into lowercase letters. You can prevent this by enclosing the words in question (and even the entire title field) inside an extra pair of ...


9

while this is not clearly documented in the "usual" places, in "guide to latex" by kopka & daly, it is stated in section 12.2.4, regarding names, that Anything enclosed in braces will be treated as a single item, something that is used in ambiguous cases, or when the name contains a comma or the word and. An example is "{Harvey and Sons, Ltd}" ...


8

grep URL /usr/local/texlive/2013/texmf-dist/tex/latex/custom-bib/* reveals "\providecommand{\urlprefix}{URL }" so you just need to define \urlprefix to anything else (eg {}) then if it has a definition \providecommand does not redefine it.


8

Another biblatex solution. As basis we take biblatex's numeric with maxnames=2 \usepackage[style=numeric,maxnames=2]{biblatex} We define our short bibliography driver std that prints only the author/editor, title and date \DeclareBibliographyDriver{std}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% ...


8

The solution for you is to use biblatex and biber's sourcemap features. Add the following code snippet to your preamble. \DeclareSourcemap{ \maps[datatype=bibtex]{ \map{ \step[fieldsource=url, match=\regexp{http://(dx.doi.org/|dl.acm.org/)}, final] \step[fieldset=url, null] \step[fieldset=urldate, null] } } } You can extend ...


8

I have some .bib files, some of them have 1000 lines. To be sure that they are working well I always use this test MWE (package filecontent and sample .bib file added only for a running MWE; delete it and use your own .bib file please): \RequirePackage{filecontents} % loading package filecontents % writing file \jobname.bib, for example ...


8

The input conventions of BibTeX are rather strict; multiple authors must be separated by the and keyword: author={Alpher, Ralph and Bethe, Hans and Gamow, George} or, if you want to keep only initials, author={Alpher, R. and Bethe, H. and Gamow, G.} If you want only the first author and automatically add et. al. in the bibliography, use the others ...


8

Standard LaTeX writes the data of \bibitem via \immediate\write into the .aux file. This allows putting the bilbiography in a box that is never used: \documentclass{article} \begin{document} Hello World \cite{foobar}. \begin{lrbox}{0} \begin{minipage}{\textwidth} \begin{thebibliography}{9} \bibitem{foobar} Foo bar. \end{thebibliography} \end{minipage} ...


8

BibTeX does accept year ranges, but then you have to enclose them in curly brackets. Tested with @misc{yearrange, author = {F. Bar}, title = {Some title}, year = {2011--2013}, } and \documentclass{article} \begin{document} \cite{yearrange} \bibliographystyle{plain} \bibliography{test} \end{document} The year range is uncommon, but allowed in ...


8

Try the biber option --tool-resolve. This resolves crossref/xref and xdata. To reverse the standard biblatex mappings you mention (which are implemented in biblatex.def using the standard macros in the documentation), copy the standard mappings to your preamble and edit as necessary to reverse them: \DeclareSourcemap[datatype=bibtex]{ \map{ ...


8

Given that you've found the source of your error, I'll try to explain you where to put your bibliography file so to let BibTeX find your bibliography. Put your bibfile.bib in the same directory where your .tex file is. Leave your bibfile.bib in the directory "C:\filelocation" and call BibTeX in this way (assuming that your .tex file is test.tex) bibtex ...


7

Say \renewcommand{\bibsection}{} after \usepackage{rsc}. See section 2.12 of the manual of natbib. The list of references normally appears as a \section* or \chapter*, depending on the main class. If one wants to redesign one’s own heading, say as a numbered section with \section, then \bibsection may be redefined by the user accordingly. ...


7

Instead of \cite{hendrickson_resource_2000}, perhaps you could try \citep{hendrickson_resource_2000}? See https://groups.google.com/d/msg/pandoc-discuss/wSdhT4GxEog/1vDHtEOwfUYJ for some possibly related info.


7

Don't make BibTeX see the hyphen: \begin{filecontents*}{\jobname.bib} @inbook{x, author={A. Uthor}, title={A chapter}, booktitle={A book}, publisher={Publisher}, year={2012}, pages={3\pagehyphen5}, } \end{filecontents*} \documentclass{article} \usepackage{natbib} \newcommand{\pagehyphen}{-} \begin{document} \cite{x} \bibliographystyle{plainnat} ...


7

The memoir class enforces the use of proper font commands. The old two-letter commands such as \bf and \it, \sc, etc. are problematic and now very old. See Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX? Unfortunately, many older bibliography styles still use the old font commands, and since their code is not trivial ...


7

Add these lines to the preamble: \usepackage{etoolbox} \patchcmd{\thebibliography}{\section*{\refname}}{}{}{} A complete example: \begin{filecontents*}{aaaaabbbbbb.bib} @misc{test, title= "The title", howpublished= "Publisher" } \end{filecontents*} \documentclass{IEEEtran} \usepackage{etoolbox} \patchcmd{\thebibliography}{\section*{\refname}}{}{}{} ...


7

You need little help from the package url as mentioned by bombcar. \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{mybib.bib} @booklet{NaveDP, author = {Nave}, title = {{Law of Dulong and Petit}}, %% note extra pair of braces year = {2014}, howpublished = {\url{http://hyperphysics.phy-astr.gsu.edu/hbase/thermo/dulong.html}}, ...


7

Using biblatex, you can use the option isbn=false (or url, doi or eprint), to be given in the preamble package option. If there are other fields you'd like to suppress, you can use the commands \AtEveryCitekey{{\clearfield{month}} \AtEveryBibitem{{\clearfield{note}} to remove the chosen fields from citations (useful for the verbose citation styles) and ...


7

this should really be a comment, but it's too long. the bibtex manual (texdoc bibtex) contains this statement on p.7: The PROCEEDINGS and INPROCEEDINGS entry types now use the address field to tell where a conference was held, rather than to give the address of the publisher or organization. If you want to include the publisher's or ...



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