6

Is is possible to have a different text/layout for the chapter page, and a vertical bar? What I want to achieve is something like this:

enter image description here

7

Using tikz is probably overkill here, but works. The following code must be compiled twice for the vertical rule to be correctly drawn.

enter image description here

\documentclass[twoside]{book}

\usepackage{tikz}
\usepackage{tikzpagenodes}
\usepackage{titlesec}
\usepackage{lipsum}

\titleformat{\chapter}[display]%
    {\normalfont\Huge\filright}%
    {\thechapter}%
    {25pt}
    {\tikz[remember picture,overlay]
        \draw ([xshift=-30pt]current page text area.north west)
            -- ([xshift=-30pt]current page text area.south west);}

\begin{document}
\chapter{Foobar}
    \lipsum
\end{document}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.