admin管理员组文章数量:1391934
I have an asciiDoc file with several tables and one of them need a specific styling. So far i have this working :
[cols="10%,^30%,^30%,^30%", option="header"]
|===
| {empty} s| Rédaction s| Vérification s| Approbation
| Nom | Auteur | |
| Date | {docdate} | |
| Visa | OK | |
|===
but i'd like to change this table text size and to style the header row. I tried to add a role to this table without success. So far the only way of styling the header is to set a global style to all tables in my theme.yml :
table:
head:
background-color: #555555
Is there a way to style a specific table (which is correctly rendered when converted to PDF ?)
Thanks for help :)
I have an asciiDoc file with several tables and one of them need a specific styling. So far i have this working :
[cols="10%,^30%,^30%,^30%", option="header"]
|===
| {empty} s| Rédaction s| Vérification s| Approbation
| Nom | Auteur | |
| Date | {docdate} | |
| Visa | OK | |
|===
but i'd like to change this table text size and to style the header row. I tried to add a role to this table without success. So far the only way of styling the header is to set a global style to all tables in my theme.yml :
table:
head:
background-color: #555555
Is there a way to style a specific table (which is correctly rendered when converted to PDF ?)
Thanks for help :)
Share Improve this question asked Mar 13 at 10:42 UsulUsul 12810 bronze badges1 Answer
Reset to default 0Asciidoctor PDF currently only supports custom roles for styling paragraphs and phrases. If you need to add a role to a table and have that role affect the table style, you must create an extended converter that applies the style appropriately. Fortunately, there is an example in the documentation.
本文标签: add a style to a specific table element in AsciiDoc (PDF Conversion)Stack Overflow
版权声明:本文标题:add a style to a specific table element in AsciiDoc (PDF Conversion) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744707035a2620901.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论