TeX - LaTeX Asked on August 12, 2021
Two lines below chapter heading of different width as shown in image
This is what I manage to get using code
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
]
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
:
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}
Answered by Bernard on August 12, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP