What are the character styles in docbook 5? I know there are paragraph styles which are sect1-title, sect2-title, etc. I want to know what character styles are there. Thank you.

有帮助吗?

解决方案

By using stylesheets, you can define as many "character styles" as you like. The set of stylesheets that most people use (available from the DocBook SourceForge project) provide default styling for many inline elements. There is no exhaustive list detailing any "standard" styles, but it is fairly easy to customize the output to your liking.

A style such as "italics + underline" is not supported by default, but you can add it if you want. By convention, the role attribute is used to provide a classification ("stylesheet hint") for an element. See http://www.sagehill.net/docbookxsl/CustomInlines.html for more details.


It is worth emphasizing that DocBook markup (the elements and attributes defined in a schema) is not concerned with "styles". DocBook is a semantic markup language and a key concept is that you define/describe what something is rather than what it should look like.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top