# Two horizontal lines above and under chapter-entry [duplicate]

Possible Duplicate:
Title between lines

Can anybody please tell me how to get horizontal lines above and under the \chapter{MyChapter}? Here is an example:

-

## marked as duplicate by cmhughes, lockstep, barbara beeton, Martin Schröder, WernerJan 16 '13 at 4:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Welcome to TeX.sx! does this help: title-between-lines –  cmhughes Jan 14 '13 at 18:52
Welcome to TeX.sx! Not a proper answer, but take a look at the titlesec package, there is an example on page 22 of the manual. –  Torbjørn T. Jan 14 '13 at 18:54

## 1 Answer

Here's a possible solution using the titlesec package:

\documentclass{book}
\usepackage{titlesec}

\titleformat{\chapter}[display]
{\bfseries\huge}
{\filleft\Large\chaptertitlename~\thechapter}
{3ex}
{\titlerule\vspace{1.5ex}\filright}
[\vspace{1ex}\titlerule]

\begin{document}

\chapter*{Test Unnumbered Chapter}
\chapter{Test Numbered Chapter}

\end{document}


An image of the unnumbered chapter:

and an image of the numbered chapter:

-
Thank you. It looks amazing. thumbs up and have a nice day. =) –  user24403 Jan 15 '13 at 10:35