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.

simple.fo 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 margin-right="0.5cm" margin-left="1.5cm" margin-bottom="2cm" margin-top="0cm" page-width="21cm" page-height="20cm" master-name="one">
  5. <fo:region-body margin-bottom="2cm" margin-top="2cm"/>
  6. <fo:region-before extent="0.5cm"/>
  7. <fo:region-after extent="0.5cm"/>
  8. </fo:simple-page-master>
  9. </fo:layout-master-set>
  10. <fo:page-sequence master-reference="one">
  11. <fo:flow flow-name="xsl-region-body">
  12. <fo:block space-after.optimum="10pt" font-weight="bold" font-size="16pt" text-align="center">
  13. Footnotes
  14. </fo:block>
  15. <fo:block color="red">
  16. The <fo:footnote>
  17. <fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
  18. <fo:footnote-body>
  19. <fo:block color="maroon">
  20. 1. A footnote is text placed at the bottom of the current or the next page.
  21. </fo:block>
  22. </fo:footnote-body>
  23. </fo:footnote>
  24. at the bottom of the page.
  25. </fo:block>
  26. <fo:block color="green">
  27. The <fo:footnote>
  28. <fo:inline font-weight="bold">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
  29. <fo:footnote-body>
  30. <fo:block color="darkgreen">
  31. 2. Another footnote with a bit more text.
  32. </fo:block>
  33. </fo:footnote-body>
  34. </fo:footnote>
  35. at the bottom of the page after the other footnote.
  36. </fo:block>
  37. <fo:block space-before.optimum="200pt" color="grey">
  38. This text is used to show the body region area.
  39. This text is used to show the body region area.
  40. This text is used to show the body region area.
  41. This text is used to show the body region area.
  42. This text is used to show the body region area.
  43. This text is used to show the body region area.
  44. This text is used to show the body region area.
  45. This text is used to show the body region area.
  46. This text is used to show the body region area.
  47. This text is used to show the body region area.
  48. This text is used to show the body region area.
  49. This text is used to show the body region area.
  50. This text is used to show the body region area.
  51. This text is used to show the body region area.
  52. This text is used to show the body region area.
  53. This text is used to show the body region area.
  54. This text is used to show the body region area.
  55. This text is used to show the body region area.
  56. This text is used to show the body region area.
  57. This text is used to show the body region area.
  58. This text is used to show the body region area.
  59. </fo:block>
  60. <fo:block break-before="page">
  61. This is for testing if a footnote cannot fit with the footnote
  62. reference text.
  63. </fo:block>
  64. <fo:block color="grey" space-before.optimum="300pt">
  65. Some filler text with no other purpose.
  66. Some filler text with no other purpose.
  67. Some filler text with no other purpose.
  68. Some filler text with no other purpose.
  69. Some filler text with no other purpose.
  70. Some filler text with no other purpose.
  71. Some filler text with no other purpose.
  72. Some filler text with no other purpose.
  73. </fo:block>
  74. <fo:block color="blue">
  75. This <fo:footnote>
  76. <fo:inline font-weight="bold">footnote</fo:inline>
  77. <fo:footnote-body>
  78. <fo:block color="darkblue">
  79. A footnote with too much text to fit on the same page as the reference. Also the
  80. reference is in the same place as the conditional footnote reference text.
  81. </fo:block>
  82. </fo:footnote-body>
  83. </fo:footnote>
  84. is at the bottom of the page where the conditional footnote reference area is.
  85. </fo:block>
  86. <fo:block break-before="page">
  87. This page also has a footnote and should have the footnote from the last page.
  88. </fo:block>
  89. <fo:block color="grey" space-before.optimum="150pt">
  90. More boring filler text.
  91. More boring filler text.
  92. More boring filler text.
  93. </fo:block>
  94. <fo:block color="fuchsia">
  95. This <fo:footnote>
  96. <fo:inline font-weight="bold">footnote</fo:inline>
  97. <fo:footnote-body>
  98. <fo:block color="purple">
  99. Another footnote.
  100. </fo:block>
  101. </fo:footnote-body>
  102. </fo:footnote>
  103. is at the bottom of the page after the footnote from the previous page.
  104. </fo:block>
  105. </fo:flow>
  106. </fo:page-sequence>
  107. </fo:root>