I'm very new to TeX and I'm from a graphic design background, so I apologize if I'm missing something very obvious.
I want to modify the memoir style VZ14
. What I would like is:
=====h double line======== Chapter title =====h double line=======
so that the top line is a little thicker than the bottom. And I don't want Chapter numbers.
\makeatletter
\newcommand\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}
\setlength\midchapskip{10pt}
\makechapterstyle{VZ14}{
\renewcommand\chapternamenum{}
\renewcommand\printchaptername{}
\renewcommand\chapnamefont{\small\scshape}
\renewcommand\printchapternum{%
\chapnamefont\null\thickhrulefill\quad
\@chapapp\space\thechapter\quad\thickhrulefill}
\renewcommand\printchapternonum{%
\par\thickhrulefill\par\vskip\midchapskip
\hrule\vskip\midchapskip
}
\renewcommand\chaptitlefont{\small\scshape\centering}
\renewcommand\afterchapternum{%
\par\nobreak\vskip\midchapskip\hrule\vskip\midchapskip}
\renewcommand\afterchaptertitle{%
\par\vskip\midchapskip\hrule\nobreak\vskip\afterchapskip}
}
\makeatother
\chapterstyle{VZ14}
Best Answer
The code below shows one possibility:
The idea is to use three vertically centered
\parbox
es; the first and third ones contain the rules and the middle one contains the title; some provision was made in case the title is too long: the middle box width won't exceed0.7\textwidth
to guarantee that both lines will always show:An image of a short title:
An image of a long title:
Of course, feel free to adjust the settings according to your needs.