# Customize chapterstyle in memoir

I like the ell chapterstyle which is built into memoir, but I want to customize it. I like the chapter number and the lines around it, but I want the chapter title to be written in the same size and font as it would be in the default chapterstyle.

How can I make this change to the built-in ell chapterstyle? (Hopefully this will also be illustrative in learning how to customize any of the built-in memoir chapterstyles.)

\documentclass{memoir} \chapterstyle{ell} \begin{document} \chapter{Introduction} I want Introduction'' to have the same size and font as it would in the default'' chapterstyle. \end{document} 


Replay

As daleif suggested in his comment, all you have to do is to look at the code in memoir.cls; here's how the ell style is defined:

\makechapterstyle{ell}{%
\chapterstyle{default}
\renewcommand*{\chapnumfont}{\normalfont\HUGE\sffamily}
\renewcommand*{\chaptitlefont}{\normalfont\huge\sffamily}
\settowidth{\chapindent}{\chapnumfont 111}
\vspace*{\beforechapskip}%
\hrulefill
\smash{\rule{0.4pt}{15mm}}
\renewcommand*{\printchaptername}{}
\renewcommand*{\printchapternum}{%
\hfill
\raisebox{10mm}[0pt][0pt]{\chapnumfont \thechapter}%
\hspace*{1em}
\renewcommand*{\printchaptertitle}[1]{%
\vskip\onelineskip
\raggedleft {\chaptitlefont ##1}\par\nobreak}}



In your case, the relevant lines are

\renewcommand*{\chapnumfont}{\normalfont\HUGE\sffamily}
\renewcommand*{\chaptitlefont}{\normalfont\huge\sffamily}



which set the format for the number and title font. In the default style the number font is boldfaced and uses \huge and the title font is set to be boldfaced and \Huge and both use roman family, so you can define your own style making the appropriate changes. In the example below I changed both the number and title format to use roman family but, of course, you can change only the title format (I just thought that it is more coherent to maintain the same family for both the number and the title):

\documentclass{memoir}

\makechapterstyle{myell}{%
\chapterstyle{default}
\renewcommand*{\chapnumfont}{\normalfont\huge\bfseries}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\bfseries}
\settowidth{\chapindent}{\chapnumfont 111}
\vspace*{\beforechapskip}%
\hrulefill
\smash{\rule{0.4pt}{15mm}}
\renewcommand*{\printchaptername}{}
\renewcommand*{\printchapternum}{%
\hfill
\raisebox{10mm}[0pt][0pt]{\chapnumfont \thechapter}%
\hspace*{1em}
\renewcommand*{\printchaptertitle}[1]{%
\vskip\onelineskip
\raggedleft {\chaptitlefont ##1}\par\nobreak}}

\chapterstyle{myell}

\begin{document}
\chapter{Introduction}
I want Introduction'' to have the same size and font
as it would in the default'' chapterstyle.
\end{document}



Of course, for minor changes, you don't have to define your own style; you can simply redefine the appropriate commands after selecting the style. The same result as above can be obtained with:

\documentclass{memoir}

\chapterstyle{ell}
\renewcommand*{\chapnumfont}{\normalfont\huge\bfseries}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\bfseries}

\begin{document}
\chapter{Introduction}
I want Introduction'' to have the same size and font
as it would in the default'' chapterstyle.
\end{document}


Category: sectioning Time: 2012-03-30 Views: 2

## Related post

• Change font colour of bringhurst chapterstyle in memoir 2011-02-03

I would like to change the colour of chapter titles in bringhurst chapterstyle. The following should work, but apparantly I have misunderstood something and am not able to get it to work, and would appreciate any pointers. \documentclass[a4paper]{mem

• Chapterstyle in memoir 2012-03-25

For some reason I can't compile the following small example in memoir. \documentclass[oneside,12pt]{memoir} \begin{document} \chapterstyle{madsen} \frontmatter \tableofcontents \mainmatter \chapter{First chapter} Text \chapter{Second chapter} More te

• changing chapterstyle in memoir 2013-01-01

I have the following MWE \documentclass[a4paper, 10pt]{memoir} \usepackage[ansinew]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amsthm, amssymb} \usepackage[per-mode=symbol, exponent-product = \cdot, alsoload=hep, range-units=single, toph

• modifying part style in memoir class to match ell chapterstyle 2012-05-14

I've selected ell chapterstyle using the memoir class. Following tips I found in Part style in memoir class and A modification of \part style in memoir and looking at the ell definition in memoir.cls I've gotten fairly close to matching the part styl

• Misalignment of Chapter number and chapter title in memoir southall chapterstyle 2013-03-20

I have the number and chapter title in the southall chapterstyle in memoir class not aligned vertically. How to fix it? --------------Solutions------------- The southall style uses two minipages with top alignment to typeset the chapter number and th

• Conflict between mathdesign and memoir chapterstyle ell 2013-09-27

I have just come across an odd interaction between mathdesign and the ell chapterstyle in memoir. I'm using TeX Live 2013 and I believe this was introduced with the update to mathdesign 2.31. Here's the minimal code triggering the behaviour: \documen

• How to typeset chapter heading on a page of its own with memoir 2013-10-11

I'm writing a book using memoir, and I'd like each chapter's text to begin on a new page after the chapter headings (so each chapter heading stands on a page by itself). Is there a way to make this automatic, so I don't have to add the \newpage comma

• Headings and advice to write a PhD in physics using LaTeX 2011-01-31

I have 3 months to write a PhD thesis in French. I have a good level in LaTeX (wrote several memoires and many articles), however, I would like to know if you have any suggestions concerning good practises for this kind of work (more than 100 pages,

• What are the "best practices" when writing a thesis in Latex? 2011-01-31

I have 3 months to write a PhD thesis in French. I have a good level in LaTeX (wrote several memoires and many articles), however, I would like to know if you have any suggestions concerning good practises for this kind of work (more than 100 pages,

• Simple two-column LaTeX template 2012-07-14

I have been looking for a simple two-column LaTeX template. I have attached a template that I like, but I am unable to remove the footer on the bottom of the page. Also, I would like to remove the Categories and Subject section as well. I tried comme

• Automatically insert a \newpage after chapter headings 2013-10-11

I'm writing a book using memoir, and I'd like each chapter's text to begin on a new page after the chapter headings (so each chapter heading stands on a page by itself). Is there a way to make this automatic, so I don't have to add the \newpage comma

• Customize TOC, center align and italics in memoir 2016-06-15

I would like to customize my TOC so that titles are centred and italicized while in the \frontmatter, like in the following picture: My MWE: \documentclass[14pt,twoside,a5paper,extrafontsizes, draft, showtrims]{memoir} \usepackage[brazilian]{babel} \

• Memoir suitable amsthm customization 2011-03-17

I'm using the memoir class to write my master thesis. It's math related so there are lot's of Theorems, Definitions and stuff. I know how to customize theorems by using amsthm. e.g. \newtheoremstyle{mainth} {11pt}% hSpace abovei {11pt}% hSpace belowi

• Is it possible to customize only the section and subsection numbers or titles in memoir? 2011-09-27

Like the question title says, is it possible to customize only the section and subsection numbers or titles in memoir? I know how to change the font for the entire block, but I would like to make the section numbers a bit smaller compared to the sect

• Customize referencing of subcaptions in "memoir"? 2011-10-18

When I use \subcaption{... \label{myfig}} in memoir, and then reference it, the result is something like "Figure 1(a)". But I would like to customize the reference by removing the parentheses, thus making it appear as "Figure 1a". How

• Memoir with chapterstyle "veelo": black box also for unnumbered chapters 2014-06-06

I'm using the memoir class with chapter style "veelo", which renders black boxes for numbered chapters: But not for unnumbered chapters: Is there a way to get these boxes also for unnumbered chapters? (preferably in the same line as the caption)

• Memoir chapterstyle - add image before chapter num 2014-10-28

Hello I am trying to "publish" my 9yr old's story using the memoir class. I want to use the built in thatcher chapterstyle but modify it to include an image above the chapter title (I want the same image for every chapter). I have tried insertin

• How to make this as a memoir chapterstyle? 2015-04-19

The Danish translation of Murakami's The Wind-Up Bird Chronicle uses the following chapter style. Is it possible to somehow recreate this as a memoir chapter style? The text circle always has the same radius and always starts at the same angle on the

• Chapterstyle Memoir: Picture on page left, chapter opening on page right 2013-04-11

I am working on the layout of my dissertation and I would like to have the following design for all my chapter-openings: New chapters should always start on the left page, with a picturepage that contains only an illustration that spreads over the wh