docgenerator 1.2.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/build_test_and_doc.rb +505 -0
- data/examples/creole_example.rb +82 -0
- data/examples/creole_example_footnote.rb +67 -0
- data/examples/creole_example_placeholder.rb +77 -0
- data/examples/creole_example_rail.rb +154 -0
- data/examples/creole_example_rubycode.rb +144 -0
- data/examples/creole_example_struktex.rb +169 -0
- data/examples/docgenerator_example.rb +1 -1
- data/examples/docgenerator_example_footnote.rb +1 -0
- data/examples/docgenerator_example_list.rb +3 -0
- data/examples/docgenerator_example_restrictions.rb +1 -1
- data/examples/docgenerator_example_tabular.rb +1 -1
- data/examples/docgenerator_example_tripfalls.rb +2 -2
- data/examples/results/readme +2 -1
- data/examples/wiki2docgenerator_example.rb +61 -32
- data/lib/creole/creole2doc.rb +57 -58
- data/lib/creole/creole_characters.rb +56 -0
- data/lib/creole/creole_inclusion_and_plugins.rb +59 -284
- data/lib/creole/creole_inclusions.rb +142 -0
- data/lib/creole/creole_placeholder.rb +57 -23
- data/lib/creole/creole_plugins.rb +198 -0
- data/lib/creole/creole_tabular.rb +16 -8
- data/lib/creole/plugins/rail.rb +182 -0
- data/lib/creole/plugins/rubycode4creole.rb +136 -0
- data/lib/creole/plugins/struktex.rb +59 -0
- data/lib/creole/plugins/todonotes.rb +70 -0
- data/lib/docgenerator.rb +161 -71
- data/lib/docgenerator/attribute.rb +189 -156
- data/lib/docgenerator/characters.rb +824 -267
- data/lib/docgenerator/compatibility_v1.rb +249 -0
- data/lib/docgenerator/css.rb +53 -32
- data/lib/docgenerator/document.rb +119 -56
- data/lib/docgenerator/element.rb +304 -351
- data/lib/docgenerator/element_meta.rb +303 -0
- data/lib/docgenerator/elements.rb +1112 -481
- data/lib/docgenerator/environments.rb +153 -62
- data/lib/docgenerator/footnote.rb +30 -9
- data/lib/docgenerator/lists.rb +71 -47
- data/lib/docgenerator/packages/attachfile.rb +136 -0
- data/lib/{packages/docgenerator_caption.rb → docgenerator/packages/caption.rb} +28 -19
- data/lib/docgenerator/packages/hyperref.rb +194 -0
- data/lib/docgenerator/packages/listings.rb +179 -0
- data/lib/docgenerator/packages/pdfpages.rb +43 -0
- data/lib/docgenerator/packages/rubycode4doc.rb +227 -0
- data/lib/{packages/docgenerator_scrlettr2.rb → docgenerator/packages/scrlettr2.rb} +25 -16
- data/lib/docgenerator/packages/scrpage2.rb +410 -0
- data/lib/docgenerator/packages/struktex.rb +447 -0
- data/lib/docgenerator/packages/todonotes.rb +85 -0
- data/lib/{packages/docgenerator_url.rb → docgenerator/packages/url.rb} +7 -6
- data/lib/docgenerator/sections.rb +257 -83
- data/lib/docgenerator/standard.rb +19 -11
- data/lib/docgenerator/tabular.rb +234 -118
- data/lib/{templates → docgenerator/templates}/docgenerator_template.rb +52 -44
- data/lib/{templates → docgenerator/templates}/docgenerator_template.yaml +0 -0
- data/lib/{templates → docgenerator/templates}/docgenerator_template_css.rb +22 -16
- data/lib/wiki2doc/plugins/rubycode4wiki.rb +53 -0
- data/lib/wiki2doc/plugins/struktex.rb +12 -0
- data/lib/wiki2doc/wiki2docgenerator.rb +39 -38
- data/lib/wiki2doc/wikimedia_document.rb +24 -0
- data/manpage_elements.rb +10411 -0
- data/readme.rd +34 -24
- data/unittest/creole_testtext.creole +11 -0
- data/unittest/expected/test_document_usepackage_undefined.log +2 -2
- data/unittest/expected/test_runtex.stdout +0 -1
- data/unittest/expected/test_runtex_2.stdout +0 -1
- data/unittest/expected/toc_css.css +3 -2
- data/unittest/expected_creole/test_creole_characters_all.creole +28 -0
- data/unittest/expected_creole/test_creole_characters_all.html +15 -15
- data/unittest/expected_creole/test_creole_characters_all.latex +15 -15
- data/unittest/expected_creole/test_creole_footnotes_groupid.html +15 -0
- data/unittest/expected_creole/test_creole_links_file.html +2 -2
- data/unittest/expected_creole/test_creole_links_file.latex +2 -2
- data/unittest/expected_creole/test_creole_links_file.text +2 -2
- data/unittest/expected_creole/test_creole_picture_link.html +1 -1
- data/unittest/expected_creole_rail/test_rail_creole_object.tex +33 -0
- data/unittest/expected_creole_rail/test_rail_creole_placeholder.tex +40 -0
- data/unittest/expected_rubycode4doc/creole_complete.html +26 -0
- data/unittest/expected_rubycode4doc/creole_complete.tex +40 -0
- data/unittest/expected_rubycode4doc/creole_in_tab.html +4 -0
- data/unittest/expected_rubycode4doc/creole_in_tab.tex +6 -0
- data/unittest/expected_rubycode4doc/creole_inline_ruby.html +7 -0
- data/unittest/expected_rubycode4doc/creole_output.html +2 -0
- data/unittest/expected_rubycode4doc/creole_output.tex +4 -0
- data/unittest/expected_rubycode4doc/creole_rubycode.html +1 -0
- data/unittest/expected_rubycode4doc/creole_rubycode.tex +3 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.html +1 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.tex +3 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.html +3 -0
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.tex +5 -0
- data/unittest/expected_rubycode4doc/wiki_1.html +8 -0
- data/unittest/expected_rubycode4doc/wiki_2.html +8 -0
- data/unittest/expected_rubycode4doc/wiki_3.html +9 -0
- data/unittest/expected_rubycode4doc/wiki_immediate_1.html +5 -0
- data/unittest/expected_rubycode4doc/wiki_immediate_2.html +5 -0
- data/unittest/expected_rubycode4doc/wiki_immediate_3.html +8 -0
- data/unittest/expected_rubycode4doc/wiki_immediate_full.html +21 -0
- data/unittest/expected_struktex/test_struktex_krug.creole +15 -0
- data/unittest/expected_struktex/test_struktex_krug.tex +19 -0
- data/unittest/expected_struktex/test_struktex_krug.wiki +15 -0
- data/unittest/expected_struktex/test_struktex_statement.creole +7 -0
- data/unittest/expected_struktex/test_struktex_statement.tex +9 -0
- data/unittest/expected_struktex/test_struktex_statement.wiki +7 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.html +1 -1
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.latex +1 -1
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.text +1 -1
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_description.wiki +1 -1
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote_2.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_footnote_groupid.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_html_code.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_inline.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_label.html +0 -0
- data/unittest/expected_wikimedia/test_wiki_link.html +8 -0
- data/unittest/expected_wikimedia/test_wiki_link.latex +17 -0
- data/unittest/expected_wikimedia/test_wiki_link.wiki +11 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_after_ul.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ol_ul.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_list_ul_too_much.wiki +0 -0
- data/unittest/expected_wikimedia/test_wiki_picture.html +55 -0
- data/unittest/expected_wikimedia/test_wiki_picture.latex +76 -0
- data/unittest/expected_wikimedia/test_wiki_picture_thumb.html +5 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_tab1.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_tab1.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_tab1.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_textformatting.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_toc.wiki +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.html +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.latex +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.text +0 -0
- data/unittest/{expected_wiki → expected_wikimedia}/test_wiki_ul_multiple_line.wiki +0 -0
- data/unittest/{unittest_creole2doc.rb → unittest_creole.rb} +385 -476
- data/unittest/unittest_creole_placeholders.rb +272 -0
- data/unittest/unittest_creole_plugin_rail.rb +147 -0
- data/unittest/unittest_docgenerator.rb +206 -332
- data/unittest/unittest_docgenerator_characters.rb +650 -0
- data/unittest/unittest_docgenerator_runtex.rb +48 -20
- data/unittest/unittest_packages_struktex.rb +187 -0
- data/unittest/unittest_rubycode4doc.rb +275 -0
- data/unittest/unittest_wikimedia.rb +479 -0
- metadata +245 -172
- data/examples/results_expected/docgenerator_example.html +0 -39
- data/examples/results_expected/docgenerator_example.pdf +0 -0
- data/examples/results_expected/docgenerator_example.tex +0 -56
- data/examples/results_expected/docgenerator_example_footnote.html +0 -40
- data/examples/results_expected/docgenerator_example_footnote.pdf +0 -0
- data/examples/results_expected/docgenerator_example_footnote.tex +0 -50
- data/examples/results_expected/docgenerator_example_list.html +0 -18
- data/examples/results_expected/docgenerator_example_list.pdf +0 -0
- data/examples/results_expected/docgenerator_example_list.tex +0 -46
- data/examples/results_expected/docgenerator_example_restrictions.html +0 -22
- data/examples/results_expected/docgenerator_example_restrictions.pdf +0 -0
- data/examples/results_expected/docgenerator_example_restrictions.tex +0 -31
- data/examples/results_expected/docgenerator_example_tabular.html +0 -37
- data/examples/results_expected/docgenerator_example_tabular.pdf +0 -0
- data/examples/results_expected/docgenerator_example_tabular.tex +0 -41
- data/examples/results_expected/docgenerator_example_tripfalls.html +0 -27
- data/examples/results_expected/docgenerator_example_tripfalls.pdf +0 -0
- data/examples/results_expected/docgenerator_example_tripfalls.tex +0 -31
- data/lib/packages/docgenerator_attachfile.rb +0 -71
- data/lib/packages/docgenerator_hyperref.rb +0 -109
- data/lib/packages/docgenerator_listings.rb +0 -103
- data/lib/packages/docgenerator_pdfpages.rb +0 -24
- data/lib/packages/docgenerator_scrpage2.rb +0 -172
- data/self_docgenerator.rb +0 -163
- data/unittest/expected_wiki/test_wiki_link.html +0 -8
- data/unittest/expected_wiki/test_wiki_link.latex +0 -17
- data/unittest/expected_wiki/test_wiki_link.wiki +0 -11
- data/unittest/expected_wiki/test_wiki_picture.html +0 -55
- data/unittest/expected_wiki/test_wiki_picture.latex +0 -76
- data/unittest/expected_wiki/test_wiki_picture_thumb.html +0 -5
- data/unittest/test_rakefile_docgenerator.rb +0 -43
- data/unittest/unittest_versions.rb +0 -44
- data/unittest/unittest_wiki2doc.rb +0 -464
data/readme.rd
CHANGED
@@ -7,11 +7,8 @@ The docgenerator-gem allows the definition of documents and export to
|
|
7
7
|
* context (only rudimentory tests)
|
8
8
|
|
9
9
|
|
10
|
-
The docgenerator_tools-gem contains some programs for
|
11
|
-
special documents, based on the docgenerator-gem.
|
12
|
-
|
13
10
|
=docgenerator-gem
|
14
|
-
Defines a programmer interface to
|
11
|
+
Defines a programmer interface to create documents.
|
15
12
|
|
16
13
|
Please check the examples:
|
17
14
|
* examples/docgenerator_example.rb
|
@@ -22,28 +19,29 @@ Please check the examples:
|
|
22
19
|
* examples/docgenerator_example_tripfalls.rb
|
23
20
|
|
24
21
|
|
25
|
-
This
|
26
|
-
* creole2doc.rb - a Creole-Wiki to TeX/HTML-Translator
|
27
|
-
* wiki2docgenerator.rb - a Wiki to TeX/HTML-Translator
|
28
|
-
* yaml2presentation.rb - a presentation generator for LaTeX-Beamer-class. Can also be used to build image galleries.
|
29
|
-
(part of docgenerator_tools-gem)
|
30
|
-
|
31
|
-
|
22
|
+
This gem contains also
|
23
|
+
* creole/creole2doc.rb - a Creole-Wiki to TeX/HTML-Translator
|
24
|
+
* wiki2doc/wiki2docgenerator.rb - a Wiki to TeX/HTML-Translator
|
32
25
|
|
33
|
-
=docgenerator_tools-gem
|
34
|
-
Some tools based on the docgenerator-package:
|
35
26
|
|
36
|
-
|
37
|
-
*
|
38
|
-
|
39
|
-
*
|
40
|
-
See
|
41
|
-
*
|
42
|
-
See examples_tools/code2structogramm_test_creole.rb
|
43
|
-
* docgenerator_tools/rubycode4doc/rubycode4doc_creole.rb:
|
27
|
+
There is also support of some special (LaTeX)-documents:
|
28
|
+
* lib/creole/plugins/rail.rb: build rail-diagramms (rail.sty)
|
29
|
+
See examples/creole_example_rail.rb
|
30
|
+
* lib/creole/plugins/struktex.rb: Build structogramms (struktex.sty)
|
31
|
+
See examples/creole_example_struktex.rb
|
32
|
+
* lib/creole/plugins/rubycode4creole.rb:
|
44
33
|
Use ruby-code as generator for wiki-content.
|
45
34
|
Can be used to build examples.
|
46
|
-
See
|
35
|
+
See examples/creole_example_rubycode.rb
|
36
|
+
|
37
|
+
==Gems based on docgenerator
|
38
|
+
===docgenerator4presentation
|
39
|
+
A presentation generator for LaTeX-Beamer-class.
|
40
|
+
Can also be used to build image galleries.
|
41
|
+
|
42
|
+
===docgenerator4calendar
|
43
|
+
Generation of calendars and event lists.
|
44
|
+
|
47
45
|
|
48
46
|
=Version history
|
49
47
|
0.0.x:
|
@@ -125,8 +123,20 @@ Special LaTeX-documents:
|
|
125
123
|
* Reorganize unit tests
|
126
124
|
* Ruby 1.9 enabled
|
127
125
|
|
128
|
-
1.2.1
|
126
|
+
1.2.1 2011-02-20
|
129
127
|
* More Ruby 1.9.1 additions (convert encodings)
|
130
128
|
* Creole: Images with option width (LaTeX)
|
131
129
|
* Corrected examples, added expected results of the examples (increases gem size)
|
132
|
-
* corrections footnote handling
|
130
|
+
* corrections footnote handling
|
131
|
+
|
132
|
+
1.2.2
|
133
|
+
* correction wiki2docgenerator.rb, wiki2docgenerator_example.rb
|
134
|
+
* add creole2doc_example.rb
|
135
|
+
* add todonotes support (only LaTeX)
|
136
|
+
|
137
|
+
2.0.0
|
138
|
+
* Pack everything in module Docgenerator
|
139
|
+
* Group classes to modules
|
140
|
+
* clean up lib-folder
|
141
|
+
* docgenerator_tools integrated in docgenerator (and docgenerator4presentation-gem)
|
142
|
+
|
@@ -1,2 +1,2 @@
|
|
1
|
-
DEBUG docgenerator: usepackage: Try to load packages/
|
2
|
-
INFO docgenerator: usepackage: No supporting definitions packages/
|
1
|
+
DEBUG docgenerator: usepackage: Try to load docgenerator/packages/undefined package.rb
|
2
|
+
INFO docgenerator: usepackage: No supporting definitions docgenerator/packages/undefined package.rb found
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
* Docgenerator::Characters::Dollar: $
|
3
|
+
* Docgenerator::Characters::Percent:
|
4
|
+
|
5
|
+
* Docgenerator::Characters::Ampersand:
|
6
|
+
|
7
|
+
* Docgenerator::Characters::Rightarrow:
|
8
|
+
|
9
|
+
* Docgenerator::Characters::Leftarrow:
|
10
|
+
|
11
|
+
* Docgenerator::Characters::LLeftarrow:
|
12
|
+
|
13
|
+
* Docgenerator::Characters::RRightarrow:
|
14
|
+
|
15
|
+
* Docgenerator::Characters::Underscore: _
|
16
|
+
* Docgenerator::Characters::Sbquo:
|
17
|
+
|
18
|
+
* Docgenerator::Characters::Bdquo:
|
19
|
+
|
20
|
+
* Docgenerator::Characters::Ldots:
|
21
|
+
|
22
|
+
* Docgenerator::Characters::Rsquo:
|
23
|
+
|
24
|
+
* Docgenerator::Characters::Ldquo:
|
25
|
+
|
26
|
+
* Docgenerator::Characters::Ndash:
|
27
|
+
|
28
|
+
* Docgenerator::Characters::Mdash:
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<ul >
|
2
|
-
<li
|
3
|
-
<li
|
4
|
-
<li
|
5
|
-
<li
|
6
|
-
<li
|
7
|
-
<li
|
8
|
-
<li
|
9
|
-
<li >_ </li>
|
10
|
-
<li
|
11
|
-
<li
|
12
|
-
<li
|
13
|
-
<li
|
14
|
-
<li
|
15
|
-
<li
|
16
|
-
<li
|
2
|
+
<li > Docgenerator::Characters::Dollar: $ </li>
|
3
|
+
<li > Docgenerator::Characters::Percent: % </li>
|
4
|
+
<li > Docgenerator::Characters::Ampersand: & </li>
|
5
|
+
<li > Docgenerator::Characters::Rightarrow: → </li>
|
6
|
+
<li > Docgenerator::Characters::Leftarrow: ← </li>
|
7
|
+
<li > Docgenerator::Characters::LLeftarrow: ⇐ </li>
|
8
|
+
<li > Docgenerator::Characters::RRightarrow: ⇒ </li>
|
9
|
+
<li > Docgenerator::Characters::Underscore: _ </li>
|
10
|
+
<li > Docgenerator::Characters::Singlelowquotemark: ‚ </li>
|
11
|
+
<li > Docgenerator::Characters::Doublelowquotemark: „ </li>
|
12
|
+
<li > Docgenerator::Characters::Ldots: … </li>
|
13
|
+
<li > Docgenerator::Characters::Rightsinglequotemark: ’ </li>
|
14
|
+
<li > Docgenerator::Characters::Leftdoublequotemark: “ </li>
|
15
|
+
<li > Docgenerator::Characters::Ndash: – </li>
|
16
|
+
<li > Docgenerator::Characters::Mdash: —</li>
|
17
17
|
</ul>
|
@@ -1,34 +1,34 @@
|
|
1
1
|
|
2
2
|
\begin{itemize}
|
3
3
|
|
4
|
-
\item
|
4
|
+
\item Docgenerator::Characters::Dollar: $
|
5
5
|
|
6
|
-
\item \%
|
6
|
+
\item Docgenerator::Characters::Percent: \%
|
7
7
|
|
8
|
-
\item \&
|
8
|
+
\item Docgenerator::Characters::Ampersand: \&
|
9
9
|
|
10
|
-
\item \ensuremath{\rightarrow}
|
10
|
+
\item Docgenerator::Characters::Rightarrow: \ensuremath{\rightarrow}
|
11
11
|
|
12
|
-
\item \ensuremath{\leftarrow}
|
12
|
+
\item Docgenerator::Characters::Leftarrow: \ensuremath{\leftarrow}
|
13
13
|
|
14
|
-
\item \ensuremath{\Lefttarrow}
|
14
|
+
\item Docgenerator::Characters::LLeftarrow: \ensuremath{\Lefttarrow}
|
15
15
|
|
16
|
-
\item \ensuremath{\Rightarrow}
|
16
|
+
\item Docgenerator::Characters::RRightarrow: \ensuremath{\Rightarrow}
|
17
17
|
|
18
|
-
\item \_
|
18
|
+
\item Docgenerator::Characters::Underscore: \_
|
19
19
|
|
20
|
-
\item
|
20
|
+
\item Docgenerator::Characters::Singlelowquotemark: \glq
|
21
21
|
|
22
|
-
\item
|
22
|
+
\item Docgenerator::Characters::Doublelowquotemark: \glqq
|
23
23
|
|
24
|
-
\item
|
24
|
+
\item Docgenerator::Characters::Ldots: \ldots
|
25
25
|
|
26
|
-
\item \
|
26
|
+
\item Docgenerator::Characters::Rightsinglequotemark: \rq
|
27
27
|
|
28
|
-
\item
|
28
|
+
\item Docgenerator::Characters::Leftdoublequotemark: \grqq
|
29
29
|
|
30
|
-
\item
|
30
|
+
\item Docgenerator::Characters::Ndash: --
|
31
31
|
|
32
|
-
\item
|
32
|
+
\item Docgenerator::Characters::Mdash: ---
|
33
33
|
\end{itemize}
|
34
34
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<p >
|
2
|
+
Text<sup><a href="#footnote-1">1</a></sup> more text<sup><a href="#g1-1">1</a></sup>
|
3
|
+
</p>
|
4
|
+
<hr />
|
5
|
+
<p >
|
6
|
+
<p ><sup ><a name="footnote-1">1</a></sup>This is a footnote<br />
|
7
|
+
</p>
|
8
|
+
|
9
|
+
</p>
|
10
|
+
<hr />
|
11
|
+
<p >
|
12
|
+
<p ><sup ><a name="g1-1">1</a></sup>This is a footnote in group g1<br />
|
13
|
+
</p>
|
14
|
+
|
15
|
+
</p>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<p >
|
2
|
-
<a href = "./
|
2
|
+
<a href = "./unittest_creole.rb" >./unittest_creole.rb</a>
|
3
3
|
</p>
|
4
4
|
<p >
|
5
|
-
<a href = "./
|
5
|
+
<a href = "./unittest_creole.rb" >This unittest-source</a>
|
6
6
|
</p>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<p >
|
2
|
-
<a href = "./
|
2
|
+
<a href = "./unittest_creole.rb" ><img src = "Red_Flower.jpg" /></a> - if you click on the image, will goto "some link"
|
3
3
|
</p>
|
4
4
|
<p >
|
5
5
|
<a href = "http://example.com/" ><img src = "Red_Flower.jpg" /></a> - same as above: picture links to url
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<<prefix>>
|
2
|
+
\documentclass[ngerman]{scrartcl}
|
3
|
+
\usepackage{babel}
|
4
|
+
\usepackage[ansinew]{inputenc}
|
5
|
+
\usepackage{hyperref}
|
6
|
+
% ----------------------------------------------------------------
|
7
|
+
\usepackage{rail}
|
8
|
+
|
9
|
+
\title{Rail-Diagramms in Creole}
|
10
|
+
\hypersetup{pdftitle={Rail-Diagramms in Creole}}
|
11
|
+
|
12
|
+
% ----------------------------------------------------------------
|
13
|
+
\begin{document}
|
14
|
+
\section{Rail-Diagramms}
|
15
|
+
\subsection{Via Ruby-object}
|
16
|
+
|
17
|
+
|
18
|
+
%
|
19
|
+
% Define a rail-diagramm block
|
20
|
+
%
|
21
|
+
\begin{rail}
|
22
|
+
block :
|
23
|
+
( lbrace | 'begin' )
|
24
|
+
( ( '|' ( variable + ',' ) '|' ) | [Keine Blockvariablen] )
|
25
|
+
comm
|
26
|
+
( rbrace | 'end' )
|
27
|
+
;
|
28
|
+
\end{rail}
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
\end{document}
|
33
|
+
% ----------------------------------------------------------------
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<<prefix>>
|
2
|
+
\documentclass[ngerman]{scrartcl}
|
3
|
+
\usepackage{babel}
|
4
|
+
\usepackage[ansinew]{inputenc}
|
5
|
+
\usepackage{hyperref}
|
6
|
+
% ----------------------------------------------------------------
|
7
|
+
\usepackage{rail}
|
8
|
+
|
9
|
+
\title{Rail-Diagramms in Creole}
|
10
|
+
\hypersetup{pdftitle={Rail-Diagramms in Creole}}
|
11
|
+
|
12
|
+
% ----------------------------------------------------------------
|
13
|
+
\begin{document}
|
14
|
+
\section{Rail-Diagramms}
|
15
|
+
\subsection{Via Placeholder}
|
16
|
+
%
|
17
|
+
% Define a rail-diagramm test
|
18
|
+
%
|
19
|
+
\begin{rail}
|
20
|
+
test :
|
21
|
+
[1] (
|
22
|
+
( '[' string ']' )
|
23
|
+
? body[2--6] + '|'
|
24
|
+
)
|
25
|
+
| [2] body[3--6] '*' body[5--6]
|
26
|
+
| [2] body[3--6] '+' body[5--6]
|
27
|
+
| [3] ( body[4--5] + )
|
28
|
+
| [4] body[5] '?'
|
29
|
+
| [5] identifier ( '[' string ']' ) ?
|
30
|
+
| [5] quote string quote
|
31
|
+
| [5] dquote string dquote
|
32
|
+
| [5] '(' body[1--6] ')'
|
33
|
+
| [5] cr
|
34
|
+
| [6]
|
35
|
+
;
|
36
|
+
;
|
37
|
+
\end{rail}
|
38
|
+
|
39
|
+
\end{document}
|
40
|
+
% ----------------------------------------------------------------
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<p >
|
2
|
+
rubycode
|
3
|
+
</p>
|
4
|
+
<pre style = "rubycode" >1 + 1</pre>
|
5
|
+
<hr />
|
6
|
+
<p >
|
7
|
+
rubycode_output
|
8
|
+
</p>
|
9
|
+
<pre style = "rubycode_output" >2</pre>
|
10
|
+
<hr />
|
11
|
+
<p >
|
12
|
+
rubycode_evaluated
|
13
|
+
</p>
|
14
|
+
<pre style = "rubycode_evaluated" >1 + 1 # -> 2 </pre>
|
15
|
+
<hr />
|
16
|
+
<p >
|
17
|
+
rubycode_in_tab
|
18
|
+
</p>
|
19
|
+
|
20
|
+
<table border = "1" ><tr style = "border-bottom-style: solid;border-bottom-width: medium;" ><td >No</td><td >Code</td><td >Result</td><td >Output</td><td >Output2</td></tr>
|
21
|
+
<tr ><td >1</td><td ><pre class = "rubycode" >1 + 1</pre></td><td >2</td><td ></td><td ><pre class = "ruby_result" ></pre></td></tr>
|
22
|
+
</table>
|
23
|
+
<hr />
|
24
|
+
<pre class = "rubycode_with_result" >
|
25
|
+
1 + 1 # -> 2
|
26
|
+
</pre>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
rubycode
|
4
|
+
|
5
|
+
|
6
|
+
\begin{verbatim}1 + 1\end{verbatim}
|
7
|
+
|
8
|
+
\hrulefill
|
9
|
+
|
10
|
+
|
11
|
+
rubycode\_output
|
12
|
+
|
13
|
+
|
14
|
+
\begin{verbatim}2\end{verbatim}
|
15
|
+
|
16
|
+
\hrulefill
|
17
|
+
|
18
|
+
|
19
|
+
rubycode\_evaluated
|
20
|
+
|
21
|
+
|
22
|
+
\begin{verbatim}1 + 1 # -> 2 \end{verbatim}
|
23
|
+
|
24
|
+
\hrulefill
|
25
|
+
|
26
|
+
|
27
|
+
rubycode\_in\_tab
|
28
|
+
|
29
|
+
|
30
|
+
\begin{tabular}{lp{3cm}llp{3cm}}No & Code & Result & Output & Output2\\\hline
|
31
|
+
1 & \lstinline[]!1 + 1! & 2 & &
|
32
|
+
\begin{verbatim}\end{verbatim}
|
33
|
+
\\
|
34
|
+
\end{tabular}
|
35
|
+
\hrulefill
|
36
|
+
|
37
|
+
\begin{lstlisting}[numbers={left}, numberstyle={\tiny}]
|
38
|
+
1 + 1 # -> 2
|
39
|
+
\end{lstlisting}
|
40
|
+
|
@@ -0,0 +1,4 @@
|
|
1
|
+
|
2
|
+
<table border = "1" ><tr style = "border-bottom-style: solid;border-bottom-width: medium;" ><td >No</td><td >Code</td><td >Result</td><td >Output</td><td >Output2</td></tr>
|
3
|
+
<tr ><td >1</td><td ><pre class = "rubycode" >1 + 1</pre></td><td >2</td><td ></td><td ><pre class = "ruby_result" ></pre></td></tr>
|
4
|
+
</table>
|