0

I added the vertical line after chapter number with following comma nds:

\usepackage{titlesec, blindtext, color}
\newsavebox\theCT
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp}{0pt}{\Huge\bfseries\barbox}
\newcommand\barbox[1]{\savebox\theCT{%
  \parbox[t]{\dimexpr\textwidth-55pt}{\strut#1\strut}}%
  \textcolor{gray75}{\rule[-\dp\theCT]{1.1pt}{\dimexpr\ht\theCT+\dp\theCT}}%
  \hsp{\usebox{\theCT}}}

How can I set a fixed length of vertical line after every chapter number?

  • 3
    Welcome to TeX SX! Could you post a full compilable code? – Bernard Feb 7 at 13:49

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.