LaTeX forum ⇒ Texmaker and TeXstudio! File ended while scanning use of \@citex.

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
alexmesa
Posts: 2
Joined: Fri Jul 08, 2022 7:47 pm

! File ended while scanning use of \@citex.

Postby alexmesa » Fri Jul 08, 2022 8:48 pm

Hello,

I have an error in my texmaker project.

as the subject describes, I have an error in my main file that contains all the other chapters which are documents themselves.

The error is:

! File ended while scanning use of \@citex.
<inserted text>
\par
l.95 \input{chapter-1}
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.
]

Below is the main file.

\documentclass[whitelogo]{tudelft-report}
\usepackage{natbib}
\usepackage{changes}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{sectsty}
\usepackage{float}
\usepackage{titling} 
\usepackage{blindtext}
\usepackage{xcolor}
\definecolor{darkgreen}{rgb}{0.0, 0.4, 0.0}
\usepackage{multirow}
\usepackage{array}
\usepackage{eso-pic}
\usepackage{watermark}
\bibliographystyle{abbrvnat}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{longtable}
\usepackage{bm}
\usepackage{cite}
\usepackage[toc,page]{appendix}
\usepackage{bm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{pifont}% http://ctan.org/pkg/pifont
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcommand{\thickhat}[1]{\mathbf{\hat{\text{$#1$}}}}
\newcommand{\thickbar}[1]{\mathbf{\bar{\text{$#1$}}}}
\newcommand{\thicktilde}[1]{\mathbf{\tilde{\text{$#1$}}}}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}

\begin{document}

%% Use Roman numerals for the page numbers of the title pages and table of
%% contents.
\frontmatter



%% Uncomment following 16 lines for a cover with a picture on the lower half only
\title[tudelft-white]{Title}
\subtitle[tudelft-black]{Optional subtitle}
\author[tudelft-white]{Alessandro Maria Laspina}
\affiliation{Technische Universiteit Delft}
\coverimage{covervega.jpg}
\covertext[tudelft-white]{
    \textbf{Cover Text} \\
    possibly \\
    spanning 
    multiple 
    lines
    \vfill
    ISBN 000-00-0000-000-0
}
\setpagecolor{tudelft-cyan}
\makecover[split]


%% Include an optional title page.
\input{title}

\input{preface}

\tableofcontents

%% Use Arabic numerals for the page numbers of the chapters.
\mainmatter

\input{chapter-1}
%% Use letters for the chapter numbers of the appendices.
\input{chapter-2}
\input{chapter-3}
\input{chapter-4}
\input{chapter-5}
\input{chapter-6}
\input{chapter-7}
\input{chapter-8}
\input{chapter-9}
\input{chapter-10}
\input{Guidance-Algorithm}
\input{chapter-12}
\input{chapter-13}

\appendix
\input{appendix}
%\input{appendix-a}

\bibliography{mybib}

\end{document}

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
Kreuz Elf
Posts: 22
Joined: Thu Mar 04, 2021 7:33 pm

! File ended while scanning use of \@citex.

Postby Kreuz Elf » Sat Jul 09, 2022 12:35 pm

Hi Alessandro,
your example is everything else than minimal. This makes it almost impossible to help you. For example: I don't have your document .cls-file. Since I see no obvious typos in your code, though, I would assume that the problem actually could lie in the file chapter-1.tex.

Please post a real minimal working example and / or give the cls-file as well.

alexmesa
Posts: 2
Joined: Fri Jul 08, 2022 7:47 pm

! File ended while scanning use of \@citex.

Postby alexmesa » Fri Jul 15, 2022 5:15 pm

Hello,

where can I find the cls-file?

Kreuz Elf
Posts: 22
Joined: Thu Mar 04, 2021 7:33 pm

! File ended while scanning use of \@citex.

Postby Kreuz Elf » Thu Jul 21, 2022 12:22 pm

it is "tudelft-report.cls". This seems to be a custom document class of yours so I can't say where you put it. Use your search function of the file explorer if you don't remember.


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 2 guests