Tag Info

Hot answers tagged

24

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. So BibTeX styles are designed to work 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 ...


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

Yes and no. You can create your own bibliography manually: \begin{thebibliography}{xx} \bibitem{abc} \textsc{Author}, \textit{Title}, ... ... \end{thebibliography} However, this lacks consistency through automation as well as ease-of-maintenance. A far better alternative to handling a bibliography "within the same file" would be to embed it 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

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


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

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


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

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

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


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

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


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

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


8

Here is the ieeetran.bst There are no required fields, and the accepted fields authors, date, title, howpublished, organization, address, note and url. Your actual .bib entry might look something like this: @electronic{website2013, authors = "Smith, John", title = "Webpage Title", url = "http://link.com" } Relevant information from the ...


8

Such kind of errors usually depends on otherwise invisible characters. Proceed with method and try isolating the problem; in this case the message appears twice and in both instances the error message tells you that TeX is reading Fair division and collective welfare‏}} which evidently comes from the .bbl file and the bibliography item you report. So go ...


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 cause of the problem is a faulty instruction in the bst file. Make a copy of fom.bst and edit the copy as follows: in the function format.names.author, find the string "{vv}{ll, }{f.}" and replace it with "{vv~}{ll}{, f.}" That way, a comma will be inserted after the last-name component only if the author's name contains a first-name component as ...


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


7

Add \nocite{} commands in the table order at the start of the document. \documentclass{article} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @conference{Smaili:2011aa, Author = {Smaili, Hafid and Breeman, Jan and Lombaerts, Thomas and Stroosma, Olaf}, Booktitle = {4th European Conference for Aerospace Sciences}, Title = {{A} ...


7

Standard bibtex styles cover only one type of ISBN (it does not matter if you use the 13 or 10 digit format). With biblatex you can create new fields for bibtex entries, let us say ISBN13 and ISBN10. Then all you have to do is redefine how the isbn field is printed, e.g., \DeclareFieldFormat{isbn}{\textsc{isbn}~\printfield{isbn13}} or you can create ...


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


7

Don't delete, just rename the key, i.e. ISSN -> OPTISSN. Then the data is still there but is ignored by bibtex as it does not know OPTISSN


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

If you are writing in German - or are not too fond of sentence case (in its English meaning, that is capitalisation of the first letter of the sentence, and only that) anyway - you might want to "turn off" the conversion by \DeclareFieldFormat{apacase}{#1} in the preamble. If you just have the occasional German entry, or prefer English sentence case, save ...


7

You can use m column specifier for the last cell in last row. \documentclass{article} \usepackage{array} %% you need this \begin{document} \begin{table}[!htbp] \centering \caption{Spanish Traffic Sign according to the color and shape \cite{Paper12}} \begin{tabular}{|>{\raggedright}p{3.1cm}|>{\raggedright}p{3.1cm}|> ...


7

Winedt offers this functionality. You type \cite{} then this window opens: where you can search the entries. Upon selecting and clicking Insert you will get \cite{E.L.dasilva2000}.


7

Using the code in the linked answer, this is what you can do. To replace and with & in the bibliography you can simply insert that code inside \AtBeginBibliography: \AtBeginBibliography{% \renewcommand*{\finalnamedelim}{% \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% \addspace\&\space}% } The second request is a bit more ...



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