gummi icon indicating copy to clipboard operation
gummi copied to clipboard

Bibliography tag not recognized

Open joaoribeirost opened this issue 10 years ago • 2 comments

Is there a way to add new bibliography tags to be recognized by gummi? I have @online and they don't appear in the bibliography compiler.

joaoribeirost avatar Jun 19 '15 14:06 joaoribeirost

I suspect that this is a LaTeX issue, and we simply need gummi to insert an extra line or option when adding a bibliography with the Wizard. So feel free to play around with the LaTeX code, and tell us if you find a change that makes it work. Then we can update Gummi accordingly.

I've just noticed, when using the Wizard (the options at the bottom to at Images, Tables etc.), there's a "Style" option, but it shows nothing, and there is no input field for that option.

screenshot from 2015-08-29 13 13 34

Then when I click "apply", there's an empty argument.

...

\bibliography{references.bib}{}
\bibliographystyle{plain}
\end{document}

Perhaps that should be non-empty. (I don't know much about bibligraphies in LaTeX. There are so many different ways to do them.)

mdavis-xyz avatar Aug 29 '15 03:08 mdavis-xyz

Hmm. I haven't used the Gummi bibliography wizard before, and I haven't done bibliographies with this approach in LaTeX before. I can't get it to work for anything (online, book or article).

Can you give us a minimum working example?

Here's the code I tried, which doesn't work:

main.tex:

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}


\title{Title}


\begin{document}
\maketitle

Here is a book \cite{myBook}.

\bibliographystyle{plain} 
\bibliography{references.bib} 

\end{document}

references.bib

@book{myBook,
    author    = "Kristin Shrader-Frechette",
    title     = "What Will Work: Fighting Climate Change With Renewable Energy Not Nuclear Power",
    publisher = "Oxford University Press",
    year      = "2011",
    address   = "198 Madison Avenue, New York, New York 10016",
    page      = "46"
}


@article{myArticle,
  title={Annual flux of dissolved organic carbon from the euphotic zone in the northwestern Sargasso Sea},
  author={Carlson, Craig A and Ducklow, Hugh W and Michaels, Anthony F},
  journal={Nature},
  volume={371},
  number={6496},
  pages={405--408},
  year={1994}
}


@online {myOnline,
    author   = "{European Nuclear Society}",
    year     = "2005",
    month    = "mar",
    url      = {http://www.euronuclear.org/e-news/e-news-9/greenpeace.htm},
    title     = {Greenpeace co-founder says nuclear energy is ``only option''}
}

The error message I got when compiling was LaTeX Warning: Citation 'myBook' on page 1 undefined on input line 15.

mdavis-xyz avatar Aug 29 '15 03:08 mdavis-xyz