Skip to content

Commit

Permalink
docs(examples): Fix broken headers in Lefevre's article
Browse files Browse the repository at this point in the history
Probably broken since we introduced and fixed headers, but I had not
noticed, and only see that now while checking books with divisions
work as expected...
  • Loading branch information
Omikhleia authored and Didier Willis committed Jan 12, 2025
1 parent 36b8667 commit ce8e61f
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 2 deletions.
78 changes: 78 additions & 0 deletions examples/lefevre-tuor-idril-styles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ figure-caption-ref-number:
before:
text: "fig. "

folio-backmatter:
origin: "resilient.book"
style:
numbering:
display: "arabic"

folio-base:
origin: "resilient.book"
style:
Expand All @@ -187,6 +193,18 @@ folio-even:
before:
indent: false

folio-frontmatter:
origin: "resilient.book"
style:
numbering:
display: "roman"

folio-mainmatter:
origin: "resilient.book"
style:
numbering:
display: "arabic"

folio-odd:
inherit: "folio-base"
origin: "resilient.book"
Expand Down Expand Up @@ -268,6 +286,66 @@ header-odd:
origin: "resilient.book"
style:

listing:
origin: "resilient.book"
style:
paragraph:
after:
vbreak: false
before:
indent: false
skip: "smallskip"

listing-caption:
origin: "resilient.book"
style:
font:
size: "0.95em"
paragraph:
after:
skip: "medskip"
align: "center"
before:
indent: false
skip: "smallskip"
vbreak: false
sectioning:
counter:
id: "listings"
level: 1
numberstyle:
main: "listing-caption-main-number"
reference: "listing-caption-ref-number"
settings:
bookmark: false
goodbreak: false
toclevel: 7

listing-caption-base-number:
origin: "resilient.book"
style:

listing-caption-main-number:
inherit: "listing-caption-base-number"
origin: "resilient.book"
style:
font:
features: "+smcp"
numbering:
after:
kern: "iwsp"
text: "."
before:
text: "Listing "

listing-caption-ref-number:
inherit: "listing-caption-base-number"
origin: "resilient.book"
style:
numbering:
before:
text: "listing "

lists-enumerate-alternate1:
inherit: "lists-enumerate-base"
origin: "resilient.lists"
Expand Down
4 changes: 2 additions & 2 deletions examples/lefevre-tuor-idril.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin[papersize=6in x 9in, class=resilient.book, layout=ateliers demiluxe]{document}
\begin[papersize=6in x 9in, class=resilient.book, layout=ateliers demiluxe, headers=novel]{document}
\use[module=packages.resilient.epigraph]
\use[module=packages.resilient.abbr]
\use[module=packages.background]
Expand Down Expand Up @@ -107,7 +107,7 @@ Toute représentation ou reproduction intégrale ou partielle faite par quelque
\noheaderthispage%
\nofoliothispage%

\odd-running-header{Tolkien, le façonnement d’un monde}
\even-running-header{Tolkien, le façonnement d’un monde}
\chapter[numbering=false]{Le conte perdu de Mercure}
% The actual title had ..."— Tuor et Idril élevés au rang d’astre"
% Too long with the default styling, and 2-line chapter titles look ugly.
Expand Down

0 comments on commit ce8e61f

Please sign in to comment.