[ADD] conf deplate, and test viki.
[arrow.git] / viki / zdraft / playground.viki
blob711273a22f9ab2ee8d976b0eceee397307aeba18
1 * [[/viki][test viki syntax, playground]]
3 {val: topBar}
4 [[otherwiki::dist#anchor][name_show]]
5 [[$TOPDIR/kernel/about][abount]]
6 AbcArrowzhang
7 $TOPDIR
9   - Item
10   * Item
11     + Item
12       1. Item 1
13         a. Item a
14         B. Item B
15   # Item
16   # Item 1
17     # Item 2
18       @ Item A
19       @ Item B
21 || head                 || category                     ||
22 | row                   |  value,表格测试    |
23 #CAPTION: This table
24 #label
26 Foo bar{fn: x} foo bar.
28 #Fn: x <<EOF
29 Bla bla.
30 EOF
32 <-, ->, <=, =>, <~, ~>, <->, <=>, <~>, !=, ~~, ..., --, ==
34 %+++, ###, ???, !!!
35 #Code id=Foo syntax=ruby <<---
36 class Foo
37     # Return two times x
38     def bar(x)
39         x * 2
40     end
41 end
42 ---
44 %%Some formula: {ltx: $\sum_{i=n}^{n} x_{i}$}
45 %%or simply: $\lambda_1 v_1 + \lambda_2 v_2 + ... + \lambda_n v_n$.
47 %%#Inlatex <<---
48 %%$det A = \sum\limits_{\pi \in S_n} sgn(\pi) a_{\pi(1)1} ... a_{\pi(n)n}$
49 %%---
52 #TITLE: playground
53 #DATE: today
54 {val: TOPDIR}
57 #TI: How to do web-based presenation with deplate
58 #AU: Th. Link
59 #DATE: today
60 %#MAKETITLE
61 %#LIST plain!: toc
62     - Item
63         * Item
64             + Item
65                 1. Item 1
66                     a. Item a
67                     B. Item B
68                     #Verb <<---------
69                     EMBEDDED VERBATIM TEXT 
70                     ---------
71                 2. Item 1
72                     || Embedded || Table ||
73                     |  x        |  1      |
74                     |  y        |  2      |
75         * Item
76             # Item 1
77                 @ There is much to say about Item A, too much to be put 
78                   in words or to be written down.
80                   What else is there to say about Item A?
82                 @ Item B
83             # Item 2
84     - Do this
85         #A _ Some task
86         #B1 _ Some other task
87     - Do that
88         #A  x11-11-2050 Something was done!
89         #B1 11-11-2050  Some other task
92 || ----------------------------- ||
93 || Head || Categories || <       ||
94 |  Row1 |  Value1     |  Value1   |
95 |       | ----------- |           |
96 |  Row2 |             |  Value2   |
97 |       | ----------- |           |
98 |  Row3 |  Value3     |  ^        |
99 |  -----------------------------  |
100 #OPT: hiCol=first hiRow=last cols=w.3cm j.left r.1, w.1cm,,r.1 rows=,h.3cm
101 #OPT: note=Source: My Head, 2004
102 #CAP: This Table
103 #thisTable
105 #Var id=styledTableExample <<---
106 || Head || A || B ||
107 |  Row1 |  1 |  2  |
108 |  Row2 |  3 |  4  |
109 || Foot || X || Y ||
110 #OPT: hiCol=first
113 Test ''grid'' & ''scriptsize'' styles:
114 #INCLUDE var=styledTableExample
115 #OPT: style=grid,scriptsize
117 Test ''formal'' & ''footnotesize'' styles:
118 #INCLUDE var=styledTableExample
119 #OPT: style=formal,footnotesize
121 Test ''box'' & ''small'' styles:
122 #INCLUDE var=styledTableExample
123 #OPT: style=box,small
125 Test ''overlay'' style:
126 #INCLUDE var=styledTableExample
127 #OPT: style=overlay,landscape
130 * This is section one
131 #labSectOne
133 Some text.
134 #labSomeText
136 #labSectTwo
137 * This is section two
139 ----
141 ------
142 WikiName
143 WikiName#anchor
145 [-name-]
146 [-some name-]#there
147 [--]#here
149 ::WikiName
150 ::WikiName#there
151 ::[-some name-]
152 ::[-some name-]#there
154 [[destination]]
155 [[destination][name]]
156 [[destination#anchor][name]]
157 [[destination.suffix]!]
158 [[::destination#anchor][name]]
159 [[#anchor]]
160 [[#anchor][name]]
162 ====
163 <-, ->, <=, =>, <~, ~>, <->, <=>, <~>, !=, ~~, ..., --, ==, ```, `'', ``, `'
165 ''->'', ''<-''
167 #Verb <<--
168 <-, ->, <=, =>
171 #Code id=symbolsTest syntax=ruby <<--
172 <-, ->, <=, =>
174 ====
175     - elaborate+++
176     - here###
177     - questionable???
178     - attention!!!
181 ====
182 Indented paragraphs that begin with a marker and a subsequent space 
183 start an annotation.
184     !!! Something like this.
186 --------------------------------------------------------------------
187 9.1 The Basics
188 9.1.1 Elements and Particles
190 A deplate document is made up of elements (a.k.a. block elements in HTML, XML etc.) that consist of particles (a.k.a. inline elements). No particle can cross element boundaries. This distinction is important to understand, as commands and regions yield elements, but macros yield particles.
192 Although deplate has some facitilities for program control (conditional or repeated output), it really is rather a markup language but no programming language. Although you can define new elements right within a deplate document using deplate markup, this only works for really simple elements.
194 If a line matches an element pattern (usually defined by the beginning of the line), it marks the end of the previous element and starts a new element. If a line matches no pattern, it either starts a new paragraph or is added to the previous element. Elements like headings, anchors, or table rows are one-line patterns to which no unmatched line will be added. Other elements like list items or paragraphs can be made up of more than one line.
195 9.1.2 Backslashes
197 The deplate markup is based on inserting special characters into the text as in this example: __emphasized__, which will be printed as emphasized. If you want to prevent deplate from interpreting these markers, they must be preceded by a backslash.
199     * The backslash is used as escape character that prevents the wikification of the following character.
200     * There are two exceptions:
201          1. A backslash at the end of the line makes a pattern include the next line; any whitespace at the beginning of the following line is removed.
202          2. A backslash in front of a blank results in non-breaking space.
203     * A backslash that should be printed must be preceded by a backslash.
205 9.1.3 Special Characters
207 You should especially take care with the following characters:
209 Curly braces ({})
210     Curly braces usually enclose macros; in other contexts, they should always be preceded by a backslash
212         * There are some grey areas though that could cause problems, e.g. when input to a macro (e.g. the ruby macro) contains an unmatched curly brace
214 Backticks (`)
215     Backticks are used to insert some symbols and should be escaped by a backslash in other contexts than inserting a special character. 
217 Sequences of character you should notice:
219 Two underscores (__) followed by non-whitespace
220     Emphasized text 
221 Two single quotes ('') followed by non-whitespace
222     Literal text set in typewriter font 
223 Two colons (::) surrounded by whitespace
224     Used in definition lists 
226 Characters with special meaning if they occur at the beginning of line:
228 Asterisks (*)
229     Headings, unordered lists 
230 Sharp sign (#)
231     Anchors, commands, regions, ordered lists 
232 Percent (%)
233     Comments 
234 List markers
235     1., a., -, *, #, @, ?, ?. 
237 Other:
239 The dollar sign ($)
240     Although it has currently to be enabled by loading a module, there is a chance that this will become the standard delimiter for mathematical expressions typed in latex (with the AMS packages enabled). The standard markup will be either $a = x + y$ or with blanks $ a = x + y $ as the dollar sign is most likely used before or after a digit. 
242 Be aware that your editors line wrap can inadvertently place these characters at the beginning of a line.
244 Example 9.1: Text styles, backslash
246 __emphasize__, WikiName
248 \__noemphasize\__, \NoWikiName
250 One \
252 line
254 One\
255    word
257 unnnnnnnnnnnnnnnnnn\ breakkkkkkkkkkkkkkkkkk\ ableeeeeeeeeeeeeeeeeeeeeeee
259 yields:
261 emphasize, WikiName
263 __noemphasize__, NoWikiName
265 One line
267 Oneword
269 unnnnnnnnnnnnnnnnnn breakkkkkkkkkkkkkkkkkk ableeeeeeeeeeeeeeeeeeeeeeee
270 9.1.4 Argument Values
272 Arguments to macros, commands, and regions:
274     * In argument values, the characters !=: and single double quotes must be preceded by a backslash
275     * Alternatively, you can enclose a value in double quotes (which will be stripped off; doublequotes must be escaped using a backslash) or parentheses (which will be retained)
276     * Argument values are stripped of whitespace; if you want an argument to contain leading or trailing whitespace, you have to enclose the argument in double quotes
278 Table 9.1: Key arguments Example        Key Arguments   Body
279 %%{macro}       {}      ""
280 %%{macro: foo}  {}      "foo"
281 %%{macro boo!: foo}     {"boo" ⇒ true}  "foo"
282 %%{macro boo! bar=1: foo}       {"boo" ⇒ true, "bar" ⇒ "1"}     "foo"
283 %%{macro bar=object(id=1): foo}         {"bar" ⇒ "object(id=1)"}        "foo"
284 %%{macro bar="foo := bar": foo}         {"bar" ⇒ "foo := bar"}  "foo"
285 %%{macro bar=( boo=boo): foo}   {"bar" ⇒ "( boo = boo)"}        "foo"
286 %%{macro bar=\( boo=boo): foo}  {"bar" ⇒ "(", "boo" ⇒ "boo)"}   "foo"
287 %%{macro bar="(" boo=boo): foo}         {"bar" ⇒ "(", "boo" ⇒ "boo)"}   "foo"
289 There are two special arguments (fmt and if) that allow some control on whether an element will be included in the output. Please see 14.6 for details.
290 9.2 Comments (whole lines)
292     * The percent sign has to be first non-blank character in the line. Otherwise it’s interpreted as a character.
293     * A comment separates lines as paragraphs.
294     * For intra-paragraph comments use the comment macro 12.2
296 Example 9.2: Comments
298 Line %1
299 %Comment
300 Line %2
302 yields:
304 Line %1 Line %2
305 9.3 Paragraphs
307 A paragraph a sequence of non-empty lines that don’t match anything else.
309 Example 9.3: Paragraphs
311 Paragraph 1 finishes with an empty line. Paragraph 1 finishes with an 
312 empty line. Paragraph 1 finishes with an empty line.
314 Paragraph 2 finishes with an unordered list. Paragraph 2 finishes with 
315 an unordered list. Paragraph 2 finishes with an unordered list.
316     - Item 1
317     - Item 2
319 yields:
321 Paragraph 1 finishes with an empty line. Paragraph 1 finishes with an empty line. Paragraph 1 finishes with an empty line.
323 Paragraph 2 finishes with an unordered list. Paragraph 2 finishes with an unordered list. Paragraph 2 finishes with an unordered list.
325     * Item 1
326     * Item 2
328 9.4 Headings
330 NOTE: Headings can span more than one line by putting a backslash (‘\’) at the end of the line.
332 Known options:
334 noList!
335     prevent the heading from being listed in the toc; as you can see from the current heading, the heading number is increased nevertheless (which probably should be considered as a bug?) 
336 caption
337     the display name in the table of contents 
338 shortcaption
339     the display name in a minitoc; with multi-file output, this argument defines the optional file name 
341     similar to shortcaption; if an id and a shortcaption are given, the id will be used for the filename and the sort caption for the mini-toc 
342 plain!
343     Don’t add any numbering to the heading. (Set the variable headings to “plain” if you want to turn off numbering for all headings.) 
344 url=URL
345     Turn a heading into a hyperlink; this requires the hyperHeading variable(see 14.1.2) to be set 
347 If you set the variable autoFileNames, deplate will derive the file name from the heading.
349 * Level 1
350 #OPT: id=foo
352 ** Level 2
354 *** Level 3
355 #OPT: noList! plain!
358 9.5 Lists (indented)
360 Example 9.4: List
362     - Item
363         * Item
364             + Item
365                 1. Item 1
366                     a. Item a
367                     B. Item B
368                     #Verb <<---------
369                     EMBEDDED VERBATIM TEXT 
370                     ---------
371                 2. Item 1
372                     || Embedded || Table ||
373                     |  x        |  1      |
374                     |  y        |  2      |
375         * Item
376             # Item 1
377                 @ There is much to say about Item A, too much to be put 
378                   in words or to be written down.
380                   What else is there to say about Item A?
382                 @ Item B
383             # Item 2
384     - Do this
385         #A _ Some task
386         #B1 _ Some other task
387     - Do that
388         #A  x11-11-2050 Something was done!
389         #B1 11-11-2050  Some other task
391 yields:
393     * Item
394           o Item
395                 + Item
396                      1. Item 1
397                            1. Item a
398                            2. Item B
400                               EMBEDDED VERBATIM TEXT 
402                      2. Item 1
403                         Embedded        Table
404                         x       1
405                         y       2
406           o Item
407                1. Item 1
408                      1. There is much to say about Item A, too much to be put in words or to be written down.
409                         What else is there to say about Item A?
410                      2. Item B
411                2. Item 2
412     * Do this
413           o A Some task
414           o B1 Some other task
415     * Do that
416           o A 11-11-2050 Something was done!
417           o B1 11-11-2050 Some other task
419 NOTE: “#” (numbered, ordered lists), and “@” (ordered lists with letters) are the preferred markers. If you use dashes as in LaTeX (i.e. “--”), a dash appears to be okay too. Be aware that, like LaTeX, deplate concatenates two normal dashes (“--”) to one long dash (“–”) – see also 9.10.
421 NOTE: If you run into troubles when nesting lists, consider the use of the list macro 12.5.
423 NOTE: Task lists are implemented as varlist in DocBook.
424 9.6 Description lists (indented)
426 Example 9.5: Description list
428     Item :: Description
430 yields:
432 Item
433     Description 
435 9.7 Tables
437 A table is marked as sequence of lines beginning and ending with one or two “|” symbols. Two pipe symbols (or whatever its name is) define a row belonging to the head or the foot.
439 A row containing only empty cells and cells with hyphens defines a ruler.
441 A cell containing only “^” means concatenate with the cell above. A cell containing only “<” means concatenate with the cell to the left.
443 Tables take the following options (via the OPT command):
445 head=N
446     The number of rows encompassing the table head 
447 foot=N
448     The number of rows encompassing the table foot 
449 hiRow=N1,N2,first,last,...
450     The rows to be highlighted 
451 hiCol=N1,N2,first,last,...
452     The columns to be highlighted 
453 rows=ROWDEF1, ROWDEF2, ...
454     Define a row’s attributes
456         * ROWDEF has the form: KEY1.VAL1 KEY2.VAL2 ...; KEY being one of
458           h
459               The row height 
461         * a ruler counts as a row
463 cols=COLDEF1, COLDEF2, ...
464     Define a columns’s attributes
466         * COLDEF has the form: KEY1.VAL1 KEY2.VAL2 ...; KEY being one of
468           w
469               The column width 
470           j
471               The column’s justification (left, right, center, or justified) 
472           r
473               Add a left-handed vertical ruler (the value denotes the number of rulers or its thickness)
474                   o This option is currently only interpreted for LaTeX output
476 long!, short!
477     Define whether the longtable environment should be used in LaTeX output (by default, the longtable environment will be used for tables with more than 20 rows).
479         * Switching between the table and the longtable environment has some effects on the layout. One consequence is that footnotes are set properly only in the longtable environment. On the other hand, the here, floatHere, align, and floatAlign options are currently ignored.
481 style=NAME
482     The table style (but see below) 
483 stylex=NAME
484     Like style but ignore tableStyle 
485 note=TEXT
486     A short note concerning data source etc. 
488 In addition, the following options for “floats” apply too:
490 here!, floatHere=1
491     In LaTeX output, add the h attribute to the table environment 
492 align=[left|right|center], floatAlign=[left|right|center]
493     align the table; the first one is a table specific options, the second a global document option 
495 Joining cells: If a cell contains nothing but “^” or “<”, the current cell will be joined with the left one or with the cell above. (The actual output depends on the formatter and the capabilities of the target format, though.)
497 It depends on the formatter whether these options are interpeted.
499 Example 9.6: Table
501 || ----------------------------- ||
502 || Head || Categories || <       ||
503 |  Row1 |  Value1     |  Value1   |
504 |       | ----------- |           |
505 |  Row2 |             |  Value2   |
506 |       | ----------- |           |
507 |  Row3 |  Value3     |  ^        |
508 |  -----------------------------  |
509 #OPT: hiCol=first hiRow=last cols=w.3cm j.right r.1, w.1cm,,r.1 rows=,h.3cm
510 #OPT: note=Source: My Head, 2004
511 #CAP: This Table
512 #thisTable2
514 yields:
515 Table 9.2: This Table Head      Categories
516 Row1    Value1  Value1
517 Row2            Value2
518 Row3    Value3
519 Source: My Head, 2004
521 NOTE: Rows can span more than one line by putting a backslash (‘\’) at the end of the line.
523 NOTE: An empty cell is marked by at least 3 consecutive blanks.
525 You can also define a style for a table. The style attribute is currently only interpreted by the latex-styles module and to some degree emulated in HTML output – not so surprisingly, this works better in Firefox than in MS IExplorer.
527 The following styles are known (for one or another output format):
529 grid
530     Draw all table borders/rulers 
531 formal
532     Draw a ruler at the top and the bottom of the table, as well as between groups 
534     Like formal but add vertical rulers on both sides 
535 overlay
536     Like box but draw the background of some rows and columns in gray or in colours 
537 list
538     Horizontal rulers between each row 
539 small, footnotesize, scriptsize
540     Smaller font sizes 
541 dense08
542     decreased intercell spacing (there is a minor problem with line spacing) 
543 landscape
544     rotate the table (LaTeX only, I assume) 
546 Example 9.7: Table styles
548 #Var id=styledTableExample <<---
549 || Head || A || B ||
550 |  Row1 |  1 |  2  |
551 |  Row2 |  3 |  4  |
552 || Foot || X || Y ||
553 #OPT: hiCol=first
556 Test ''grid'' & ''scriptsize'' styles:
557 #INCLUDE var=styledTableExample
558 #OPT: style=grid,scriptsize
560 Test ''formal'' & ''footnotesize'' styles:
561 #INCLUDE var=styledTableExample
562 #OPT: style=formal,footnotesize
564 Test ''box'' & ''small'' styles:
565 #INCLUDE var=styledTableExample
566 #OPT: style=box,small
568 Test ''overlay'' style:
569 #INCLUDE var=styledTableExample
570 #OPT: style=overlay,landscape
572 yields:
574 Test grid & scriptsize styles:
575 Head    A       B
576 Foot    X       Y
577 Row1    1       2
578 Row2    3       4
580 Test formal & footnotesize styles:
581 Head    A       B
582 Foot    X       Y
583 Row1    1       2
584 Row2    3       4
586 Test box & small styles:
587 Head    A       B
588 Foot    X       Y
589 Row1    1       2
590 Row2    3       4
592 Test overlay style:
593 Head    A       B
594 Foot    X       Y
595 Row1    1       2
596 Row2    3       4
597 9.8 Anchors
599 Anchor (or labels respectively) are attached to the previous element, save if the previous element is a whitespace. In this case the anchor will be attached to the following element.
601 The name must begin with a lower letter. There mustn’t be non-whitespace character before the sharp sign.
603 Example 9.8: Anchors
605 * This is section one
606 #labSectOne2
608 Some text.
609 #labSomeText2
611 #labSectTwo2
612 * This is section two
614 9.9 Wiki Names, URLs
616 deplate is inspired by several wiki engines. It thus also provides formatting of wiki names and URLs as hyperlinks. There are about four types of wiki names.
618 Simple
619     Any word in CamelCase is turned into a wiki name – save if wikification is prevented with a backslash – see 9.1.2. 
620 Quoted
621     Any text between [- and -] will be turned into a hyperlink. 
622 Extended
623     An extended wiki name has the form: [[DESTINATION][OPTIONAL NAME]MODIFIER].
625         * MODIFIER is optional.
627           “*”
628               open page in new window 
629           “$”
630               set rel="nofollow" 
631           “!”
632               prevents deplate from adapting the reference’s suffix
633                   o deplate was created as the publishing framework (or so) for a personal wiki (namely the Vim viki plugin). As such it assumes that the files being referenced to are converted to the same target format as the current file, which is why deplate modfies an extended wiki destination’s suffix. Use this modifier to prevent deplate from doing so.
634                   o Often the chosen deplate output is only an intermediary file; in order to make deplate append the suffix of the final output file, set the document option suffix to the desired value. E.g. if you convert to docbook and then from docbook to html, pass the option -D suffix=html to deplate when converting the text sources.
636         * If you want a hyperlink to have an image, use: [[http://www.example.com][{img: example_image}]]. See also 12.5.
638 InterWikis
639     An interwiki name is a shortcut to a different wiki. Any simple and quoted wiki name can be deferred to an interwiki by prepending NAMEINCAPITALS::. You have to define an interwiki before referring to it by adding something like this to your configuration file: InterWiki.add("ID", "http://BASEURL/", ".SUFFIX") 
641 Wiki Names are automatically marked as index entries – see 11.4 and 11.5.
643 Example 9.9: Wiki names
645 WikiName
646 WikiName#anchor
648 [-name-]
649 [-some name-]#there
650 [--]#here
652 ::WikiName
653 ::WikiName#there
654 ::[-some name-]
655 ::[-some name-]#there
657 [[destination]]
658 [[destination][name]]
659 [[destination#anchor][name]]
660 [[destination.suffix]!]
661 [[::destination#anchor][name]]
662 [[#anchor]]
663 [[#anchor][name]]
665 9.10 Symbols
667 The backtick (`) is used to introduce some symbols like quotation marks (e.g., in positions where deplate would choose the wrong one).
669 Symbols are not expanded in text marked as typewriter/code and in verbatim regions.
671 Example 9.10: Symbols
673 <-, ->, <=, =>, <~, ~>, <->, <=>, <~>, !=, ~~, ..., --, ==, ```, `'', ``, `'
675 ''->'', ''<-''
677 #Verb <<--
678 <-, ->, <=, =>
681 #Code id=symbolsTest syntax=ruby <<--
682 <-, ->, <=, =>
685 yields:
687 ←, →, ⇐, ⇒, <~, ~>, ↔, ⇔, <~>, ≠, ≈, …, –, ≡, “, ”, ‘, ’
689 ->, <-
691 <-, ->, <=, =>
693 <-, ->, <=, =>
695 NOTE: If you want to disable some of these symbols, you could add some ruby code like this to your config.rb:
697 %%class Deplate::Particle::Symbol
698 %%   @@symbols_table.delete_if {|k,v| ['<->', '<=>', '<~>'].include?(k)}
699 %%   reset_symbols
700 %%end
702 9.11 Markers
704 Markers are meant to highlight a position in the text. In order to avoid ambiguities with notes (see below), there should not be a space before or after the marker – i.e. it should immediately follow or precede the word it is referring to.
706 Example 9.11: Markers
708     - elaborate+++
709     - here###
710     - questionable???
711     - attention!!!
713 yields:
715     * elaborate+++
716     * here###
717     * questionable???
718     * attention!!!
720 9.12 Notes
722 Indented paragraphs that begin with a marker and a subsequent space start an annotation, i.e. the text of paragraph will be turned in a margin note or similar – depending on the output format.
724 Example 9.12: Notes
726 Indented paragraphs that begin with a marker and a subsequent space 
727 start an annotation.
728     !!! Something like this.
730 yields:
732 Indented paragraphs that begin with a marker and a subsequent space start an annotation.
734 Something like this.
735 9.13 Strings, Smart Quotes
737 Example 9.13: Quotes
739 "Text in quotes"
741 yields:
743 “Text in quotes”
745 NOTE: Quotes are handled by two classes: Deplate::Particle::DoubleQuote and Deplate::Particle::SingleQuote. In order to disable smart quotes add this code to your config.rb:
747 Deplate::Particle.disable_particle(
748     Deplate::Particle::DoubleQuote,
749     Deplate::Particle::SingleQuote
752 9.14 Textstyles
754 Example 9.14: Text styles
756 __emphasize__, ''typewriter''
758 yields:
760 emphasize, typewriter
762 NOTE: There must not be a whitespace after the opening mark.
764 NOTE: Text in typewriter style is basically set verbatim with the expection of backslashes.
765 9.15 Breaks
767 A break is marked by at least 2 dashes, “8<”, and again at least 2 dashes.
769 I say so.
770 ----8<--------------
771 Summary:
772 --8<--
774 In HTML output, a break is represented by a horizontal line. In other output formates, a break actually denotes a page break.
775 9.16 Whitespace
777 A line of whitespace usually separates text elements – e.g. paragraphs,
779 %%* table test
780 %%#R: drop <<---
781 %%data(tli)
782 %%x <- tli
783 %%save.image(compress=T)
784 %%---
786 %%#R: xtable <<---
787 %%fm1 <- aov(tlimth ~ sex + ethnicty + grade + disadvg, data=x)
788 %%fm1.table <- xtable(fm1)
789 %%print(fm1.table,type="html")
790 %%---
791 %%#CAP: An example from the xtable manual using the tli data set
793 %%#R <<---
794 %%summary(x)
795 %%---
796 %%#CAP: Summary of the tli data set
798 %%#R guess! <<---
799 %%summary(x)
800 %%---
801 %%#CAP: Summary of the tli data set (guessing cell borders)
803 %%The same inserted verbatim:
804 %%#R: verb <<---
805 %%summary(x)
806 %%---