# Is chapter style like this in memoir possible? [closed]

I am interested in a chapter style in memoir that resembles this:

How can I do this?

## closed as unclear what you're asking by Werner, Phelype Oleinik, schtandard, Raaja, Stefan PinnowJul 23 at 4:25

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to TeX SX! In anycase, it is easy to obtain with titlesec. – Bernard Jul 22 at 19:57
• I'm pretty sure it's possible. I would start with one of the existing chapter styles and modify that. Have you tried anything? Is there are part that you are specifically having trouble with? If so, post a minimal compilable document showing what you've got so far and people can help with the specific problems you're having. – Alan Munn Jul 22 at 20:15
• I don't think that is even hard. – daleif Jul 22 at 21:42
• @Bernard, remember titlesec is not compatible with memoir – daleif Jul 22 at 21:54
• @daleif: I know. I asked just in case the the O.P. were not fixed on memoir. – Bernard Jul 22 at 22:07

## 1 Answer

This is just an adoption of the demo2 build in memoir chapter style, see http://texdoc.net/texmf-dist/doc/latex/MemoirChapStyles/MemoirChapStyles.pdf.

\documentclass[a4paper]{memoir}

\makeatletter
\makechapterstyle{abir}{%
\chapterstyle{default}
\renewcommand*{\printchaptertitle}[1]{\raggedleft \chaptitlefont \MakeTextUppercase{##1}}
\renewcommand*{\afterchaptertitle}{%
\vskip\onelineskip
\hrule
\vskip1pt
\hrule\@height2pt
\vskip\afterchapskip}
\setlength{\beforechapskip}{3\baselineskip}
\renewcommand*{\printchapternonum}{%
\vphantom{\chapnumfont 1}
\afterchapternum%
\vskip\topskip}
\setlength{\beforechapskip}{2\onelineskip}
}
\makeatother
\chapterstyle{abir}
\begin{document}

\chapter{test}

test

\chapter*{test star}

test star

\end{document}


• Thank you very much. I was able to create it. I messed up in my code. – Abir Jul 23 at 6:44