Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to style the cover titlealt #110

Merged
merged 2 commits into from
Jan 1, 2024

Conversation

figure002
Copy link
Contributor

This allows you to style the cover titlealt like so:

style:
  cover-titlealt:
    color: red

This allows you to style the cover titlealt like so:

```
style:
  cover-titlealt:
    color: red
```
@figure002
Copy link
Contributor Author

figure002 commented Oct 23, 2023

font-family and font-size don't work for some reason, but other attributes work fine.

<!-- <fo:block axsl:use-attribute-sets="__frontmatter__owner">-->
<!-- <axsl:apply-templates select="$map//*[contains(@class,' bookmap/bookmeta ')]"/>-->
<!-- </fo:block>-->
<fo:block axsl:use-attribute-sets="__frontmatter__titlealt">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In PDF2, the element <booktitlealt> uses attribute set __frontmatter__subtitle. Poor naming, but it hasn't been changed for backwards compatibility. So the implementation should use style-cover-titlealt but map to __frontmatter__subtitle. That wasy this wrapper element would not be needed. Also, if there is no <booktitlealt>, we'd still get the wrapper.

@jelovirt jelovirt merged commit 6edf989 into jelovirt:master Jan 1, 2024
6 checks passed
@jelovirt jelovirt added enhancement theme Related to theme DSL labels Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement theme Related to theme DSL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants