31 Comments

  1. Tom Payne

    I would like to reference newspaper articles and blog entries, which leads to two questions:
    – How does BibTeX accomodate day-of-month fields?
    – What bibstyles printout URL fields?

    Thanks in advance.

  2. Hi Tom,

    Thanks for your comment.
    I would suggest you use the @misc entry type (see above).
    To answer your questions:
    – Apparently, there is no day-of-month field, but you can add the day directly to the month field, e.g. month = {March 14,},
    – In order to printout URL’s, you can make use of the howpublished field. Try this: howpublished = {\url{http://texblog.wordpress.com}},
    You will have to add the url-package to your tex-document: \usepackage{url}.

    Hope this was helpful.

  3. Carla

    Hi there, I am not sure this is the appropriate place to post but I was wondering if you could help me out.

    my file looks something like:

    \documentclass[a4paper,12pt]{book}
    %....body....
    \clearpage
    \newpage
      \renewcommand{\theequation}{A-\arabic{equation}}
      % redefine the command that creates the equation no.
      \setcounter{equation}{0}  % reset counter
    \appendix
    \chapter{}
    %appendix
    ???????????
    %now I need a references cited
    \end{document}

    what can I do so that my section title says “References Cited” in the same format as the chapter heading but so that it has no numbering next to it?

    thanks in advance

  4. Hi Clara,

    First of all, does your question have to do anything with your renewcommand of the equation?
    If you only want to change the name of your “References”, you simply have to redefine it:

    \renewcommand\bibname{References Cited}
    \begin{thebibliography}{99}
    \bibitem{...}
    ....
    \end{thebibliography}

    This is for books, in articles one would use:

    \renewcommand\refname{References Cited}

    By default, the chapter “References” is not numbered.

    Does this answer your question?

    Tom

  5. Marios

    Hi,

    I am using TeXnicCenter (on Windows) for writing and compiling my latex files. I use the Latex to PDF option to compile my files, as I usually use pdf images in my files.

    The problem is, I have not managed to successfully compile my first latex file that uses a bibtex library. I have some questions on that:

    If I compile the latex file the first time, the included bibtex file will be converted automatically to bbl?

    I tried to run the compiler 4 times but I still didn’t manage to get the references in the final pdf file.

    Could you please give some instructions on what to do in order to make it work? Is there a possibility that the cause of the problem is the direct conversion from latex to pdf?

    Thanks in advance for your time.

    Marios

  6. sam

    Hi,
    I was wondering if you’ve ever used a bib style to display library of congress LCCN with the rest of the citation info. I can’t seem to find a style that does this, and I’m trying to avoid writing my own.

    ~Sam

  7. diego

    Hi there,

    Do you know what should I do in order that the field “eprint” appears? Because even if compiling it does not give me back any error it does not show it!
    thanks,
    Diego

  8. diego

    I think I found a pair of styles that show up the eprint fields

    h-elsevier2.bst and h-physrev3.bst

    thanks any way

    Diego

  9. Niel

    In your “Usage in Latex” section you are saying \bibliographySTYLE twice, the second one should only be \bibliography. It is also important to note that you place those two lines at the position within your document body where you want it to appear (typically the last line), and not in the document preamble.

  10. Rojean

    Hey, I am writing my thesis and found the following problem. In my bibliography, at the end of a reference, it displays a hyperlink to the page where it was cited for example:

    Sala, J.J. (2003), Structural analysis, Concrete Factory. 2,4,5

    where the 2,4,5 indicate the page numbers.
    How can I deactivate or remove this hyperlink function?

    I made use of the following styles:

    \usepackage{har2nat}               %(experienced the same with natbib)
    
    \begin{document}
    \bibliographystyle{agsm}            %(as close to Harvard-style referencing as possible)
    \bibliography{Bibliography}
    \end{document}

    and a Bibtex bibliography file

    Thank you

    • Hi Rojean,

      Either you are loading the hyperref package with the option shown below or another package is loading the backref package.

      \usepackage[pagebackref=true]{hyperref}

      In case you are using the hyperref-option and you don’t want the page number, just remove it. However, I am not sure how to remove the hyperlink only and keep the page number. Maybe someone else can help…

      Cheers, Tom.

  11. Rojean

    Found the hyperref package:

    \usepackage[hypertex,backref=true,bookmarks=true]{hyperref}

    Turned off the backref part and it seems to look as expected by our institution (package below), without the page referencing. Normal hyperlinks are still active between references or citations, making the pdf nice to work with.

    \usepackage[hypertex,backref=false,bookmarks=true]{hyperref}

    Thank you

  12. Sarvesh

    Dear Tom,
    If I was trying bibliographystyle{IEEEbib} then in the generated pdf file, the whole Reference section is missing while trying bibliographystyle{ieeetr} instead of bibliographystyle{IEEEbib} its working properly.
    Please suggest me how could i get me reference section with all the references by using bibliographystyle{IEEEbib}.

    I am working on latex (source file) template title “SPECIFICATION FOR COMMON IEEE STYLES” By Gregory L. Plett, Istvan Kollar.

    With Regards
    Sarvesh

    • Hmm, hard to say what went wrong. Make sure you have the IEEEbib.bst file in the same directory as the tex files. And run “latex” – “bibtex” – “latex” – “latex” to get the correct output. Here is a working minimal example, just replace the bibtex filename and use an existing citation:

      \documentclass[12pt]{ieee}
      \begin{document}
      \cite{someone2012}
      \bibliographystyle{ieeebib}
      \bibliography{bibtex_file}
      \end{document}

      Hope it helps,
      Tom.

  13. Sarvesh

    Yes, of course! its now working. Thank you for pointing this out.
    Thanks for your kind support and help.

    With Regards
    sarvesh

  14. Sarvesh

    Dear Tom,
    I have to cite author name, year, and the reference by using \bibliographystyle{IEEEbib} in my survey paper table.
    Is it possible to extract name, year, reference number from it, As its working with \bibliographystyle{plainnat}. Please help me.

    With Regards
    Sarvesh

  15. sarvesh

    Dear Sir,

    I am trying to achieve smaller font size for the text of bibliography entries
    by using following:

    {\footnotesize
    \ bibliographystyle{IEEEbib}
    \bibliography{testsurvey03}}

    But this also resizes the heading “References” in footnote size.

    How do I resize my all text entries in Reference without changing the font size of Reference heading?

    Please help me.
    Thanks with regards
    sarvesh

    • Dear Sarvesh,

      One possibility would be to use the natbib package. Here is an example:

      \documentclass{article}
      \usepackage{natbib}
      \begin{filecontents}{bibtextest.bib}
      @article{lamport1993lat,
        title={{L}a{T}e{X}2$\varepsilon$ The macro package for TEX},
        author={Lamport, L. and others},
        year={1993},
        publisher={Citeseer}}
      \end{filecontents}
      \begin{document}
      See \cite{lamport1993lat}.
      \renewcommand{\bibfont}{\footnotesize}
      \bibliographystyle{plain}
      \bibliography{bibtextest.bib}
      \end{document}

      Best, Tom.

  16. sarvesh

    Dear Sir, Thanks a lot for the help. I got the desired results after trying the above code of command.

    \renewcommand{\bibfont}{\footnotesize}
    	\bibliographystyle{IEEEbib}
            \bibliography{testsurvey03}

    Thanks for the help.
    With Regards
    Sarvesh

  17. Hi,

    I have created a test.bib file using Mendeley desktop and saved this file in the same folder where my .tex file is located.

    \cite{} does not seem to work. Is there anything i have missed out?

    I add these to my latex file:

    \bibliographystyle{plain}
    \bibliography{test}

    before

    \end{document}
    • Hi Navin,

      Did you run “bibtex” after typesetting the document? If you did, you’ll find a .bbl file (apart from the .bib and .aux files) in your folder.
      Finally, you’ll need to typeset the file again with “latex”, twice.

      Let me know if you have further questions.

      Cheers, Tom.

  18. Alwan S. S.

    hello tom
    could you please help me how to order my refrences in alphabetical order according to the surnames of the authers in latex?

    Many Thanks.
    Suhear

    • Hi Suhear,

      I strongly suggest using Biblatex. It uses biber instead of bibtex as a backend. If it helps, post a minimal working example with a few references here and I’ll rewrite it using Biblatex. Generally, the structure is as follows:

      \documentclass{article}
      \usepackage[style=alphabetic]{biblatex}
      \addbibresource{references.bib}
      \begin{document}
      \cite{...}
      \printbibliography
      \end{document}

Leave a Reply