mizuho 0.9.6 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. data/README.markdown +4 -2
  2. data/Rakefile +0 -37
  3. data/asciidoc/BUGS +9 -18
  4. data/asciidoc/BUGS.txt +5 -14
  5. data/asciidoc/CHANGELOG +1433 -266
  6. data/asciidoc/CHANGELOG.txt +2821 -1810
  7. data/asciidoc/COPYING +339 -339
  8. data/asciidoc/COPYRIGHT +18 -18
  9. data/asciidoc/INSTALL +189 -30
  10. data/asciidoc/INSTALL.txt +175 -19
  11. data/asciidoc/MANIFEST +88 -0
  12. data/asciidoc/Makefile.in +29 -13
  13. data/asciidoc/README +16 -17
  14. data/asciidoc/README.txt +35 -36
  15. data/asciidoc/a2x.py +902 -0
  16. data/asciidoc/asciidoc.conf +610 -455
  17. data/asciidoc/asciidoc.py +1965 -1061
  18. data/asciidoc/asciidocapi.py +257 -0
  19. data/asciidoc/common.aap +2 -2
  20. data/asciidoc/configure +1170 -1023
  21. data/asciidoc/configure.ac +1 -1
  22. data/asciidoc/dblatex/asciidoc-dblatex.xsl +42 -0
  23. data/asciidoc/doc/a2x.1 +559 -102
  24. data/asciidoc/doc/a2x.1.txt +233 -91
  25. data/asciidoc/doc/article-docinfo.xml +87 -0
  26. data/asciidoc/doc/article.pdf +0 -0
  27. data/asciidoc/doc/article.txt +139 -122
  28. data/asciidoc/doc/asciidoc.1 +157 -46
  29. data/asciidoc/doc/asciidoc.1.txt +171 -118
  30. data/asciidoc/doc/asciidoc.conf +7 -8
  31. data/asciidoc/doc/asciidoc.dict +960 -635
  32. data/asciidoc/doc/asciidoc.txt +2335 -1464
  33. data/asciidoc/doc/asciidocapi.txt +189 -0
  34. data/asciidoc/doc/asciimathml.txt +14 -17
  35. data/asciidoc/doc/book-multi.txt +181 -155
  36. data/asciidoc/doc/book.epub +0 -0
  37. data/asciidoc/doc/book.txt +156 -131
  38. data/asciidoc/doc/customers.csv +18 -18
  39. data/asciidoc/doc/epub-notes.txt +210 -0
  40. data/asciidoc/doc/faq.txt +1122 -547
  41. data/asciidoc/doc/latex-backend.txt +192 -191
  42. data/asciidoc/doc/latex-bugs.txt +134 -0
  43. data/asciidoc/doc/latex-filter.pdf +0 -0
  44. data/asciidoc/doc/latex-filter.txt +196 -0
  45. data/asciidoc/doc/latexmath.txt +13 -136
  46. data/asciidoc/doc/latexmathml.txt +2 -2
  47. data/asciidoc/doc/main.aap +233 -297
  48. data/asciidoc/doc/music-filter.pdf +0 -0
  49. data/asciidoc/doc/music-filter.txt +55 -65
  50. data/asciidoc/doc/publishing-ebooks-with-asciidoc.txt +398 -0
  51. data/asciidoc/doc/slidy-example.txt +167 -0
  52. data/asciidoc/doc/slidy.txt +113 -0
  53. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  54. data/asciidoc/doc/source-highlight-filter.txt +45 -20
  55. data/asciidoc/doc/testasciidoc.txt +231 -0
  56. data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +30 -8
  57. data/asciidoc/docbook-xsl/chunked.xsl +17 -19
  58. data/asciidoc/docbook-xsl/common.xsl +106 -67
  59. data/asciidoc/docbook-xsl/epub.xsl +35 -0
  60. data/asciidoc/docbook-xsl/fo.xsl +3 -0
  61. data/asciidoc/docbook-xsl/htmlhelp.xsl +16 -17
  62. data/asciidoc/docbook-xsl/manpage.xsl +31 -31
  63. data/asciidoc/docbook-xsl/text.xsl +6 -1
  64. data/asciidoc/docbook-xsl/xhtml.xsl +14 -14
  65. data/asciidoc/docbook45.conf +759 -0
  66. data/asciidoc/filters/code/code-filter-readme.txt +37 -37
  67. data/asciidoc/filters/code/code-filter-test.txt +15 -15
  68. data/asciidoc/filters/code/code-filter.conf +8 -8
  69. data/asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt +104 -64
  70. data/asciidoc/filters/graphviz/graphviz-filter.conf +20 -16
  71. data/asciidoc/filters/graphviz/graphviz2png.py +54 -39
  72. data/asciidoc/filters/latex/latex-filter.conf +18 -0
  73. data/asciidoc/filters/latex/latex2png.py +216 -0
  74. data/asciidoc/filters/music/music-filter.conf +8 -17
  75. data/asciidoc/filters/music/music2png.py +40 -32
  76. data/asciidoc/filters/source/source-highlight-filter.conf +40 -34
  77. data/asciidoc/help.conf +261 -96
  78. data/asciidoc/html4.conf +505 -460
  79. data/asciidoc/html5.conf +686 -0
  80. data/asciidoc/images/highlighter.png +0 -0
  81. data/asciidoc/images/icons/caution.png +0 -0
  82. data/asciidoc/images/icons/example.png +0 -0
  83. data/asciidoc/images/icons/important.png +0 -0
  84. data/asciidoc/images/icons/note.png +0 -0
  85. data/asciidoc/images/icons/tip.png +0 -0
  86. data/asciidoc/images/icons/warning.png +0 -0
  87. data/asciidoc/images/smallnew.png +0 -0
  88. data/asciidoc/javascripts/asciidoc.js +189 -0
  89. data/asciidoc/javascripts/slidy.js +2845 -0
  90. data/asciidoc/javascripts/toc.js +8 -0
  91. data/asciidoc/lang-de.conf +57 -0
  92. data/asciidoc/lang-en.conf +54 -0
  93. data/asciidoc/lang-es.conf +49 -9
  94. data/asciidoc/lang-fr.conf +59 -0
  95. data/asciidoc/lang-hu.conf +55 -0
  96. data/asciidoc/lang-it.conf +55 -0
  97. data/asciidoc/lang-nl.conf +57 -0
  98. data/asciidoc/lang-pt-BR.conf +56 -0
  99. data/asciidoc/lang-ru.conf +60 -0
  100. data/asciidoc/lang-uk.conf +60 -0
  101. data/asciidoc/latex.conf +700 -663
  102. data/asciidoc/main.aap +77 -0
  103. data/asciidoc/slidy.conf +136 -0
  104. data/asciidoc/{examples/website/xhtml11-manpage.css → stylesheets/asciidoc-manpage.css} +1 -1
  105. data/asciidoc/stylesheets/asciidoc.css +508 -0
  106. data/asciidoc/stylesheets/docbook-xsl.css +322 -272
  107. data/asciidoc/stylesheets/flask-manpage.css +1 -0
  108. data/asciidoc/stylesheets/flask.css +584 -0
  109. data/asciidoc/stylesheets/pygments.css +66 -0
  110. data/asciidoc/stylesheets/slidy.css +445 -0
  111. data/asciidoc/stylesheets/toc2.css +33 -0
  112. data/asciidoc/stylesheets/volnitsky-manpage.css +1 -0
  113. data/asciidoc/stylesheets/volnitsky.css +435 -0
  114. data/asciidoc/stylesheets/xhtml11-quirks.css +5 -3
  115. data/asciidoc/tests/asciidocapi.py +257 -0
  116. data/asciidoc/tests/data/deprecated-quotes.txt +12 -0
  117. data/asciidoc/tests/data/filters-test.txt +90 -0
  118. data/asciidoc/tests/data/lang-de-test.txt +106 -0
  119. data/asciidoc/tests/data/lang-en-test.txt +114 -0
  120. data/asciidoc/tests/data/lang-es-test.txt +106 -0
  121. data/asciidoc/tests/data/lang-fr-test.txt +106 -0
  122. data/asciidoc/tests/data/lang-hu-test.txt +106 -0
  123. data/asciidoc/tests/data/lang-nl-test.txt +94 -0
  124. data/asciidoc/tests/data/lang-pt-BR-test.txt +106 -0
  125. data/asciidoc/tests/data/lang-ru-test.txt +106 -0
  126. data/asciidoc/tests/data/lang-uk-test.txt +106 -0
  127. data/asciidoc/tests/data/oldtables.txt +64 -0
  128. data/asciidoc/tests/data/rcs-id-marker-test.txt +6 -0
  129. data/asciidoc/tests/data/testcases.conf +2 -0
  130. data/asciidoc/tests/data/testcases.txt +740 -0
  131. data/asciidoc/tests/data/utf8-bom-test.txt +9 -0
  132. data/asciidoc/tests/data/utf8-examples.txt +217 -0
  133. data/asciidoc/tests/testasciidoc.conf +520 -0
  134. data/asciidoc/tests/testasciidoc.py +411 -0
  135. data/asciidoc/text.conf +16 -16
  136. data/asciidoc/vim/syntax/asciidoc.vim +99 -91
  137. data/asciidoc/wordpress.conf +43 -3
  138. data/asciidoc/xhtml11-quirks.conf +61 -57
  139. data/asciidoc/xhtml11.conf +684 -645
  140. data/lib/mizuho.rb +2 -0
  141. data/lib/mizuho/generator.rb +2 -2
  142. data/test/generator_spec.rb +1 -1
  143. data/test/parser_spec.rb +1 -1
  144. data/test/spec_helper.rb +3 -4
  145. metadata +87 -88
  146. data/asciidoc/a2x +0 -674
  147. data/asciidoc/doc/article.css-embedded.html +0 -602
  148. data/asciidoc/doc/article.html +0 -46
  149. data/asciidoc/doc/asciidoc-revhistory.xml +0 -27
  150. data/asciidoc/doc/asciidoc.1.css-embedded.html +0 -598
  151. data/asciidoc/doc/asciidoc.1.css.html +0 -212
  152. data/asciidoc/doc/asciidoc.1.html +0 -190
  153. data/asciidoc/doc/asciidoc.css-embedded.html +0 -7853
  154. data/asciidoc/doc/asciidoc.css.html +0 -7416
  155. data/asciidoc/doc/asciidoc.html +0 -3339
  156. data/asciidoc/doc/book-multi.css-embedded.html +0 -575
  157. data/asciidoc/doc/book-multi.html +0 -55
  158. data/asciidoc/doc/book.css-embedded.html +0 -607
  159. data/asciidoc/doc/book.html +0 -43
  160. data/asciidoc/doc/docbook-xsl.css +0 -272
  161. data/asciidoc/doc/latex-backend.html +0 -117
  162. data/asciidoc/doc/music-filter.html +0 -566
  163. data/asciidoc/doc/source-highlight-filter.html +0 -214
  164. data/asciidoc/docbook.conf +0 -721
  165. data/asciidoc/examples/website/ASCIIMathML.js +0 -938
  166. data/asciidoc/examples/website/CHANGELOG.html +0 -4389
  167. data/asciidoc/examples/website/CHANGELOG.txt +0 -1810
  168. data/asciidoc/examples/website/INSTALL.html +0 -161
  169. data/asciidoc/examples/website/INSTALL.txt +0 -71
  170. data/asciidoc/examples/website/LaTeXMathML.js +0 -1223
  171. data/asciidoc/examples/website/README-website.html +0 -118
  172. data/asciidoc/examples/website/README-website.txt +0 -29
  173. data/asciidoc/examples/website/README.html +0 -125
  174. data/asciidoc/examples/website/README.txt +0 -36
  175. data/asciidoc/examples/website/a2x.1.html +0 -419
  176. data/asciidoc/examples/website/a2x.1.txt +0 -204
  177. data/asciidoc/examples/website/asciidoc-docbook-xsl.html +0 -130
  178. data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +0 -43
  179. data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +0 -130
  180. data/asciidoc/examples/website/asciimathml.txt +0 -64
  181. data/asciidoc/examples/website/build-website.sh +0 -25
  182. data/asciidoc/examples/website/customers.csv +0 -18
  183. data/asciidoc/examples/website/downloads.html +0 -257
  184. data/asciidoc/examples/website/downloads.txt +0 -121
  185. data/asciidoc/examples/website/faq.html +0 -673
  186. data/asciidoc/examples/website/faq.txt +0 -547
  187. data/asciidoc/examples/website/index.html +0 -419
  188. data/asciidoc/examples/website/index.txt +0 -245
  189. data/asciidoc/examples/website/latex-backend.html +0 -535
  190. data/asciidoc/examples/website/latex-backend.txt +0 -191
  191. data/asciidoc/examples/website/latexmathml.txt +0 -41
  192. data/asciidoc/examples/website/layout1.conf +0 -161
  193. data/asciidoc/examples/website/layout1.css +0 -65
  194. data/asciidoc/examples/website/layout2.conf +0 -158
  195. data/asciidoc/examples/website/layout2.css +0 -93
  196. data/asciidoc/examples/website/manpage.html +0 -266
  197. data/asciidoc/examples/website/manpage.txt +0 -118
  198. data/asciidoc/examples/website/music-filter.html +0 -242
  199. data/asciidoc/examples/website/music-filter.txt +0 -158
  200. data/asciidoc/examples/website/music1.abc +0 -12
  201. data/asciidoc/examples/website/music1.png +0 -0
  202. data/asciidoc/examples/website/music2.ly +0 -9
  203. data/asciidoc/examples/website/music2.png +0 -0
  204. data/asciidoc/examples/website/newlists.txt +0 -40
  205. data/asciidoc/examples/website/newtables.txt +0 -397
  206. data/asciidoc/examples/website/sample1.png +0 -0
  207. data/asciidoc/examples/website/sample3.png +0 -0
  208. data/asciidoc/examples/website/sample4.png +0 -0
  209. data/asciidoc/examples/website/source-highlight-filter.html +0 -286
  210. data/asciidoc/examples/website/source-highlight-filter.txt +0 -203
  211. data/asciidoc/examples/website/support.html +0 -78
  212. data/asciidoc/examples/website/support.txt +0 -5
  213. data/asciidoc/examples/website/toc.js +0 -69
  214. data/asciidoc/examples/website/userguide.html +0 -7460
  215. data/asciidoc/examples/website/userguide.txt +0 -4979
  216. data/asciidoc/examples/website/version83.txt +0 -37
  217. data/asciidoc/examples/website/version9.html +0 -143
  218. data/asciidoc/examples/website/version9.txt +0 -48
  219. data/asciidoc/examples/website/xhtml11-quirks.css +0 -41
  220. data/asciidoc/examples/website/xhtml11.css +0 -328
  221. data/asciidoc/stylesheets/xhtml11-manpage.css +0 -18
  222. data/asciidoc/stylesheets/xhtml11.css +0 -328
