0

How to add the 3px line under the number of Chapter title as in: https://bookdown.org/yihui/bookdown/introduction.html without underlining also the sections (1.1). Problem occurs when split_by: section is not used in _output.yml. (I do not want to split by sections)

#_output.yml
bookdown::gitbook:
  css: style.css
  split_by: section #<- NOT HAVING THIS

#css
.level1 .header-section-number {
  display: inline-block;
  border-bottom: 3px solid;
}
Ferroao
  • 3,042
  • 28
  • 53
  • 1
    That's controlled by the CSS, which you can see here: https://github.com/rstudio/bookdown/blob/master/inst/examples/css/style.css. Look specifically at `.level1 .header-section-number` – Marius Aug 29 '19 at 01:46

1 Answers1

0

I manage to do that with:

.level1 .header-section-number {
  display: inline-block;
  border-bottom: 3px solid;
}

.level2 .header-section-number {
  border-bottom: none;
}
Ferroao
  • 3,042
  • 28
  • 53