Featured Book

LaTeX Beginners Guide

Who is online

In total there are 9 users online :: 0 registered, 0 hidden and 9 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 9 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

natbib | Runaway Argument caused by Citation

Add tags Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.

natbib | Runaway Argument caused by Citation

Postby demus on Sun Jun 10th, 2012

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:
Code: Select all  •  Open in writeLaTeX
@article{Ref1,
title = "A new semi-active suspension control strategy through LPV technique",
journal = "Control Engineering Practice",
volume = "16",
number = "12",
pages = "1519 - 1534",
year = "2008",
note = "",
issn = "0967-0661",
doi = "10.1016/j.conengprac.2008.05.002",
url = "http://www.sciencedirect.com/science/article/pii/S0967066108000853",
author = "C. Poussot-Vassal and O. Sename and L. Dugard and P. Gáspár and Z. Szabó and J. Bokor",
keywords = "Semi-active suspension",
keywords = "Linear parameter varying (LPV)",
keywords = "Engineering",
keywords = "Linear matrix inequality (LMI)"
}

My complete document is divided into several .tex files included with \include. My main file looks like this
Code: Select all  •  Open in writeLaTeX
\documentclass[a4paper,11pt]{report}
\usepackage[ireport]{KTHEEtitlepage}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{vmargin}
\usepackage[table]{xcolor}
\usepackage{breqn}
\usepackage[square,numbers]{natbib}
\usepackage[ireport]{KTHEEtitlepage}
\usepackage{nomencl}
\usepackage{mathtools}
\usepackage{verbatim}
\usepackage{subfig}
\usepackage{cite}
\usepackage[T1]{fontenc
}
%\usepackage{natbib}

\mathtoolsset{showonlyrefs} % number referenced equation only
\makenomenclature
\setmarginsrb{30mm}{5mm}{30mm}{20mm}{25mm}{5mm}{20mm}{10mm}

\begin{document}

\ititle{Title}
\isubtitle{subtitle}
\iauthor{Author}
\idate{2012}
\irefnr{AA-AA-AA 0000:000}
\iaddress{School}
\makeititle

\include{Abstract/Abstract}
\printnomenclature
\tableofcontents

\include{subdocument/subdocument}

\nocite{*}
\bibliographystyle{splncs03}
\bibliography{MyBib}
\end{document
}

The subdocument looks like this:
Code: Select all  •  Open in writeLaTeX
\chapter{SubDocument}
I would like to cite this reference \cite{Ref1
}.

When I run latex I get the error message:
Code: Select all  •  Open in writeLaTeX
(./subdocument/subdocument.tex
Chapter 1.
)
Runaway argument?
]{Ref1} . \ETC.
! File ended while scanning use of \@citex.
<inserted text>
                \par
l.46 \include{subdocument/subdocument}
                             
?
! Emergency stop.
<inserted text>
                \par
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 10th, 2012, edited 1 time in total.
Reason: Longer passages of source code are tagged as code block, not as in-line code.
demus
 
Posts: 2
Joined: Sun Jun 10th, 2012

Re: natbib | Runaway Argument caused by Citation

Postby demus on Sun Jun 10th, 2012

localghost: Great edits! Thank you for clearing things up!
demus
 
Posts: 2
Joined: Sun Jun 10th, 2012


Return to BiBTeX

Who is online

Users browsing this forum: No registered users and 9 guests