Text FormattingFile ended while scanning use of \@ssect.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mheyna
Posts: 2
Joined: Fri Sep 20, 2019 10:28 am

File ended while scanning use of \@ssect.

Post by mheyna »

Hello,

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

mheyna
Posts: 2
Joined: Fri Sep 20, 2019 10:28 am

File ended while scanning use of \@ssect.

Post by mheyna »

Just found the problem. It was a missing }… Why does Latex doesn't indicate the line in such case?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

File ended while scanning use of \@ssect.

Post by Stefan Kottwitz »

Welcome to the forum!

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
LaTeX.org admin
Post Reply