@@ -643,7 +643,7 @@ To selectively indent paragraphs you could either create an 'indented'
643
643
paragraph style from scratch or use the 'role' attribute.
644
644
645
645
[float]
646
- ==== Create an indented paragraph style
646
+ ==== Create an indented paragraph style (xhtml11 backend)
647
647
Define an 'indented' paragraph style, for example, by putting this in
648
648
a configuration file:
649
649
@@ -668,7 +668,7 @@ lacinia. Vivamus at lectus.
668
668
---------------------------------------------------------------------
669
669
670
670
[float]
671
- ==== Use the role attribute
671
+ ==== Use the role attribute (xhtml11 backend)
672
672
Add the following line to the `xhtml11.css` stylesheet (or a custom
673
673
stylesheet).
674
674
@@ -686,10 +686,36 @@ vestibulum mi. Aliquam pede. Aenean lobortis lorem et lacus. Sed
686
686
lacinia. Vivamus at lectus.
687
687
---------------------------------------------------------------------
688
688
689
- NOTE: This FAQ applies to XHTML output not DocBook. To achieve the
690
- same results with DocBook use the 'role' attribute and customize the
691
- DocBook XSL stylesheets to indent paragraphs with the `simpara`
692
- element `role="indented"` attribute.
689
+ [float]
690
+ ==== Use the role attribute (docbook backend)
691
+ Add the following line to the distributed `docbook-xsl.css` stylesheet
692
+ or include it in a custom stylesheet.
693
+
694
+ ---------------------------------------------------------------------
695
+ p.indented {text-indent: 3em;}
696
+ ---------------------------------------------------------------------
697
+
698
+ Apply the 'role' attribute to indented paragraphs, for example:
699
+
700
+ ---------------------------------------------------------------------
701
+ [role="indented"]
702
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas
703
+ ultrices justo porttitor augue. Vestibulum pretium. Donec porta
704
+ vestibulum mi. Aliquam pede. Aenean lobortis lorem et lacus. Sed
705
+ lacinia. Vivamus at lectus.
706
+ ---------------------------------------------------------------------
707
+
708
+ If you have included the custom CSS in a separate stylesheet you will
709
+ need to specify the stylesheet file name (along with the default
710
+ `docbook-xsl.css` stylesheet file name) with the `html.stylesheet` XSL
711
+ parameter. If you are using 'a2x(1)' use the `--stylesheet` option (it
712
+ sets the `html.stylesheet` XSL parameter), for example: `--stylesheet
713
+ "docbook-xsl.css mycss.css"`.
714
+
715
+ NOTE: This applies to HTML outputs not PDF. To achieve the same
716
+ results with PDF outputs you will need to customize the DocBook XSL
717
+ Stylesheets to render indented paragraphs from DocBook `simpara`
718
+ elements containing the the `role="indented"` attribute.
693
719
694
720
695
721
== Is there a way to set default table grid and frame attributes?
0 commit comments