@@ -1,535 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
- <meta name="generator" content="AsciiDoc 8.3.3" />
7
- <link rel="stylesheet" href="./xhtml11.css" type="text/css" />
8
- <link rel="stylesheet" href="./xhtml11-quirks.css" type="text/css" />
9
- <link rel="stylesheet" href="./layout1.css" type="text/css" />
10
- <title>LaTeX backend for Asciidoc</title>
11
- </head>
12
- <body>
13
- <div id="layout-banner">
14
- <div id="layout-title">AsciiDoc</div>
15
- <div id="layout-description">Text based document generation</div>
16
- </div>
17
- <table>
18
- <tr valign="top">
19
- <td id="layout-menu">
20
- <div>&#187;<a href="index.html">Home</a></div>
21
- <div>&#187;<a href="manpage.html">Man&nbsp;Page</a></div>
22
- <div>&#187;<a href="userguide.html">User&nbsp;Guide</a></div>
23
- <div>&#187;<a href="http://powerman.name/doc/asciidoc">Cheatsheet</a></div>
24
- <div>&#187;<a href="a2x.1.html">a2x</a></div>
25
- <div>&#187;<a href="README.html">README</a></div>
26
- <div>&#187;<a href="CHANGELOG.html">ChangeLog</a></div>
27
- <div>&#187;<a href="INSTALL.html">Installation</a></div>
28
- <div>&#187;<a href="downloads.html">Downloads</a></div>
29
- <div>&#187;<a href="faq.html">FAQ</a></div>
30
- <div>&#187;<a href="support.html">Support</a></div>
31
- <div id="page-source">&#187;<a href="latex-backend.txt">Page&nbsp;Source</a></div>
32
- </td>
33
- <td>
34
- <div id="layout-content">
35
- <div id="header">
36
- <h1>LaTeX backend for Asciidoc</h1>
37
- <span id="author">Benjamin Klum</span><br />
38
- <span id="email"><tt>&lt;<a href="mailto:benjamin.klum@gmail.com">benjamin.klum@gmail.com</a>&gt;</tt></span><br />
39
- <span id="revision">version 1.0,</span>
40
- June 2006
41
- </div>
42
- <h2 id="_introduction">Introduction</h2>
43
- <div class="sectionbody">
44
- <div class="paragraph"><p>LaTeX backend is a configuration file for Stuart Rackham&#8217;s <a href="http://www.methods.co.nz/asciidoc/">Asciidoc</a>. It generates high-level LaTeX markup from Asciidoc documents. LaTeX is a document preparation system for TeX which in turn is a popular typesetting system. It is well known for producing excellently typesetted high quality printouts, especially suited for scientific text.</p></div>
45
- </div>
46
- <h2 id="_tutorial">Tutorial</h2>
47
- <div class="sectionbody">
48
- <div class="paragraph"><p>Getting a ready-to-print document from an Asciidoc document using the LaTeX backend involves at least two steps:</p></div>
49
- <div class="olist arabic"><ol class="arabic">
50
- <li>
51
- <p>
52
- Conversion of the Asciidoc document into a LaTeX document (this is done by Asciidoc using the LaTeX backend)
53
- </p>
54
- </li>
55
- <li>
56
- <p>
57
- Conversion of the LaTeX document into a PDF document (this is done by the TeX system)
58
- </p>
59
- </li>
60
- </ol></div>
61
- <div class="paragraph"><p>Try to create a PDF document from the Asciidoc document <tt>article.txt</tt> which resides in the <tt>doc</tt> directory of Asciidoc:</p></div>
62
- <div class="olist2 loweralpha"><ol class="loweralpha">
63
- <li>
64
- <p>
65
- Make a copy of <tt>article.txt</tt> in a directory of your choice, let&#8217;s call it <tt>latex-test</tt>.
66
- </p>
67
- </li>
68
- <li>
69
- <p>
70
- Make sure that all images referenced in <tt>article.txt</tt> exist in <tt>latex-test</tt>. Brute force approach: Copy the whole <tt>images</tt> directory from Asciidoc directory into <tt>latex-test</tt>.
71
- </p>
72
- </li>
73
- <li>
74
- <p>
75
- Change directory to <tt>latex-test</tt> and type following commands:
76
- </p>
77
- <div class="literalblock">
78
- <div class="content">
79
- <pre><tt>asciidoc --unsafe --backend=latex article.txt
80
- pdflatex article.tex</tt></pre>
81
- </div></div>
82
- </li>
83
- <li>
84
- <p>
85
- Now there should be a file <tt>article.pdf</tt> in the <tt>latex-test</tt> directory.
86
- </p>
87
- </li>
88
- </ol></div>
89
- <div class="admonitionblock">
90
- <table><tr>
91
- <td class="icon">
92
- <img src="./images/icons/important.png" alt="Important" />
93
- </td>
94
- <td class="content">
95
- <div class="ulist"><ul>
96
- <li>
97
- <p>
98
- Asciidoc has to be started in <em>unsafe mode</em> when using LaTeX backend.
99
- </p>
100
- </li>
101
- <li>
102
- <p>
103
- Note that some special LaTeX packages are necessary, see <a href="#packageRequirements">here</a>.
104
- </p>
105
- </li>
106
- </ul></div>
107
- </td>
108
- </tr></table>
109
- </div>
110
- </div>
111
- <h2 id="_general_notes">General notes</h2>
112
- <div class="sectionbody">
113
- <h3 id="_quality_of_latex_output">Quality of LaTeX output</h3><div style="clear:left"></div>
114
- <div class="paragraph"><p>High-level LaTeX is not very straightforward to generate. Therefore there&#8217;s no guarantee that the generated output is valid and compiles successfully. At all, this backend should be considered as rather experimental. You should have been already in touch with LaTeX in order to use the backend effectively because LaTeX compilation errors can be really nasty.</p></div>
115
- <div class="paragraph"><p>Nevertheless good results can be achieved by using LaTeX backend. Try for example to compile Stuart Rackham&#8217;s Asciidoc documentation, a rather large document. It should compile without problems. However, the code filter might have to be reconfigured for the code filter example to work.</p></div>
116
- <h3 id="_configuration_file_customization">Configuration file customization</h3><div style="clear:left"></div>
117
- <div class="paragraph"><p>Like every other Asciidoc backend the LaTeX backend can be customized easily to fit the user&#8217;s needs. Actually it is very important to have this option since LaTeX doesn&#8217;t have a companion language like CSS which allows to put styling information in a separate file. Read more about the LaTeX backend configuration file <a href="#configurationFile">here</a>.</p></div>
118
- <h3 id="_output_optimization">Output optimization</h3><div style="clear:left"></div>
119
- <div class="paragraph"><p>The LaTeX output is optimized for creating PDF documents using <em>pdflatex</em>.</p></div>
120
- <h3 id="unicodeSupport">Unicode support</h3><div style="clear:left"></div>
121
- <div class="paragraph"><p>Unfortunately TeX/LaTeX does not have native unicode support. The package <em>ucs</em> adds elementary unicode support by introducing UTF-8 input encoding recognition and by defining lookup tables which contain the corresponding LaTeX commands for unicode characters. But these lookup tables are far from being complete. When a unicode character is found which is not defined in the lookup tables an error is raised by the TeX/LaTeX compiler. Note that TeX/LaTeX compilation errors caused by missing unicode character definitions are not fatal, that means the result is probably readable but undefined unicode characters are replaced with <tt>[U+&#8230;]</tt>. You may (de)activate the recognition of escaped unicode characters. See the <a href="#latex-recognize-escaped-unicode">[latex-recognize-escaped-unicode]</a> backend option.</p></div>
122
- </div>
123
- <h2 id="_backend_specific_features">Backend specific features</h2>
124
- <div class="sectionbody">
125
- <h3 id="_special_sections">Special sections</h3><div style="clear:left"></div>
126
- <div class="paragraph"><p>LaTeX backend supports the following special sections and replaces them with corresponding LaTeX commands or environments:</p></div>
127
- <div class="ulist"><ul>
128
- <li>
129
- <p>
130
- Abstract (only for document type <em>article</em>)
131
- </p>
132
- </li>
133
- <li>
134
- <p>
135
- Dedication (only for document type <em>book</em>)
136
- </p>
137
- </li>
138
- <li>
139
- <p>
140
- Index
141
- </p>
142
- </li>
143
- <li>
144
- <p>
145
- Bibliography (only when the attribute <em>latex-use-bibliography-environment</em> is set)
146
- </p>
147
- </li>
148
- <li>
149
- <p>
150
- Appendix
151
- </p>
152
- </li>
153
- <li>
154
- <p>
155
- Contents
156
- </p>
157
- </li>
158
- </ul></div>
159
- <h3 id="internalCrossReferences">Internal cross references</h3><div style="clear:left"></div>
160
- <div class="paragraph"><p>Macros for internal cross references have been extended by the attribute <em>style</em>.</p></div>
161
- <div class="literalblock">
162
- <div class="content">
163
- <pre><tt>xref:&lt;id&gt;[&lt;caption&gt;, style=&lt;style&gt;]</tt></pre>
164
- </div></div>
165
- <div class="paragraph"><p>or</p></div>
166
- <div class="literalblock">
167
- <div class="content">
168
- <pre><tt>&lt;&lt;&lt;id&gt;,&lt;caption&gt;,&lt;style&gt;&gt;&gt;</tt></pre>
169
- </div></div>
170
- <div class="paragraph"><p>The additional attribute <em>style</em> can have following values:</p></div>
171
- <div class="dlist"><dl>
172
- <dt class="hdlist1">
173
- page
174
- </dt>
175
- <dd>
176
- <p>
177
- Let&#8217;s LaTeX print the page number of the referenced anchor.
178
- </p>
179
- </dd>
180
- <dt class="hdlist1">
181
- ref
182
- </dt>
183
- <dd>
184
- <p>
185
- Let&#8217;s LaTeX print the number of the section, subsection, figure, table or theorem the referenced anchor resides.
186
- </p>
187
- </dd>
188
- <dt class="hdlist1">
189
- autoref
190
- </dt>
191
- <dd>
192
- <p>
193
- Let&#8217;s LaTeX print the number of the section, subsection, figure, table or theorem the referenced anchor resides preceded with a contextual label.
194
- </p>
195
- </dd>
196
- <dt class="hdlist1">
197
- cite
198
- </dt>
199
- <dd>
200
- <p>
201
- Let&#8217;s LaTeX interprete this reference as a reference to a bibliography entry. If the attribute <em>latex-use-bibliography-environment</em> is set, references with <em>cite</em> style as well as their corresponding bibliography anchors are presented as automatically generated numbers.
202
- </p>
203
- </dd>
204
- </dl></div>
205
- <div class="paragraph"><p>If the <em>style</em> attribute is not set the reference is printed the common way.</p></div>
206
- <h3 id="_options">Options</h3><div style="clear:left"></div>
207
- <div class="paragraph"><p>LaTeX document generation is influenced by the following attributes:</p></div>
208
- <div class="dlist"><dl>
209
- <dt class="hdlist1">
210
- latex-table-rowlimit
211
- </dt>
212
- <dd>
213
- <p>
214
- The maximum number of rows for typesetting tables using the <em>tabular</em> environment. If a table has more rows than <em>latex-table-rowlimit</em>, <em>longtable</em> environment is used instead of <em>tabular</em> environment. <em>longtable</em> environment supports tables spanning over several pages.
215
- </p>
216
- </dd>
217
- <dt class="hdlist1">
218
- latex-use-bibliography-environment
219
- </dt>
220
- <dd>
221
- <p>
222
- If <em>latex-use-bibliography-environment</em> is defined, <em>thebibliography</em> environment is used for the bibliography section. As a result bibliography entries are automatically numbered. Note that this works only if the bibliography section contains exclusively bibliography list items which start with a bibliography entry ([[[&#8230;]]]). Otherwise a TeX/LaTeX compilation error will occur. In order to display bibliography references correctly their <em>style</em> attribute must be set to <em>cite</em>. For more information see <a href="#internalCrossReferences">Internal cross references</a>.
223
- </p>
224
- </dd>
225
- <dt class="hdlist1">
226
- latex-indent-paragraphs
227
- </dt>
228
- <dd>
229
- <p>
230
- If <em>latex-indent-paragraphs</em> is defined, the first line of paragraphs will be indented. By default LaTeX backend prevents paragraph indentation and prints paragraphs with preceding vertical space.
231
- </p>
232
- </dd>
233
- <dt class="hdlist1">
234
- <a id="latex-recognize-escaped-unicode"></a> latex-recognize-escaped-unicode
235
- </dt>
236
- <dd>
237
- <p>
238
- If <em>latex-recognize-escaped-unicode</em> is defined, escaped unicode characters (e.g. <tt>{amp}#960;</tt> or <tt>{amp}#x3C0;</tt>) will be recognized. This can lead to LaTeX compilation errors since LaTeX unicode support is only rudimentary. For more information see <a href="#unicodeSupport">Unicode support</a>.
239
- </p>
240
- </dd>
241
- <dt class="hdlist1">
242
- latex-use-custom-list-items
243
- </dt>
244
- <dd>
245
- <p>
246
- If <em>latex-use-custom-list-items</em> is defined, lists will be bulleted or enumerated the way you have typed them in the original Asciidoc document. That means, <tt>*</tt> turns into a circle bullet, <tt>-</tt> turns into a dash, <tt>.</tt> turns into a number and <tt>..</tt> turns into a letter. Otherwise LaTeX will use different bullets and enumeration characters depending on the level of nesting.
247
- </p>
248
- </dd>
249
- <dt class="hdlist1">
250
- latex-use-colored-tables
251
- </dt>
252
- <dd>
253
- <p>
254
- If <em>latex-use-colored-tables</em> is defined, tables will be printed colored.
255
- </p>
256
- </dd>
257
- <dt class="hdlist1">
258
- latex-use-running-title-headings
259
- </dt>
260
- <dd>
261
- <p>
262
- If <em>latex-use-running-title-headings</em> is defined, <em>pagestyle</em> will be set to <em>headings</em> which results in running titles in the head.
263
- </p>
264
- </dd>
265
- <dt class="hdlist1">
266
- latex-use-colored-sidebar-blocks
267
- </dt>
268
- <dd>
269
- <p>
270
- If <em>latex-use-colored-sidebar-blocks</em> is defined, sidebar block content will be put in a color box instead of being indented by a vertical bar.
271
- </p>
272
- </dd>
273
- <dt class="hdlist1">
274
- icons
275
- </dt>
276
- <dd>
277
- <p>
278
- Link admonition paragraph and admonition block icon images and badge images. By default icons is undefined and text is used in place of icon images.
279
- </p>
280
- </dd>
281
- <dt class="hdlist1">
282
- encoding
283
- </dt>
284
- <dd>
285
- <p>
286
- Set the input and output document character set encoding. Currently <tt>ISO-8859-1</tt> and <tt>UTF-8</tt> are supported.
287
- </p>
288
- </dd>
289
- </dl></div>
290
- </div>
291
- <h2 id="_requirements">Requirements</h2>
292
- <div class="sectionbody">
293
- <h3 id="_general">General</h3><div style="clear:left"></div>
294
- <div class="paragraph"><p>The following software is necessary for using the LaTeX backend:</p></div>
295
- <div class="ulist"><ul>
296
- <li>
297
- <p>
298
- An up-to-date version of <a href="http://www.methods.co.nz/asciidoc/">Asciidoc</a>
299
- </p>
300
- </li>
301
- <li>
302
- <p>
303
- An up-to-date TeX distribution, e.g.:
304
- </p>
305
- <div class="ulist"><ul>
306
- <li>
307
- <p>
308
- <a href="http://www.miktex.org/">MiKTeX</a> for Windows
309
- </p>
310
- </li>
311
- <li>
312
- <p>
313
- <a href="http://www.tug.org/tetex/">teTeX</a> for Linux
314
- </p>
315
- </li>
316
- </ul></div>
317
- </li>
318
- </ul></div>
319
- <h3 id="packageRequirements">TeX/LaTeX Package requirements</h3><div style="clear:left"></div>
320
- <div class="paragraph"><p>LaTeX backend makes use of some LaTeX specialities which don&#8217;t belong to a minimal TeX/LaTeX distribution. However, I took special care not to employ exotic packages. Hence the following packages should be available in most package repositories. The table is not complete yet because I don&#8217;t know the package names for all TeX distributions.</p></div>
321
- <div class="tableblock">
322
- <table rules="all"
323
- width="100%"
324
- frame="border"
325
- cellspacing="0" cellpadding="4">
326
- <col width="12%" />
327
- <col width="12%" />
328
- <col width="12%" />
329
- <col width="12%" />
330
- <col width="50%" />
331
- <thead valign="top">
332
- <tr>
333
- <th align="left">Speciality </th>
334
- <th align="left"> MiKTeX package name </th>
335
- <th align="left"> teTeX package name </th>
336
- <th align="left"> TeX Live package name </th>
337
- <th align="left"> Description</th>
338
- </tr>
339
- </thead>
340
- <tbody valign="top">
341
- <tr>
342
- <td align="left"><p class="table">KOMA-Script</p></td>
343
- <td align="left"><p class="table">koma-script</p></td>
344
- <td align="left"><p class="table"></p></td>
345
- <td align="left"><p class="table"></p></td>
346
- <td align="left"><p class="table">LaTeX backend uses the document classes <em>scrartcl</em> and <em>scrbook</em> as well as some other specialities defined in the <em>KOMA-Script</em> package, e.g. the commands <tt>\\addmargin{}</tt> and <tt>\minisec{}</tt>.</p></td>
347
- </tr>
348
- <tr>
349
- <td align="left"><p class="table">xcolor.sty</p></td>
350
- <td align="left"><p class="table">xcolor</p></td>
351
- <td align="left"><p class="table"></p></td>
352
- <td align="left"><p class="table"></p></td>
353
- <td align="left"><p class="table">Used to produce colored boxes and tables.</p></td>
354
- </tr>
355
- <tr>
356
- <td align="left"><p class="table">colortbl.sty</p></td>
357
- <td align="left"><p class="table">colortbl</p></td>
358
- <td align="left"><p class="table"></p></td>
359
- <td align="left"><p class="table"></p></td>
360
- <td align="left"><p class="table">Used to produce colored tables.</p></td>
361
- </tr>
362
- <tr>
363
- <td align="left"><p class="table">type1ec.sty</p></td>
364
- <td align="left"><p class="table">cm-super</p></td>
365
- <td align="left"><p class="table"></p></td>
366
- <td align="left"><p class="table"></p></td>
367
- <td align="left"><p class="table">Enables high quality fonts for PDF output.</p></td>
368
- </tr>
369
- <tr>
370
- <td align="left"><p class="table">hyperref.sty</p></td>
371
- <td align="left"><p class="table">hyperref</p></td>
372
- <td align="left"><p class="table"></p></td>
373
- <td align="left"><p class="table"></p></td>
374
- <td align="left"><p class="table">Extensive support for hypertext in PDF documents.</p></td>
375
- </tr>
376
- <tr>
377
- <td align="left"><p class="table">enumerate.sty</p></td>
378
- <td align="left"><p class="table">tools</p></td>
379
- <td align="left"><p class="table"></p></td>
380
- <td align="left"><p class="table"></p></td>
381
- <td align="left"><p class="table">When <em>latex-use-custom-list-items</em> is defined this package is used for determining the enumeration character.</p></td>
382
- </tr>
383
- <tr>
384
- <td align="left"><p class="table">graphicx.sty</p></td>
385
- <td align="left"><p class="table">graphics</p></td>
386
- <td align="left"><p class="table"></p></td>
387
- <td align="left"><p class="table"></p></td>
388
- <td align="left"><p class="table">Used for including images.</p></td>
389
- </tr>
390
- <tr>
391
- <td align="left"><p class="table">longtable.sty</p></td>
392
- <td align="left"><p class="table">tools</p></td>
393
- <td align="left"><p class="table"></p></td>
394
- <td align="left"><p class="table"></p></td>
395
- <td align="left"><p class="table">Enables page spanning tables.</p></td>
396
- </tr>
397
- <tr>
398
- <td align="left"><p class="table">ucs.sty</p></td>
399
- <td align="left"><p class="table">unicode</p></td>
400
- <td align="left"><p class="table"></p></td>
401
- <td align="left"><p class="table"></p></td>
402
- <td align="left"><p class="table">Enables support for unicode characters.</p></td>
403
- </tr>
404
- <tr>
405
- <td align="left"><p class="table">textcomp</p></td>
406
- <td align="left"><p class="table">ltxbase</p></td>
407
- <td align="left"><p class="table"></p></td>
408
- <td align="left"><p class="table"></p></td>
409
- <td align="left"><p class="table">Used for printing various symbols like arrows. Should be already installed.</p></td>
410
- </tr>
411
- <tr>
412
- <td align="left"><p class="table">alltt</p></td>
413
- <td align="left"><p class="table">ltxbase</p></td>
414
- <td align="left"><p class="table"></p></td>
415
- <td align="left"><p class="table"></p></td>
416
- <td align="left"><p class="table">Used in literal-like blocks for retaining line and whitespace formatting. Should be already installed.</p></td>
417
- </tr>
418
- <tr>
419
- <td align="left"><p class="table">listings.sty</p></td>
420
- <td align="left"><p class="table">listings</p></td>
421
- <td align="left"><p class="table"></p></td>
422
- <td align="left"><p class="table"></p></td>
423
- <td align="left"><p class="table">Used for listing blocks.</p></td>
424
- </tr>
425
- </tbody>
426
- </table>
427
- </div>
428
- </div>
429
- <h2 id="configurationFile">About the LaTeX backend configuration file</h2>
430
- <div class="sectionbody">
431
- <div class="paragraph"><p>An important note for people who want to adapt the LaTeX backend configuration file to their own needs:</p></div>
432
- <div class="paragraph"><p>LaTeX markup has a lot of special characters, most importantly <tt>\</tt>, <tt>{</tt>, <tt>}</tt>. In order to make things less complicated, I changed the default substitution order (see entry <em>subsnormal</em> in the <tt>[miscellaneous]</tt> section). In contrast to the backends <em>docbook</em> and <em>xhtml11</em>, the <em>specialcharacters</em> substitution is applied very late. As a result all special characters produced by <em>quotes</em>, <em>specialwords</em>, <em>replacements</em>, <em>attributes</em> and <em>macros</em> become escaped at the end. If you don&#8217;t want special characters in the corresponding sections to get escaped, you&#8217;ve to use following symbols instead of the special characters.</p></div>
433
- <div class="ulist"><ul>
434
- <li>
435
- <p>
436
- <tt>!..backslash..!</tt> instead of <tt>\</tt>
437
- </p>
438
- </li>
439
- <li>
440
- <p>
441
- <tt>!..braceleft..!</tt> instead of <tt>{</tt>
442
- </p>
443
- </li>
444
- <li>
445
- <p>
446
- <tt>!..braceright..!</tt> instead of <tt>}</tt>
447
- </p>
448
- </li>
449
- </ul></div>
450
- <div class="paragraph"><p>For more special characters take a look in the <tt>[replacements2]</tt> sections. <tt>[replacements2]</tt> section is responsible for replacing the symbols with their corresponding special characters.</p></div>
451
- </div>
452
- <h2 id="_ideas">Ideas</h2>
453
- <div class="sectionbody">
454
- <h3 id="_code_listing_block">Code listing block</h3><div style="clear:left"></div>
455
- <div class="paragraph"><p>For creating highlighted code listings I suggest the use of <a href="http://www.andre-simon.de/">Highlight</a> or <a href="http://www.gnu.org/software/src-highlite/">GNU Source Highlight</a>. Both are suited for use as Asciidoc filters.</p></div>
456
- </div>
457
- <h2 id="_known_bugs">Known Bugs</h2>
458
- <div class="sectionbody">
459
- <div class="ulist"><ul>
460
- <li>
461
- <p>
462
- Sometimes LaTeX backend handles things differently from the default backends
463
- </p>
464
- </li>
465
- <li>
466
- <p>
467
- A lot of little bugs
468
- </p>
469
- </li>
470
- </ul></div>
471
- </div>
472
- <h2 id="_todo_list">Todo List</h2>
473
- <div class="sectionbody">
474
- <div class="ulist"><ul>
475
- <li>
476
- <p>
477
- Remove bugs
478
- </p>
479
- </li>
480
- <li>
481
- <p>
482
- Support for <em>grid</em> attribute in tables
483
- </p>
484
- </li>
485
- <li>
486
- <p>
487
- Better looking tables
488
- </p>
489
- </li>
490
- <li>
491
- <p>
492
- Option for squeezing output (smaller lists)
493
- </p>
494
- </li>
495
- <li>
496
- <p>
497
- Support for different languages (That would be a nice feature for Asciidoc in general)
498
- </p>
499
- </li>
500
- <li>
501
- <p>
502
- Option for switching titlepage on and off
503
- </p>
504
- </li>
505
- </ul></div>
506
- </div>
507
- <div id="footer">
508
- <div id="footer-text">
509
- Version 1.0<br />
510
- Last updated 2009-01-02 11:18:51 NZDT
511
- </div>
512
- <div id="footer-badges">
513
- <a href="http://validator.w3.org/check?uri=referer">
514
- <img style="border:none; width:88px; height:31px;"
515
- src="http://www.w3.org/Icons/valid-xhtml11"
516
- alt="Valid XHTML 1.1!" />
517
- </a>
518
- <a href="http://jigsaw.w3.org/css-validator/check/referer">
519
- <img style="border:none; width:88px; height:31px;"
520
- src="http://jigsaw.w3.org/css-validator/images/vcss"
521
- alt="Valid CSS!" />
522
- </a>
523
- <a href="http://www.mozilla.org/products/firefox/">
524
- <img style="border:none; width:110px; height:32px;"
525
- src="http://www.spreadfirefox.com/community/images/affiliates/Buttons/110x32/safer.gif"
526
- alt="Get Firefox!" />
527
- </a>
528
- </div>
529
- </div>
530
- </div>
531
- </td>
532
- </tr>
533
- </table>
534
- </body>
535
- </html>