You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

text-indent.fo 1.4KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3. <fo:layout-master-set>
  4. <fo:simple-page-master master-name="simplePM"
  5. page-height="25cm"
  6. page-width="20cm"
  7. margin-top="1cm"
  8. margin-bottom="1cm"
  9. margin-left="1.5cm"
  10. margin-right="1.5cm">
  11. <fo:region-body margin-top="3cm" margin-bottom="3cm"/>
  12. <fo:region-before extent="2.5cm"/>
  13. <fo:region-after extent="2.5cm"/>
  14. </fo:simple-page-master>
  15. </fo:layout-master-set>
  16. <fo:page-sequence master-reference="simplePM">
  17. <fo:flow flow-name="xsl-region-body">
  18. <fo:block text-align="start" space-before.optimum="6pt" text-indent="1in">
  19. This text is formatted into a left-justified paragraph.
  20. The first line has an indent of 1 inch from the left.
  21. This text is formatted into a left-justified paragraph.
  22. The first line has an indent of 1 inch from the left.
  23. </fo:block>
  24. <fo:block space-before.optimum="6pt" text-indent="40%">
  25. This text is formatted into a left-justified paragraph.
  26. The first line has an indent of 30% from the left.
  27. This text is formatted into a left-justified paragraph.
  28. The first line has an indent of 30% inch from the left.
  29. </fo:block>
  30. </fo:flow>
  31. </fo:page-sequence>
  32. </fo:root>