imbrications.texi 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. \input texinfo @c -*-texinfo-*-
  2. @setfilename imbrications.info
  3. @syncodeindex pg cp
  4. @node Top,First node,(dir)
  5. @top Test some command imbrications
  6. @menu
  7. * First node:: node 1
  8. * name:Second node. node 2
  9. @end menu
  10. @c * node in table::
  11. @c * node in example::
  12. @c * node in flushright::
  13. @c *node in defun -> bug
  14. @node First node
  15. @chapter first node chapter
  16. @cindex elem
  17. @tex
  18. $$
  19. \chi^2 = \sum_{i=1}^N
  20. \left(y_i - (a + b x_i)
  21. \over \sigma_i\right)^2
  22. $$
  23. @end tex
  24. @node Second node
  25. @chapter second
  26. Some text
  27. @deffn Function buffer-end flag
  28. A nice function
  29. makeinfo accepts a menu within defun but it isn't possible
  30. to follow it
  31. @menu
  32. * node within defun menu::
  33. @end menu
  34. @c makeinfo accepts the following but cannot properly close defun
  35. @c @node node within defun menu
  36. @c @section within menu
  37. end of the function
  38. @end deffn
  39. @node node within defun menu
  40. @section the node is within menu
  41. Test @@option inside @@emph
  42. Foo @emph{emphasized and referring to @option{--some} option}.
  43. Table imbricated in code:@*
  44. @code{
  45. in code
  46. @table @emph
  47. @item line
  48. text
  49. @end table
  50. }
  51. ref with uref within:@*
  52. @ref{(file)node, cross ref with uref @uref{href://http/myhost.com/index.html,uref1}, title with uref2 @uref{href://http/myhost.com/index2.html,uref2}, info file with uref3 @uref{href://http/myhost.com/index3.html,uref3}, printed manual with uref4 @uref{href://http/myhost.com/index4.html,uref4}}
  53. footnote with code within:@*
  54. @footnote{ in footnote @code{par1
  55. par2}}
  56. Refs in samp:@*
  57. Refs without samp: empty section name see @ref{other node}.
  58. With a chapter: @ref{Second node}.
  59. A ref in samp to a node with empty section name:
  60. see @samp{@ref{other node}}.
  61. Same but to a regular node associated with a chapter:
  62. see @samp{@ref{Second node}}.
  63. code with table and example within:@*
  64. @code{
  65. in code
  66. @table @emph
  67. @item line
  68. in code and table
  69. @example
  70. in example
  71. @end example
  72. @end table
  73. }
  74. @table @bullet
  75. @item item
  76. @c @node node in table
  77. @c @chapter in table
  78. @end table
  79. @example
  80. @c @node node in example
  81. @c @chapter example
  82. an example
  83. @end example
  84. @cindex other entry
  85. @example
  86. @html
  87. Some html <code>some code</code>.
  88. @end html
  89. after html in example
  90. two line breaks
  91. Tex doesn't like math in @@example
  92. @ifnottex
  93. @tex
  94. $$
  95. \chi^2 = \sum_{i=1}^N
  96. \left(y_i - (a + b x_i)
  97. \over \sigma_i\right)^2
  98. $$
  99. @end tex
  100. @end ifnottex
  101. @cindex index in example
  102. Now a content within example
  103. @contents
  104. @printindex cp
  105. printindex works but cannot be followed in info, in TeX
  106. the result is quite strange.
  107. and now yes---now and ``so''.
  108. @end example
  109. after example and now yes---now and ``so''.
  110. @flushright
  111. is the text
  112. flushed right ?
  113. @c @node node in flushright
  114. @c @chapter flushright
  115. @end flushright
  116. @flushright
  117. @example
  118. text flushed right and then example
  119. it should be flushed
  120. @end example
  121. @end flushright
  122. @example
  123. @flushright
  124. example and then text flushed right
  125. @end flushright
  126. @end example
  127. @display
  128. simple displayed text
  129. @end display
  130. a display within example
  131. @example
  132. example
  133. @display
  134. display
  135. @end display
  136. @end example
  137. @cartouche
  138. A cartouched text
  139. @end cartouche
  140. A cartouche within example
  141. @example
  142. example
  143. @cartouche
  144. A cartouched text
  145. @end cartouche
  146. @end example
  147. An example with table, multitable, quotation, enumerate
  148. @example
  149. a table within example
  150. @table @bullet
  151. @item item
  152. text
  153. @end table
  154. a multitable
  155. @multitable {a} {b}
  156. @item beginnin
  157. @item @dots{}
  158. @tab
  159. a new column no splitting ???????????????????
  160. @end multitable
  161. a menu
  162. @menu
  163. * node menu:: a node in menu
  164. in menu comment
  165. html
  166. @html
  167. <cite>cite me</cite> a cite in html
  168. @end html
  169. A ref in samp in menu comment to a node with empty section name:
  170. @samp{@ref{other node}}.
  171. Same but to a regular node associated with a chapter:
  172. @samp{@ref{Second node}}.
  173. * a menu name:other node.
  174. description of other
  175. node
  176. @end menu
  177. A quotation
  178. @quotation
  179. This is a pre
  180. quotation
  181. @end quotation
  182. Enumerate
  183. @enumerate
  184. @item first item
  185. @item second item
  186. still second
  187. @end enumerate
  188. @end example
  189. example with deff-like commands
  190. @example
  191. deffs
  192. @defun {my def} args @var{arg} @dots{}
  193. @defunx {other def} no args
  194. @deffnx {type} {name} and now the args
  195. @defvar {variables} variable-name
  196. @defvarx {variables too} other-variable
  197. THis is the defvar
  198. A table within the def
  199. @table @asis
  200. @item item
  201. text
  202. more text
  203. @item second item
  204. @end table
  205. explanation
  206. @end defvar
  207. @end deffn
  208. @end defun
  209. @end example
  210. table within display within example
  211. @example
  212. @display
  213. @table @asis
  214. @item item
  215. Line
  216. @end table
  217. @end display
  218. @end example
  219. table within example within display
  220. @display
  221. @example
  222. @table @asis
  223. @item item
  224. Line
  225. @end table
  226. @end example
  227. @end display
  228. @node node menu
  229. @unnumberedsubsec
  230. @node other node
  231. @unnumberedsubsec
  232. @contents
  233. @bye