TransWikia.com

TItle chapter heading having two lines below it

TeX - LaTeX Asked on August 12, 2021

Two lines below chapter heading of different width as shown in image

enter image description here

This is what I manage to get using code

enter image description here

usepackage{sectsty}
usepackage{titlesec}
chapterfont{centering }
titleformat{chapter}[display]
{bflargecentering}
{chaptertitlename thechapter}{10pt}{
    rule{textwidth}{1pt}
    vspace{1ex}
    centering
} % before-code
[
vspace{-0.5ex}%
rule{textwidth}{0.3pt}
% after-code
]

2 Answers

Probably the following can serve as a place to start from. Line thicknesses and spacing can of course be adjusted to your needs. I have also added MakeUppercase:

enter image description here

documentclass{report}
usepackage{sectsty}
usepackage{titlesec}
chapterfont{centering }
titleformat{chapter}[display]
{bfserieslargecentering}%
{MakeUppercase{chaptertitlename} thechapter}%
{10pt}%
{vspace{1ex}centeringMakeUppercase}%
[{titlerule[0.5pt]vspace{1pt}titlerule[2pt]}]


begin{document}

chapter{Design of Experiments}
end{document}

Answered by leandriis on August 12, 2021

I think the thin line after the thick one would look better. B.t.w., don't load sectsty and titlesec, to avoid any conflict.

documentclass{report}
usepackage{titlesec}

titleformat{chapter}[display]%
{bfseriesLargecentering}{MakeUppercase{chaptertitlename} thechapter}{10pt}{%
MakeUppercase} % before-code
[{titlerule[1.2pt]vskip1.2pttitlerule[0.3pt]}] % after-code

begin{document}

chapter{Introduction}

end{document} 

enter image description here

Answered by Bernard on August 12, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP