LaTeX forum ⇒ General! Paragraph ended before \ttl@format@ii was complete Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 2
Joined: Sat Aug 13, 2016 12:16 pm

! Paragraph ended before \ttl@format@ii was complete

Postby tinav » Sat Aug 13, 2016 12:43 pm

Hello, I'm a familiar with Latex but I really can't fix this problem. I started a new document from scratch with the basic code copied below. Without the \titleformat everything works fine, but when I include the \titleformat I get the following error:

Runaway argument?
! Paragraph ended before \ttl@format@ii was complete.
<to be read again>

  1. \documentclass[11pt,a4paper]{book}
  3. \usepackage{titlesec}
  4. \usepackage[utf8]{inputenc}
  6. \titleformat{\chapter}{\Large \bfseries}
  8. %Begin the document
  9. %==================
  10. \begin{document}
  12. \chapter{Test titel}
  13. Some text here.
  15. \end{document}

Can anyone tell me what is wrong with that small piece of code and what the error means exactly?


User avatar
Stefan Kottwitz
Site Admin
Posts: 9572
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Aug 13, 2016 1:35 pm

Hi Tinav,

welcome to the forum!

\titleformat requires more arguments. Here is a complete example of \titleformat and \titlespacing with arguments that reproduce the standard chapter headings. You can use these commands in your document and change them as you like:

  1. \titleformat{\chapter}[display]
  2. {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
  3. \titlespacing*{\chapter}{0pt}{50pt}{40pt}

These command examples are from the appendix of the titlesec manual.

Stefan admin

Posts: 2
Joined: Sat Aug 13, 2016 12:16 pm

Postby tinav » Sun Aug 14, 2016 11:46 pm

Thanks, it works!

Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests