Reputation: 15631
How to add to Docbook strikethrough functionality? I mean something like this this is striked example text. I mean HTML output generation.
Upvotes: 2
Views: 818
Reputation: 51002
Assuming that you are using DocBook-XSL, here is how you can add the strike-through effect to inline content:
Set the emphasis.propagates.style
parameter to 1.
Set the html.stylesheet
parameter to a suitable value, for example mystyle.css
.
Add the following to mystyle.css
:
span.strike { text-decoration: line-through; }
Use <emphasis role="strike">some text</emphasis>
to mark up text snippets in your XML source file that should be decorated.
Transform to HTML and behold the result.
More details can be found here: http://www.sagehill.net/docbookxsl/UsingCSS.html.
Upvotes: 3