Health-Sprints / A-Machine

A-Machine
GNU General Public License v3.0
1 stars 0 forks source link

Folio top running headers #15

Open mrchristian opened 3 years ago

mrchristian commented 3 years ago

Question: Folio top running headers - we need to add the book title and chapter titles to the top ‘running header’ folios. What do you recommend for Vivliostyle to access this information and where should we store these names and what is the CSS to access them.

Answer: With CSS Paged Media, the standard way will be named strings but unfortunately not implemented in Vivliostyle (issue: https://github.com/vivliostyle/vivliostyle.js/issues/545). Instead, env(pub-title) and env(doc-title) can be used (related PR: https://github.com/vivliostyle/vivliostyle.js/pull/512).

MurakamiShinyu commented 3 years ago

Vivliostyle.js v2.4.0 now supports Named strings in CSS Generated Content for Paged Media Module.