LaTeX forum ⇒ BibTeX, biblatex and bibernatbib | Runaway Argument caused by Citation

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
demus
Posts: 2
Joined: Sun Jun 10, 2012 1:33 pm

natbib | Runaway Argument caused by Citation

Postby demus » Sun Jun 10, 2012 2:00 pm

Hello,

I'm trying to use a bibliography in a separate bib file without much luck. To test things out, there's only one entry in MyBib.bib right now, so the whole file only contains the following:
  1. @article{Ref1,
  2. title = "A new semi-active suspension control strategy through LPV technique",
  3. journal = "Control Engineering Practice",
  4. volume = "16",
  5. number = "12",
  6. pages = "1519 - 1534",
  7. year = "2008",
  8. note = "",
  9. issn = "0967-0661",
  10. doi = "10.1016/j.conengprac.2008.05.002",
  11. url = "http://www.sciencedirect.com/science/article/pii/S0967066108000853",
  12. author = "C. Poussot-Vassal and O. Sename and L. Dugard and P. Gáspár and Z. Szabó and J. Bokor",
  13. keywords = "Semi-active suspension",
  14. keywords = "Linear parameter varying (LPV)",
  15. keywords = "Engineering",
  16. keywords = "Linear matrix inequality (LMI)"
  17. }

My complete document is divided into several .tex files included with \include. My main file looks like this
  1. \documentclass[a4paper,11pt]{report}
  2. \usepackage[ireport]{KTHEEtitlepage}
  3. \usepackage{graphics}
  4. \usepackage{graphicx}
  5. \usepackage{amsmath}
  6. \usepackage[utf8]{inputenc}
  7. \usepackage[english]{babel}
  8. \usepackage{vmargin}
  9. \usepackage[table]{xcolor}
  10. \usepackage{breqn}
  11. \usepackage[square,numbers]{natbib}
  12. \usepackage[ireport]{KTHEEtitlepage}
  13. \usepackage{nomencl}
  14. \usepackage{mathtools}
  15. \usepackage{verbatim}
  16. \usepackage{subfig}
  17. \usepackage{cite}
  18. \usepackage[T1]{fontenc}
  19. %\usepackage{natbib}
  20.  
  21. \mathtoolsset{showonlyrefs} % number referenced equation only
  22. \makenomenclature
  23. \setmarginsrb{30mm}{5mm}{30mm}{20mm}{25mm}{5mm}{20mm}{10mm}
  24.  
  25. \begin{document}
  26.  
  27. \ititle{Title}
  28. \isubtitle{subtitle}
  29. \iauthor{Author}
  30. \idate{2012}
  31. \irefnr{AA-AA-AA 0000:000}
  32. \iaddress{School}
  33. \makeititle
  34.  
  35. \include{Abstract/Abstract}
  36. \printnomenclature
  37. \tableofcontents
  38.  
  39. \include{subdocument/subdocument}
  40.  
  41. \nocite{*}
  42. \bibliographystyle{splncs03}
  43. \bibliography{MyBib}
  44. \end{document}

The subdocument looks like this:
  1. \chapter{SubDocument}
  2. I would like to cite this reference \cite{Ref1}.

When I run latex I get the error message:
  1. (./subdocument/subdocument.tex
  2. Chapter 1.
  3. )
  4. Runaway argument?
  5. ]{Ref1} . \ETC.
  6. ! File ended while scanning use of \@citex.
  7. <inserted text>
  8. \par
  9. l.46 \include{subdocument/subdocument}
  10.  
  11. ?
  12. ! Emergency stop.
  13. <inserted text>
  14. \par
  15. l.46 \include{subdocument/subdocument}

I have no idea what's going on here. Does anyone know what is going on here? I'm using aquamacs with TexLive 2011. Could my dist be broken perhaps?

Thanks in advance!
Last edited by localghost on Sun Jun 10, 2012 2:07 pm, edited 1 time in total.
Reason: Longer passages of source code are tagged as code block, not as in-line code.

Link:
BBcode:
HTML:
Hide post links
Show post links

demus
Posts: 2
Joined: Sun Jun 10, 2012 1:33 pm

Postby demus » Sun Jun 10, 2012 3:23 pm

localghost: Great edits! Thank you for clearing things up!

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: Google [Bot] and 1 guest