-
Notifications
You must be signed in to change notification settings - Fork 501
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
Applying custom style to paragraph using a role #483
Comments
This is not really possible as of yet. My vision is to allow a role to be specified and then allow that role to be assigned properties in the theme. The theme part you cited is correct. However, you'd use a role not a block style in the AsciiDoc:
|
That sounds good. So my understanding is that currently it is not possible to create my own style and apply it to some element. I could apply something only using extensions, right? |
That is correct. You'd need to extend the converter as described in the following blog post: http://raibledesigns.com/rd/entry/re_customizing_an_asciidoctor_pdf the updated source of which is available in the following repository: Do keep in mind, though, that it may be necessary to refactor the custom code once we address #53. |
We've now defined a place for roles in the theme (see https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#keys-role). The next step would be to make use of them for blocks, like paragraphs. |
I have figured out a way to support roles on paragraphs. Let's start there to make this capability available, then expand that support to other blocks in separate issues. |
…control font properties
…control font properties
…control font properties
I'm searching for a way to apply my custom style to a paragraph, I couldn't see anything in the https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc
I would like to define my style, eg.
mystyle:
font_size: 24
and apply it to my paragraph:, eg.
[.mystyle]
paragraph content
Is there a way to achive that in asciidoctor-pdf?
The text was updated successfully, but these errors were encountered: