3

enter image description here

I want to recreate the layout when starting a new chapter as illustrated in the appended picture - how can I achieve this black bar?

2
  • 1
    The question is not very well-defined. Here are some questions for you: (a) The attached picture shows starting a new section, not a new chapter. (b) Is the black bar meant to be just above the section start, or is it meant to be at the bottom of the header? (c) Is the black bar referring to the entire line (both the thick and thin parts), or are you referring to only the thick part? Jul 13, 2021 at 16:21
  • @WillieWong (b) just above the section start, (c) both
    – Descrates
    Jul 13, 2021 at 16:25

1 Answer 1

7

How about something like this?

\documentclass{article}
\begin{document}

\hrule
\noindent\rule[8pt]{5cm}{8pt}

\end{document}

enter image description here

You can counter the effect of nonzero \parskip as follows:

\documentclass{article}
\parskip=1ex
\begin{document}


\hrule
\noindent\rule[8pt]{5cm}{8pt}

\bigskip

\hrule
\vspace{-1ex}
\noindent\rule[8pt]{5cm}{8pt}
\end{document}

enter image description here

7
  • If I try this there is a considerable margin between the black bar and the black line, what could the reason be?
    – Descrates
    Jul 13, 2021 at 16:21
  • It's hard to tell. A compilable example would be nice for people here to help.
    – citsahcots
    Jul 13, 2021 at 16:22
  • You can reduce the size of the \rule up to a point (\baselineskip), or use \hrule height2pt width2.5cm (for example) Jul 14, 2021 at 3:43
  • @modnar I think it's because I have set my \parskip to 1ex. Any way this works with my setting?
    – Descrates
    Jul 14, 2021 at 10:28
  • @Descrates, how about the above modified answer?
    – citsahcots
    Jul 14, 2021 at 12:09

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.