verbatim_html.texi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. \input texinfo @c -*-texinfo-*-
  2. @node Top,First node,(dir)
  3. @top Tests
  4. @menu
  5. * First node:: node 1
  6. * description: node @'{a}. node with braces
  7. * node: (manual)A node. node in another manual
  8. a verbatim in menu comment @verbatim verbatim on same line than @verbatim
  9. bidule
  10. @end verbatim
  11. * node d@'a:: node without braces
  12. @end menu
  13. Tests for environments not matching
  14. @quotation
  15. A quotation
  16. @end cartouche
  17. @deffn {Function Reference} print_navigation $filehandle
  18. Text
  19. @end deftypefun
  20. @table
  21. @item item
  22. line
  23. @end vtable
  24. @table @emph
  25. @item ref
  26. @example
  27. example
  28. @end display
  29. @end table
  30. @node First node
  31. @chapter first node chapter
  32. A list with bullet
  33. Before itemize, in that case @@bullet isn'right, one needs @@bullet@{@} (in info) @itemize @bullet{} @c segfault <- @item on the same line that itemize
  34. @item on the same line than item
  35. some text
  36. @item
  37. more text @end itemize
  38. A list with text before first @@item:
  39. @itemize @bullet
  40. text @item more
  41. text
  42. @end itemize
  43. @ifhtml
  44. a verbatim, not first on the line @verbatim text following @verbatim
  45. text
  46. @@@@ @ text before @end verbatim @end verbatim Text following end verbatim, must be exactly one space
  47. between end and verbatim. @@end verbatim doesn't need to begin at beginning
  48. of line.
  49. @end ifhtml
  50. In tex, @@end verbatim must be on its own on a line.
  51. A verbatim with begin and end on its own line
  52. @verbatim
  53. verbatim @samp{item}
  54. @end verbatim
  55. @ifhtml
  56. Now html @html
  57. <b>
  58. some html </b>
  59. @end html bidule ignored
  60. @@end html begins the line, and there must be exactly one space between @@end
  61. and html and thing following @@end html are ignored in info. Strangely
  62. the empty line following @@end html is ignored but spaces are inserted.
  63. @end ifhtml
  64. Now html valid for @TeX{} @html
  65. <b>
  66. some html </b>
  67. @end html
  68. Some text one the line following @@end html
  69. And html on it's own line
  70. @html
  71. <tt> an html tt</tt>
  72. @end html
  73. A sc: @sc{ieee}, and another one in example:
  74. @example
  75. @sc{aeei}
  76. @end example
  77. @ifhtml
  78. ignore @ignore ignored
  79. @end ignore bidule ignore
  80. @end ifhtml
  81. Ignore is the same than @@html.
  82. Now ifnothtml on same line @ifnothtml text following ifnothtml
  83. text following an empty line
  84. text before end ifnothtml @end ifnothtml
  85. @@end ifnothtml doesn't need to begin the line, and there can be more
  86. than one space between @@end and ifnothtml, but nothing more
  87. on the line.
  88. Text on the line before ifnothtml with text following,
  89. @ifnothtml text following ifnothtml,
  90. @end ifnothtml
  91. Text on the line following ifnothtml.
  92. Text on the line before ifnothtml without text following,
  93. @ifnothtml
  94. some text on a line between ifnothtml and end ifnothtml,
  95. @end ifnothtml
  96. Text on the line following ifnothtml.
  97. Text on the line before ifnothtml,
  98. @ifnothtml
  99. @end ifnothtml
  100. Text on the line following empty ifnothtml
  101. @TeX{} has problems with the ftable.
  102. @ifhtml
  103. an ftable on same line @ftable @bullet
  104. @item fun1
  105. @itemx fun2
  106. fun1 et fun2 @item more fun
  107. text on the same line than end @end ftable
  108. works like @@ifnothtml
  109. @end ifhtml
  110. @item outside format.
  111. @tab outside format.
  112. @multitable {@samp{bidule}}
  113. truc before table beginning @item first cell @tab ignored cell
  114. @itemx second row
  115. @end multitable
  116. before bad multitable @multitable 6 7
  117. @item 1-1 @tab 1-2 @item@tab@item 3-1 @tab 3-2 @end multitable
  118. right multitable
  119. @multitable @columnfractions 6 7
  120. @item 1-1 @tab 1-2 @item@tab@item 3-1 @tab 3-2 @end multitable
  121. Columnfraction multitable with an ignored cell
  122. @multitable @columnfractions 0.3 0.4
  123. @item 1-1 @tab 1-2 @tab 1-3 (ignored)
  124. @end multitable
  125. multitable beginning with @@tab
  126. @multitable {@samp{@verb{.something.}}} {sec}
  127. @tab after first tab
  128. @item new line
  129. @end multitable
  130. A flushright
  131. @flushright some text flushed right
  132. @end flushright
  133. A center @center Centered line
  134. And a center after empty line
  135. @center centered line after empty line
  136. And a center at end of line @center
  137. And an empty center @center
  138. An empty flushright @flushright
  139. @end flushright
  140. A verb follows:
  141. @verb{' a little
  142. very little
  143. verb '}
  144. another with space as delimiter
  145. @verb{ what@@ }
  146. @@verb followed by end of line seems incorrect.
  147. Now verb delimited with *, with an empty line, a comment and @@samp:
  148. @verb{*with
  149. verb @c comment
  150. and samp @samp{text }
  151. *}
  152. @node node @'{a}, node d@'a, First node, Top
  153. @chapter node 'a with braces
  154. In the node with braces
  155. A footnote with an empty line within.
  156. @footnote{with empty line
  157. before before}
  158. Now a ref with a footnote within, there aren't 2 paragraphes in the footnote
  159. in that case in info. tex doesn't like the paragraph break in the ref
  160. @ifhtml
  161. @ref{First
  162. node, within ref a footnote @footnote{with empty line
  163. before before}}.
  164. Conversely, a ref in a footnote
  165. @footnote{ This is a ref @ref{First node} }
  166. A footnote with an example
  167. @footnote{
  168. @example
  169. An example
  170. @end example
  171. }
  172. @end ifhtml
  173. Some @@verbatim, @@verb and @@ignore within an xref, very hard for @TeX{}:
  174. @ifhtml
  175. @xref{First node,
  176. @verbatim
  177. some
  178. verbatim @@
  179. text
  180. within an xref
  181. @end verbatim
  182. and now verb delimited with * with an empty line a comment and @@samp
  183. @verb{*with
  184. verb @c comment
  185. and samp @samp{text }
  186. next line
  187. *}
  188. last ignored sentence
  189. @ignore
  190. ignore me causing problems to makeinfo
  191. @end ignore
  192. }.
  193. @end ifhtml
  194. @xref{First node,
  195. no verb}.
  196. @node node d@'a,, node @'{a}, Top
  197. @chapter node 'a without braces
  198. @menu
  199. * node:: node
  200. @end menu
  201. @node node,,,
  202. @section node
  203. A node with gggggggg
  204. before example @example after example
  205. the example
  206. before end example @end example
  207. after end example
  208. Text only after the end
  209. @example
  210. Example
  211. @end example text following end example.
  212. @deffn category name args
  213. Deffn.
  214. @end deffn text following end deffn.
  215. @contents
  216. @bye