18

As fncychap has no such chapter style, and using the memoir class will cause a lot conflicts with my current settings (book class), how to make this style (perhaps using the titlesec package)?

  1. title style for table of contetns, Nomenclature, References, etc
  2. title style for chapters

enter image description here

lockstep
  • 250,273
KOF
  • 5,019
  • It could help if you told us what chapter style you'd use in memoir to generate this. – nickie Apr 03 '14 at 18:15
  • It's similar to the styles at page 48 and 50: ftp://ftp.tex.ac.uk/tex-archive/documentation/MemoirChapStyles/MemoirChapStyles.pdf – KOF Apr 03 '14 at 18:23
  • 2
    Some guidelines can be taken from: Customizing Chapter style in scrbook; Customizing chapter style with tikz. As it stands, this is very much a do-it-for-me question... – Werner Apr 03 '14 at 18:33
  • I suppose the table of contents here is the chapter table of contents? – Bernard Apr 03 '14 at 18:52
  • The table of contents is the global one. – KOF Apr 03 '14 at 18:56
  • With some difficulty and only by devoting free time. Have you not even started to try to work on it? Give people a break, and at least provide a basic document to work with... Also: the way it looks now, it almost looks like your 'chapter style' will be: 2 horizontal lines; the phrase 'Table of Contents'; verticle space; fancy 'chapter '; two horizontal lines; . But really, you just want a numbered style and an unnumbered style, right? – jon Apr 03 '14 at 20:08
  • well, I mainly focus on my thesis itself. If I could do this, maybe it will take several days! But for experienced people, perhaps few minutes. This is why I post my question here. – KOF Apr 03 '14 at 20:52
  • @KOF The document you linked no longer exists! – hola May 30 '17 at 15:51
  • well, you can search "MemoirChapStyles.pdf" – KOF May 30 '17 at 16:17

1 Answers1

26

One option using TikZ (a TikZ-free solution is provided below); adjust the font attributes and lengths according to your needs:

\documentclass{book}
\usepackage{lmodern}
\usepackage{titlesec}
\usepackage{microtype}
\usepackage{tikz}

\definecolor{myblue}{RGB}{0,82,155}

\titleformat{\chapter}[display] {\normalfont\bfseries\color{myblue}} {\filleft% \begin{tikzpicture} \node[ outer sep=0pt, text width=2.5cm, minimum height=3cm, fill=myblue, font=\color{white}\fontsize{80}{90}\selectfont, align=center ] (num) {\thechapter}; \node[ rotate=90, anchor=south, font=\color{black}\Large\normalfont ] at ([xshift=-5pt]num.west) {\textls[180]{\textsc{\chaptertitlename}}};
\end{tikzpicture}% } {10pt} {\titlerule[2.5pt]\vskip3pt\titlerule\vskip4pt\LARGE\sffamily}

\begin{document}

\tableofcontents \chapter{Betratronic motion in a synchrotron}

\end{document}

An unnumbered chapter:

enter image description here

A numbered chapter:

enter image description here

A TikZ-free option:

\documentclass{book}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{microtype}

\definecolor{myblue}{RGB}{0,82,155}

\titleformat{\chapter}[display] {\normalfont\bfseries\color{myblue}} {\filleft\hspace*{-60pt}% \rotatebox[origin=c]{90}{% \normalfont\color{black}\Large% \textls[180]{\textsc{\chaptertitlename}}% }\hspace{10pt}% {\setlength\fboxsep{0pt}% \colorbox{myblue}{\parbox[c][3cm][c]{2.5cm}{% \centering\color{white}\fontsize{80}{90}\selectfont\thechapter}% }}% } {10pt} {\titlerule[2.5pt]\vskip3pt\titlerule\vskip4pt\LARGE\sffamily}

\begin{document}

\tableofcontents \chapter{Betratronic motion in a synchrotron}

\end{document}

An unnumbered chapter:

enter image description here

A numbered chapter:

enter image description here

Some remarks:

  • The titlesec package was used to easily change the formatting for chapter headings.

  • The microtype package was used to use \textls to space out the letters in "Chapter".

  • The lmodern package was used just to have access to a 80pt font size.

  • I used TikZ in the first solution to quickly place some of the elements; the second option is a TikZ-free solution.

Gonzalo Medina
  • 505,128
  • @KOF You're welcome! Glad I could help. – Gonzalo Medina Apr 03 '14 at 21:05
  • What's the reason for not wanting to use TikZ? – Holene Apr 05 '14 at 15:55
  • 3
    @Holene my first answer was the one using TikZ :) (and I am an admirer of TikZ); I included a TikZ-free possibility since I think this is one of the cases in which using TikZ for such a simple task might be an overkill; TikZ is such a heavy package and consuming resources for simple tasks is not really needed. – Gonzalo Medina Apr 05 '14 at 18:09