Hi,
What I would like to do is to add the current chapter name (i.e. <h1>) as vertical text in the left margin of my page.
As far as I can see, the way to achieve this would be: after each <h1>, output the chapter name again but wrapped in the necessary SVG to rotate the text, capture that flow, then output the flow in @left.
Is there a simpler way?
It seems a shame that we can't add markup using content: i.e.
@left {
content: '<svg><g><text>' flow(chapterTitle) '</text></g></svg>';
}
h1 { flow: static(chapterTitle) }
Is there something fundamental that stops that from happening?
Regards
Peter
What I would like to do is to add the current chapter name (i.e. <h1>) as vertical text in the left margin of my page.
As far as I can see, the way to achieve this would be: after each <h1>, output the chapter name again but wrapped in the necessary SVG to rotate the text, capture that flow, then output the flow in @left.
Is there a simpler way?
It seems a shame that we can't add markup using content: i.e.
@left {
content: '<svg><g><text>' flow(chapterTitle) '</text></g></svg>';
}
h1 { flow: static(chapterTitle) }
Is there something fundamental that stops that from happening?
Regards
Peter