Text Formatting ⇒ File ended while scanning use of \@ssect.
File ended while scanning use of \@ssect.
when compiling my file LaTeX shows no error except the one written in the subject line:
File ended while scanning use of \@ssect.
This is my LaTeX Code:
\documentclass[12pt]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{a4paper}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{booktabs}
\usepackage{array}
\usepackage{paralist}
\usepackage{verbatim}
\usepackage{subfig}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}
\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape}
\usepackage[nottoc,notlof,notlot]{tocbibind}
\usepackage[titles,subfigure]{tocloft}
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape}
\title{\textbf{...}}
\date{\textbf{...}}
\author{...}
\begin{document}
\newgeometry{...}
\maketitle
\tableofcontents
\newpage
\section{...}
\subsection{...}
\subsubsection*{...}
\subsubsection*{...}
\end{document}
Note that I took an already existing file and changed only the content of the document. I kept the packages as they were.
What might be the reason for the error? Thanks in advance for your help!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
File ended while scanning use of \@ssect.
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
File ended while scanning use of \@ssect.
It's probably just the LaTeX editor that didn't show it. In the .log file you can see what LaTeX wrote as complete message.
If you like, post the .log file here as attachment.
Stefan