docgenerator 1.2.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
Build by C:/appl/Ruby192/lib/ruby/gems/1.9.1/gems/docgenerator-1.2.1/lib/docgenerator/document.rb
|
|
4
|
-
Dir: C:/usr/script/documentgenerator/examples/results
|
|
5
|
-
Creator: docgenerator_example.rb
|
|
6
|
-
Target: docgenerator_example.html
|
|
7
|
-
2011/02/18 10:38:44
|
|
8
|
-
|
|
9
|
-
Generation-Info-End
|
|
10
|
-
-->
|
|
11
|
-
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
12
|
-
<html>
|
|
13
|
-
<head >
|
|
14
|
-
<title>Testdocument for docgenerator.rb</title>
|
|
15
|
-
<meta name="author" content="Authorname">
|
|
16
|
-
<meta name="creation-date" content="Datum">
|
|
17
|
-
<meta name="keywords" content="Test, DocGenerator.rb">
|
|
18
|
-
<meta name="description" content="Testdokument for DocGenerator.rb">
|
|
19
|
-
</head>
|
|
20
|
-
<body lang = "de" ><!-- maketitle -->
|
|
21
|
-
<h1 >Sections and paragraphs</h1>
|
|
22
|
-
<h2 >Paragraphs</h2>
|
|
23
|
-
<p >This is a paragraph</p>
|
|
24
|
-
<p >This is another paragraph.This paragraph contains a second phrase</p>
|
|
25
|
-
<p >This is also a paragraph.This paragraph contains also second phrase</p>
|
|
26
|
-
<h2 >Paragraphs with linebreaks</h2>
|
|
27
|
-
<p >This is a paragraph with linebreaks<br />
|
|
28
|
-
This is text after a linebreak<br />
|
|
29
|
-
Further text after another linebreak (newline in LaTeX)</p>
|
|
30
|
-
<h1 >Specific content</h1>
|
|
31
|
-
<h2 >Formatting</h2>
|
|
32
|
-
<p >This is normal text, <strong >this is bold, </strong><em >this is emphasized.</em></p>
|
|
33
|
-
<h2 >Links and URLs</h2>
|
|
34
|
-
<p ><a href="http://ruby.lickert.net/">http://ruby.lickert.net/</a>
|
|
35
|
-
<a href = "http://ruby.lickert.net/" >Link zu meinen Skripten</a>
|
|
36
|
-
</p>
|
|
37
|
-
<h1 >Insert content</h1>
|
|
38
|
-
This is inserted before the paragraph.<p >This is a paragraph</p>This is inserted after the paragraph.</body>
|
|
39
|
-
</html>
|
|
Binary file
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
%
|
|
2
|
-
% Build by C:/appl/Ruby192/lib/ruby/gems/1.9.1/gems/docgenerator-1.2.1/lib/docgenerator/document.rb
|
|
3
|
-
% Dir: C:/usr/script/documentgenerator/examples/results
|
|
4
|
-
% Creator: docgenerator_example.rb
|
|
5
|
-
% Target: docgenerator_example.tex
|
|
6
|
-
% 2011/02/18 10:38:44
|
|
7
|
-
%
|
|
8
|
-
% Generation-Info-End
|
|
9
|
-
\documentclass[ngerman,english]{scrartcl}
|
|
10
|
-
\usepackage{babel}
|
|
11
|
-
\usepackage[ansinew]{inputenc}
|
|
12
|
-
\usepackage{hyperref}
|
|
13
|
-
% ----------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
\title{Testdocument for docgenerator.rb}
|
|
16
|
-
\hypersetup{pdftitle={Testdocument for docgenerator.rb}}
|
|
17
|
-
\author{Authorname}\hypersetup{pdfauthor={Authorname}}
|
|
18
|
-
\date{Datum}
|
|
19
|
-
\hypersetup{pdfkeywords={Test, DocGenerator.rb}}
|
|
20
|
-
\hypersetup{pdfsubject={Testdokument for DocGenerator.rb}}
|
|
21
|
-
|
|
22
|
-
% ----------------------------------------------------------------
|
|
23
|
-
\begin{document}
|
|
24
|
-
\maketitle \section{Sections and paragraphs}
|
|
25
|
-
\subsection{Paragraphs}
|
|
26
|
-
|
|
27
|
-
This is a paragraph
|
|
28
|
-
|
|
29
|
-
This is another paragraph.This paragraph contains a second phrase
|
|
30
|
-
|
|
31
|
-
This is also a paragraph.This paragraph contains also second phrase
|
|
32
|
-
|
|
33
|
-
\subsection{Paragraphs with linebreaks}
|
|
34
|
-
|
|
35
|
-
This is a paragraph with linebreaks\newline
|
|
36
|
-
This is text after a linebreak\newline
|
|
37
|
-
Further text after another linebreak (newline in LaTeX)
|
|
38
|
-
|
|
39
|
-
\section{Specific content}
|
|
40
|
-
\subsection{Formatting}
|
|
41
|
-
|
|
42
|
-
This is normal text, \textbf{this is bold, }\emph{this is emphasized.}
|
|
43
|
-
|
|
44
|
-
\subsection{Links and URLs}
|
|
45
|
-
|
|
46
|
-
\url{http://ruby.lickert.net/}
|
|
47
|
-
\href{http://ruby.lickert.net/}{Link zu meinen Skripten}
|
|
48
|
-
|
|
49
|
-
\section{Insert content}
|
|
50
|
-
This is inserted before the paragraph.
|
|
51
|
-
|
|
52
|
-
This is a paragraph
|
|
53
|
-
|
|
54
|
-
This is inserted after the paragraph.
|
|
55
|
-
\end{document}
|
|
56
|
-
% ----------------------------------------------------------------
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
Build by C:/usr/Script/documentgenerator/lib/docgenerator/document.rb
|
|
4
|
-
Dir: C:/usr/Script/documentgenerator/examples/results
|
|
5
|
-
Creator: docgenerator_example_footnote.rb
|
|
6
|
-
Target: docgenerator_example_footnote.html
|
|
7
|
-
2011/02/18 22:30:04
|
|
8
|
-
|
|
9
|
-
Generation-Info-End
|
|
10
|
-
-->
|
|
11
|
-
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
12
|
-
<html>
|
|
13
|
-
<head >
|
|
14
|
-
<title>Testdocument with footnotes</title>
|
|
15
|
-
</head>
|
|
16
|
-
<body lang = "de" ><!-- maketitle -->
|
|
17
|
-
<h1 >Standard Footnotes</h1>
|
|
18
|
-
<h2 >Standard footnote</h2>
|
|
19
|
-
Some text in front<sup><a href="#footnote-1">1</a></sup>and some text between.<sup><a href="#footnote-2">2</a></sup> repeat first footnote<sup><a href="#footnote-1">1</a></sup> and finish the text.<h1 >Footnotes in their own groups (only HTML)</h1>
|
|
20
|
-
<p >Footnote groups not supported for LaTeX.</p>
|
|
21
|
-
<h2 >Footnotes in Group 1</h2>
|
|
22
|
-
Some text in front<sup><a href="#g1-1">1</a></sup>and some text between.<sup><a href="#g1-2">2</a></sup> repeat first footnote<sup><a href="#g1-1">1</a></sup> and finish the text.<h3 >Footnotes of the Group 1</h3>
|
|
23
|
-
<p style = "font-size: smaller" ><sup ><a name="g1-1">1</a></sup>Footnote one/Group 1<br />
|
|
24
|
-
<sup ><a name="g1-2">2</a></sup>Footnote two/Group 1<br />
|
|
25
|
-
</p>
|
|
26
|
-
<h2 >Footnotes in Group 2</h2>
|
|
27
|
-
Some text in front<sup>1</sup>and some text between.<sup>2</sup> repeat first footnote<sup>1</sup> and finish the text.<h3 >Footnotes of the Group 2 - without links</h3>
|
|
28
|
-
<p style = "font-size: smaller" ><sup >1</sup>Footnote one/Group 2<br />
|
|
29
|
-
<sup >2</sup>Footnote two/Group 2<br />
|
|
30
|
-
</p>
|
|
31
|
-
<h1 >Standard Footnotes - Continued</h1>
|
|
32
|
-
Some text in front<sup><a href="#footnote-3">3</a></sup>and some text between.<sup><a href="#footnote-4">4</a></sup> repeat first footnote<sup><a href="#footnote-3">3</a></sup> and finish the text.<h2 >Print Footnotes</h2>
|
|
33
|
-
<p >makes only sense in HTML. LaTeX has its own output routine for footnotes.</p>
|
|
34
|
-
<p style = "font-size: smaller" ><sup ><a name="footnote-1">1</a></sup>one<br />
|
|
35
|
-
<sup ><a name="footnote-2">2</a></sup>two<br />
|
|
36
|
-
<sup ><a name="footnote-3">3</a></sup>three<br />
|
|
37
|
-
<sup ><a name="footnote-4">4</a></sup>four<br />
|
|
38
|
-
</p>
|
|
39
|
-
<hr /></body>
|
|
40
|
-
</html>
|
|
Binary file
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
%
|
|
2
|
-
% Build by C:/usr/Script/documentgenerator/lib/docgenerator/document.rb
|
|
3
|
-
% Dir: C:/usr/Script/documentgenerator/examples/results
|
|
4
|
-
% Creator: docgenerator_example_footnote.rb
|
|
5
|
-
% Target: docgenerator_example_footnote.tex
|
|
6
|
-
% 2011/02/18 22:30:04
|
|
7
|
-
%
|
|
8
|
-
% Generation-Info-End
|
|
9
|
-
\documentclass[ngerman]{scrartcl}
|
|
10
|
-
\usepackage{babel}
|
|
11
|
-
\usepackage[ansinew]{inputenc}
|
|
12
|
-
\usepackage{hyperref}
|
|
13
|
-
% ----------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
\title{Testdocument with footnotes}
|
|
16
|
-
\hypersetup{pdftitle={Testdocument with footnotes}}
|
|
17
|
-
|
|
18
|
-
% ----------------------------------------------------------------
|
|
19
|
-
\begin{document}
|
|
20
|
-
\maketitle \section{Standard Footnotes}
|
|
21
|
-
\subsection{Standard footnote}
|
|
22
|
-
Some text in front\footnote{one}and some text between.\footnote{two} repeat first footnote\footnote{one} and finish the text.\section{Footnotes in their own groups (only HTML)}
|
|
23
|
-
|
|
24
|
-
Footnote groups not supported for LaTeX.
|
|
25
|
-
|
|
26
|
-
\subsection{Footnotes in Group 1}
|
|
27
|
-
Some text in front\footnote{Footnote one/Group 1}and some text between.\footnote{Footnote two/Group 1} repeat first footnote\footnote{Footnote one/Group 1} and finish the text.\subsubsection{Footnotes of the Group 1}
|
|
28
|
-
|
|
29
|
-
\textsuperscript{\label{g1-1}\hypertarget{g1-1}{1}}Footnote one/Group 1\newline
|
|
30
|
-
\textsuperscript{\label{g1-2}\hypertarget{g1-2}{2}}Footnote two/Group 1\newline
|
|
31
|
-
|
|
32
|
-
\subsection{Footnotes in Group 2}
|
|
33
|
-
Some text in front\footnote{Footnote one/Group 2}and some text between.\footnote{Footnote two/Group 2} repeat first footnote\footnote{Footnote one/Group 2} and finish the text.\subsubsection{Footnotes of the Group 2 - without links}
|
|
34
|
-
|
|
35
|
-
\textsuperscript{1}Footnote one/Group 2\newline
|
|
36
|
-
\textsuperscript{2}Footnote two/Group 2\newline
|
|
37
|
-
|
|
38
|
-
\section{Standard Footnotes - Continued}
|
|
39
|
-
Some text in front\footnote{three}and some text between.\footnote{four} repeat first footnote\footnote{three} and finish the text.\subsection{Print Footnotes}
|
|
40
|
-
|
|
41
|
-
makes only sense in HTML. LaTeX has its own output routine for footnotes.
|
|
42
|
-
|
|
43
|
-
\textsuperscript{\label{footnote-1}\hypertarget{footnote-1}{1}}one\newline
|
|
44
|
-
\textsuperscript{\label{footnote-2}\hypertarget{footnote-2}{2}}two\newline
|
|
45
|
-
\textsuperscript{\label{footnote-3}\hypertarget{footnote-3}{3}}three\newline
|
|
46
|
-
\textsuperscript{\label{footnote-4}\hypertarget{footnote-4}{4}}four\newline
|
|
47
|
-
|
|
48
|
-
\hrulefill
|
|
49
|
-
\end{document}
|
|
50
|
-
% ----------------------------------------------------------------
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
Build by C:/appl/Ruby192/lib/ruby/gems/1.9.1/gems/docgenerator-1.2.1/lib/docgenerator/document.rb
|
|
4
|
-
Dir: C:/usr/script/documentgenerator/examples/results
|
|
5
|
-
Creator: docgenerator_example_list.rb
|
|
6
|
-
Target: docgenerator_example_list.html
|
|
7
|
-
2011/02/18 10:41:55
|
|
8
|
-
|
|
9
|
-
Generation-Info-End
|
|
10
|
-
-->
|
|
11
|
-
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
12
|
-
<html>
|
|
13
|
-
<head >
|
|
14
|
-
<title>Testdocument with lists</title>
|
|
15
|
-
</head>
|
|
16
|
-
<body lang = "de" ><!-- maketitle -->
|
|
17
|
-
<h1 >Lists</h1><h2 >Unnumbered Lists</h2><ul ><li >Listitem 1</li><li >Listitem 2</li><li >Listitem 3</li></ul><p >Next list</p><ul ><li >Listitem 1</li><li >Listitem 2</li><li >Listitem 3</li></ul><h2 >Numbered Lists</h2><ol ><li >Listitem 1</li><li >Listitem 2</li><li >Listitem 3</li></ol><p >Next list</p><ol ><li >Listitem 1</li><li >Listitem 2</li><li >Listitem 3</li></ol></body>
|
|
18
|
-
</html>
|
|
Binary file
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
%
|
|
2
|
-
% Build by C:/appl/Ruby192/lib/ruby/gems/1.9.1/gems/docgenerator-1.2.1/lib/docgenerator/document.rb
|
|
3
|
-
% Dir: C:/usr/script/documentgenerator/examples/results
|
|
4
|
-
% Creator: docgenerator_example_list.rb
|
|
5
|
-
% Target: docgenerator_example_list.tex
|
|
6
|
-
% 2011/02/18 10:41:55
|
|
7
|
-
%
|
|
8
|
-
% Generation-Info-End
|
|
9
|
-
\documentclass[ngerman]{scrartcl}
|
|
10
|
-
\usepackage{babel}
|
|
11
|
-
\usepackage[ansinew]{inputenc}
|
|
12
|
-
\usepackage{hyperref}
|
|
13
|
-
% ----------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
\title{Testdocument with lists}
|
|
16
|
-
\hypersetup{pdftitle={Testdocument with lists}}
|
|
17
|
-
|
|
18
|
-
% ----------------------------------------------------------------
|
|
19
|
-
\begin{document}
|
|
20
|
-
\maketitle \section{Lists}\subsection{Unnumbered Lists}
|
|
21
|
-
\begin{itemize}
|
|
22
|
-
\item Listitem 1
|
|
23
|
-
\item Listitem 2
|
|
24
|
-
\item Listitem 3\end{itemize}
|
|
25
|
-
|
|
26
|
-
Next list
|
|
27
|
-
|
|
28
|
-
\begin{itemize}
|
|
29
|
-
\item Listitem 1
|
|
30
|
-
\item Listitem 2
|
|
31
|
-
\item Listitem 3\end{itemize}
|
|
32
|
-
\subsection{Numbered Lists}
|
|
33
|
-
\begin{enumerate}
|
|
34
|
-
\item Listitem 1
|
|
35
|
-
\item Listitem 2
|
|
36
|
-
\item Listitem 3\end{enumerate}
|
|
37
|
-
|
|
38
|
-
Next list
|
|
39
|
-
|
|
40
|
-
\begin{enumerate}
|
|
41
|
-
\item Listitem 1
|
|
42
|
-
\item Listitem 2
|
|
43
|
-
\item Listitem 3\end{enumerate}
|
|
44
|
-
|
|
45
|
-
\end{document}
|
|
46
|
-
% ----------------------------------------------------------------
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
Build by C:/usr/script/documentgenerator/lib/docgenerator/document.rb
|
|
4
|
-
Dir: C:/usr/script/documentgenerator/examples/results
|
|
5
|
-
Creator: docgenerator_example_restrictions.rb
|
|
6
|
-
Target: docgenerator_example_restrictions.html
|
|
7
|
-
2011/02/18 11:17:57
|
|
8
|
-
|
|
9
|
-
Generation-Info-End
|
|
10
|
-
-->
|
|
11
|
-
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
12
|
-
<html>
|
|
13
|
-
<head >
|
|
14
|
-
<title>Testdocument with restrictions to output format</title>
|
|
15
|
-
</head>
|
|
16
|
-
<body lang = "en" ><!-- maketitle -->
|
|
17
|
-
<h1 >Restrict to different Output formats</h1>
|
|
18
|
-
<p >When you create simultanous output to LaTeX and HTML, perhaps you need some parts only in one output document.
|
|
19
|
-
</p><h2 >Content only in HTML</h2>
|
|
20
|
-
<p >Only in HTML</p>Only in HTML<h2 >Content only in LaTeX</h2>
|
|
21
|
-
</body>
|
|
22
|
-
</html>
|
|
Binary file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
%
|
|
2
|
-
% Build by C:/usr/script/documentgenerator/lib/docgenerator/document.rb
|
|
3
|
-
% Dir: C:/usr/script/documentgenerator/examples/results
|
|
4
|
-
% Creator: docgenerator_example_restrictions.rb
|
|
5
|
-
% Target: docgenerator_example_restrictions.tex
|
|
6
|
-
% 2011/02/18 11:17:57
|
|
7
|
-
%
|
|
8
|
-
% Generation-Info-End
|
|
9
|
-
\documentclass[ngerman]{scrartcl}
|
|
10
|
-
\usepackage{babel}
|
|
11
|
-
\usepackage[ansinew]{inputenc}
|
|
12
|
-
\usepackage{hyperref}
|
|
13
|
-
% ----------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
\title{Testdocument with restrictions to output format}
|
|
16
|
-
\hypersetup{pdftitle={Testdocument with restrictions to output format}}
|
|
17
|
-
|
|
18
|
-
% ----------------------------------------------------------------
|
|
19
|
-
\begin{document}
|
|
20
|
-
\maketitle \section{Restrict to different Output formats}
|
|
21
|
-
|
|
22
|
-
When you create simultanous output to LaTeX and HTML, perhaps you need some parts only in one output document.
|
|
23
|
-
|
|
24
|
-
\subsection{Content only in HTML}
|
|
25
|
-
\subsection{Content only in LaTeX}
|
|
26
|
-
|
|
27
|
-
Only in LaTeX
|
|
28
|
-
|
|
29
|
-
Only in LaTeX
|
|
30
|
-
\end{document}
|
|
31
|
-
% ----------------------------------------------------------------
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
Build by C:/appl/Ruby192/lib/ruby/gems/1.9.1/gems/docgenerator-1.2.1/lib/docgenerator/document.rb
|
|
4
|
-
Dir: C:/usr/script/documentgenerator/examples/results
|
|
5
|
-
Creator: docgenerator_example_tabular.rb
|
|
6
|
-
Target: docgenerator_example_tabular.html
|
|
7
|
-
2011/02/18 10:44:08
|
|
8
|
-
|
|
9
|
-
Generation-Info-End
|
|
10
|
-
-->
|
|
11
|
-
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
12
|
-
<html>
|
|
13
|
-
<head >
|
|
14
|
-
<title>Testdocument with tabulars</title>
|
|
15
|
-
</head>
|
|
16
|
-
<body lang = "en" ><!-- maketitle -->
|
|
17
|
-
<h1 >Tabulars</h1>
|
|
18
|
-
|
|
19
|
-
<table >
|
|
20
|
-
<tr style = "border-bottom-style: solid;border-bottom-width: medium;" ><td colspan = "4" >Title</td></tr>
|
|
21
|
-
<tr ><td >1A</td><td >1B</td><td >1C</td><td >1D</td></tr>
|
|
22
|
-
<tr ><td >2A</td><td >2B</td><td >2C</td><td >2D</td></tr>
|
|
23
|
-
<tr ><td >3A</td><td >3B</td><td >3C</td><td >3D</td></tr>
|
|
24
|
-
<tr ><td >4A</td><td >4B</td><td >4C</td><td >4D</td></tr>
|
|
25
|
-
<tr ><td >5A</td><td >5B</td><td >5C</td><td >5D</td></tr>
|
|
26
|
-
</table>
|
|
27
|
-
|
|
28
|
-
<table >
|
|
29
|
-
<tr style = "border-bottom-style: solid;border-bottom-width: medium;" ><td colspan = "6" >Title</td></tr>
|
|
30
|
-
<tr ><td >1A</td><td >1B</td><td >1C</td><td >1D</td><td >1E</td><td >1F</td></tr>
|
|
31
|
-
<tr ><td >2A</td><td >2B</td><td >2C</td><td >2D</td><td >2E</td><td >2F</td></tr>
|
|
32
|
-
<tr ><td >3A</td><td >3B</td><td >3C</td><td >3D</td><td >3E</td><td >3F</td></tr>
|
|
33
|
-
<tr ><td >4A</td><td >4B</td><td >4C</td><td >4D</td><td >4E</td><td >4F</td></tr>
|
|
34
|
-
<tr ><td >5A</td><td >5B</td><td >5C</td><td >5D</td><td >5E</td><td >5F</td></tr>
|
|
35
|
-
</table>
|
|
36
|
-
</body>
|
|
37
|
-
</html>
|
|
Binary file
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
%
|
|
2
|
-
% Build by C:/appl/Ruby192/lib/ruby/gems/1.9.1/gems/docgenerator-1.2.1/lib/docgenerator/document.rb
|
|
3
|
-
% Dir: C:/usr/script/documentgenerator/examples/results
|
|
4
|
-
% Creator: docgenerator_example_tabular.rb
|
|
5
|
-
% Target: docgenerator_example_tabular.tex
|
|
6
|
-
% 2011/02/18 10:44:08
|
|
7
|
-
%
|
|
8
|
-
% Generation-Info-End
|
|
9
|
-
\documentclass[ngerman]{scrartcl}
|
|
10
|
-
\usepackage{babel}
|
|
11
|
-
\usepackage[ansinew]{inputenc}
|
|
12
|
-
\usepackage{hyperref}
|
|
13
|
-
% ----------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
\title{Testdocument with tabulars}
|
|
16
|
-
\hypersetup{pdftitle={Testdocument with tabulars}}
|
|
17
|
-
|
|
18
|
-
% ----------------------------------------------------------------
|
|
19
|
-
\begin{document}
|
|
20
|
-
\maketitle \section{Tabulars}
|
|
21
|
-
|
|
22
|
-
\begin{tabular}{cccc}
|
|
23
|
-
\multicolumn{4}{c}{Title}\\[1ex]\hline
|
|
24
|
-
1A & 1B & 1C & 1D\\
|
|
25
|
-
2A & 2B & 2C & 2D\\
|
|
26
|
-
3A & 3B & 3C & 3D\\
|
|
27
|
-
4A & 4B & 4C & 4D\\
|
|
28
|
-
5A & 5B & 5C & 5D\\
|
|
29
|
-
\end{tabular}
|
|
30
|
-
|
|
31
|
-
\begin{tabular}{cccccc}
|
|
32
|
-
\multicolumn{6}{c}{Title}\\[1ex]\hline
|
|
33
|
-
1A & 1B & 1C & 1D & 1E & 1F\\
|
|
34
|
-
2A & 2B & 2C & 2D & 2E & 2F\\
|
|
35
|
-
3A & 3B & 3C & 3D & 3E & 3F\\
|
|
36
|
-
4A & 4B & 4C & 4D & 4E & 4F\\
|
|
37
|
-
5A & 5B & 5C & 5D & 5E & 5F\\
|
|
38
|
-
\end{tabular}
|
|
39
|
-
|
|
40
|
-
\end{document}
|
|
41
|
-
% ----------------------------------------------------------------
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
Build by C:/usr/script/documentgenerator/lib/docgenerator/document.rb
|
|
4
|
-
Dir: C:/usr/script/documentgenerator/examples/results
|
|
5
|
-
Creator: docgenerator_example_tripfalls.rb
|
|
6
|
-
Target: docgenerator_example_tripfalls.html
|
|
7
|
-
2011/02/18 11:23:23
|
|
8
|
-
|
|
9
|
-
Generation-Info-End
|
|
10
|
-
-->
|
|
11
|
-
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
12
|
-
<html>
|
|
13
|
-
<head >
|
|
14
|
-
<title>Testdocument with tripfalls</title>
|
|
15
|
-
</head>
|
|
16
|
-
<body lang = "de" ><!-- maketitle -->
|
|
17
|
-
<h1 >Generell Tripfalls</h1>
|
|
18
|
-
Some Text<br />
|
|
19
|
-
Some Text<h1 >Tripfalls with HTML</h1>
|
|
20
|
-
<h2 >Paragraph forgotten?</h2>
|
|
21
|
-
You may add text to the body direct.
|
|
22
|
-
But there is no p-tag in HTML if you don't define it.
|
|
23
|
-
Your HTML will be malformed and when you use CSS, you may loose your layout for paragraphs.
|
|
24
|
-
<h1 >Tripfalls with LaTeX</h1>
|
|
25
|
-
<h2 >Tabulars</h2>
|
|
26
|
-
</body>
|
|
27
|
-
</html>
|
|
Binary file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
%
|
|
2
|
-
% Build by C:/usr/script/documentgenerator/lib/docgenerator/document.rb
|
|
3
|
-
% Dir: C:/usr/script/documentgenerator/examples/results
|
|
4
|
-
% Creator: docgenerator_example_tripfalls.rb
|
|
5
|
-
% Target: docgenerator_example_tripfalls.tex
|
|
6
|
-
% 2011/02/18 11:23:23
|
|
7
|
-
%
|
|
8
|
-
% Generation-Info-End
|
|
9
|
-
\documentclass[ngerman]{scrartcl}
|
|
10
|
-
\usepackage{babel}
|
|
11
|
-
\usepackage[ansinew]{inputenc}
|
|
12
|
-
\usepackage{hyperref}
|
|
13
|
-
% ----------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
\title{Testdocument with tripfalls}
|
|
16
|
-
\hypersetup{pdftitle={Testdocument with tripfalls}}
|
|
17
|
-
|
|
18
|
-
% ----------------------------------------------------------------
|
|
19
|
-
\begin{document}
|
|
20
|
-
\maketitle \section{Generell Tripfalls}
|
|
21
|
-
Some Text\newline
|
|
22
|
-
Some Text\section{Tripfalls with HTML}
|
|
23
|
-
\subsection{Paragraph forgotten?}
|
|
24
|
-
You may add text to the body direct.
|
|
25
|
-
But there is no p-tag in HTML if you don't define it.
|
|
26
|
-
Your HTML will be malformed and when you use CSS, you may loose your layout for paragraphs.
|
|
27
|
-
\section{Tripfalls with LaTeX}
|
|
28
|
-
\subsection{Tabulars}
|
|
29
|
-
|
|
30
|
-
\end{document}
|
|
31
|
-
% ----------------------------------------------------------------
|