TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been experimenting with chapter title formatting using titlesec but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that \titleline does that, but I'm not sure where in the \titleformat syntax to place it.

share|improve this question
up vote 4 down vote accepted

Here's one possible solution using the last optional argument for \titleformat to insert some vertical spacing and the rule:

\documentclass{book}
\usepackage{titlesec}

\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}[\vspace{2ex}\titlerule]

\begin{document}

\chapter{Test Chapter}

\end{document}
share|improve this answer
    
Thanks for clearing that up! It works! – Kpantzas Aug 29 '12 at 17:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.