asciidoctor-latex 1.5.0.2.dev → 1.5.0.3.dev
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +17 -0
- data/README.adoc +18 -4
- data/doc/Asciidoctor.html +131 -0
- data/doc/Asciidoctor/Block.html +1700 -0
- data/doc/Asciidoctor/Converter/Html5Converter.html +120 -0
- data/doc/Asciidoctor/Document.html +327 -0
- data/doc/Asciidoctor/Inline.html +594 -0
- data/doc/Asciidoctor/LaTeX.html +167 -0
- data/doc/Asciidoctor/LaTeX/Chem.html +210 -0
- data/doc/Asciidoctor/LaTeX/ChemInlineMacro.html +194 -0
- data/doc/Asciidoctor/LaTeX/ClickBlock.html +344 -0
- data/doc/Asciidoctor/LaTeX/ClickStyleInsert.html +283 -0
- data/doc/Asciidoctor/LaTeX/Converter.html +321 -0
- data/doc/Asciidoctor/LaTeX/Dollar.html +203 -0
- data/doc/Asciidoctor/LaTeX/EntToUni.html +194 -0
- data/doc/Asciidoctor/LaTeX/EnvironmentBlock.html +420 -0
- data/doc/Asciidoctor/LaTeX/HTMLPostprocessor.html +204 -0
- data/doc/Asciidoctor/LaTeX/Html5ConverterExtensions.html +905 -0
- data/doc/Asciidoctor/LaTeX/InjectHTML.html +192 -0
- data/doc/Asciidoctor/LaTeX/MacroInsert.html +300 -0
- data/doc/Asciidoctor/LaTeX/TeXBlock.html +644 -0
- data/doc/Asciidoctor/LaTeX/TeXPostProcess.html +504 -0
- data/doc/Asciidoctor/LaTeX/TeXPreprocessor.html +287 -0
- data/doc/Asciidoctor/LaTeX/TexPostprocessor.html +209 -0
- data/doc/Asciidoctor/List.html +483 -0
- data/doc/Asciidoctor/Section.html +219 -0
- data/doc/Asciidoctor/Table.html +227 -0
- data/doc/PreambleProcessor.html +202 -0
- data/doc/String.html +587 -0
- data/doc/_index.html +382 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.LICENSE.html +96 -0
- data/doc/file.README.html +335 -0
- data/doc/file.manual.html +479 -0
- data/doc/file_list.html +63 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +335 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +549 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/asciidoctor/latex/converter.rb +2 -4
- data/lib/asciidoctor/latex/tex_preprocessor.rb +19 -4
- data/lib/asciidoctor/latex/version.rb +1 -1
- data/test/examples/adoc/exponent1.adoc +2 -0
- data/test/examples/adoc/exponent2.adoc +4 -0
- data/test/examples/adoc/macro_underscore.adoc +5 -0
- data/test/examples/adoc/math.adoc +2 -2
- metadata +51 -29
- data/rspec/README.adoc +0 -45
- data/rspec/a.rb +0 -79
- data/rspec/b.rb +0 -111
- data/rspec/c.rb +0 -121
- data/rspec/data/tex1 +0 -65
- data/rspec/data/tex2 +0 -5
- data/rspec/data/tex2.expect +0 -5
- data/rspec/transform.rb +0 -36
- data/spec/README.adoc +0 -45
- data/spec/a.rb +0 -79
- data/spec/b.rb +0 -111
- data/spec/c.rb +0 -121
- data/spec/data/foo +0 -1
- data/spec/data/lorem +0 -1
- data/spec/data/tex1 +0 -65
- data/spec/data/tex2 +0 -5
- data/spec/data/tex2.expect +0 -5
- data/spec/transform.rb +0 -36
data/doc/css/style.css
ADDED
@@ -0,0 +1,339 @@
|
|
1
|
+
body {
|
2
|
+
padding: 0 20px;
|
3
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
+
font-size: 13px;
|
5
|
+
}
|
6
|
+
body.frames { padding: 0 5px; }
|
7
|
+
h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
|
8
|
+
h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
|
9
|
+
h1.title { margin-bottom: 10px; }
|
10
|
+
h1.alphaindex { margin-top: 0; font-size: 22px; }
|
11
|
+
h2 {
|
12
|
+
padding: 0;
|
13
|
+
padding-bottom: 3px;
|
14
|
+
border-bottom: 1px #aaa solid;
|
15
|
+
font-size: 1.4em;
|
16
|
+
margin: 1.8em 0 0.5em;
|
17
|
+
}
|
18
|
+
h2 small { font-weight: normal; font-size: 0.7em; display: block; float: right; }
|
19
|
+
.clear { clear: both; }
|
20
|
+
.inline { display: inline; }
|
21
|
+
.inline p:first-child { display: inline; }
|
22
|
+
.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
|
23
|
+
.docstring h1 { font-size: 1.2em; }
|
24
|
+
.docstring h2 { font-size: 1.1em; }
|
25
|
+
.docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
|
26
|
+
.summary_desc .object_link, .docstring .object_link { font-family: monospace; }
|
27
|
+
.rdoc-term { padding-right: 25px; font-weight: bold; }
|
28
|
+
.rdoc-list p { margin: 0; padding: 0; margin-bottom: 4px; }
|
29
|
+
|
30
|
+
/* style for <table> */
|
31
|
+
#filecontents table, .docstring table { border-collapse: collapse; }
|
32
|
+
#filecontents table th, #filecontents table td,
|
33
|
+
.docstring table th, .docstring table td { border: 1px solid #ccc; padding: 8px; padding-right: 17px; }
|
34
|
+
#filecontents table tr:nth-child(odd),
|
35
|
+
.docstring table tr:nth-child(odd) { background: #eee; }
|
36
|
+
#filecontents table tr:nth-child(even),
|
37
|
+
.docstring table tr:nth-child(even) { background: #fff; }
|
38
|
+
#filecontents table th, .docstring table th { background: #fff; }
|
39
|
+
|
40
|
+
/* style for <ul> */
|
41
|
+
#filecontents li > p, .docstring li > p { margin: 0px; }
|
42
|
+
#filecontents ul, .docstring ul { padding-left: 20px; }
|
43
|
+
/* style for <dl> */
|
44
|
+
#filecontents dl, .docstring dl { border: 1px solid #ccc; }
|
45
|
+
#filecontents dt, .docstring dt { background: #ddd; font-weight: bold; padding: 3px 5px; }
|
46
|
+
#filecontents dd, .docstring dd { padding: 5px 0px; margin-left: 18px; }
|
47
|
+
#filecontents dd > p, .docstring dd > p { margin: 0px; }
|
48
|
+
|
49
|
+
.note {
|
50
|
+
color: #222;
|
51
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
52
|
+
background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
|
53
|
+
display: block;
|
54
|
+
}
|
55
|
+
.note.todo { background: #ffffc5; border-color: #ececaa; }
|
56
|
+
.note.returns_void { background: #efefef; }
|
57
|
+
.note.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
58
|
+
.note.private { background: #ffffc5; border-color: #ececaa; }
|
59
|
+
.note.title { padding: 1px 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; display: inline; }
|
60
|
+
.summary_signature + .note.title { margin-left: 7px; }
|
61
|
+
h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
|
62
|
+
.note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
63
|
+
.note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
|
64
|
+
.note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
65
|
+
.note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
|
66
|
+
.note.title.not_defined_here { background: transparent; border: none; font-style: italic; }
|
67
|
+
.discussion .note { margin-top: 6px; }
|
68
|
+
.discussion .note:first-child { margin-top: 0; }
|
69
|
+
|
70
|
+
h3.inherited {
|
71
|
+
font-style: italic;
|
72
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
73
|
+
font-weight: normal;
|
74
|
+
padding: 0;
|
75
|
+
margin: 0;
|
76
|
+
margin-top: 12px;
|
77
|
+
margin-bottom: 3px;
|
78
|
+
font-size: 13px;
|
79
|
+
}
|
80
|
+
p.inherited {
|
81
|
+
padding: 0;
|
82
|
+
margin: 0;
|
83
|
+
margin-left: 25px;
|
84
|
+
}
|
85
|
+
|
86
|
+
#filecontents dl.box, dl.box {
|
87
|
+
border: 0;
|
88
|
+
width: 520px;
|
89
|
+
font-size: 1em;
|
90
|
+
}
|
91
|
+
#filecontents dl.box dt, dl.box dt {
|
92
|
+
float: left;
|
93
|
+
display: block;
|
94
|
+
width: 100px;
|
95
|
+
margin: 0;
|
96
|
+
text-align: right;
|
97
|
+
font-weight: bold;
|
98
|
+
background: transparent;
|
99
|
+
border: 1px solid #aaa;
|
100
|
+
border-width: 1px 0px 0px 1px;
|
101
|
+
padding: 6px 0;
|
102
|
+
padding-right: 10px;
|
103
|
+
}
|
104
|
+
#filecontents dl.box dd, dl.box dd {
|
105
|
+
float: left;
|
106
|
+
display: block;
|
107
|
+
width: 380px;
|
108
|
+
margin: 0;
|
109
|
+
padding: 6px 0;
|
110
|
+
padding-right: 20px;
|
111
|
+
border: 1px solid #aaa;
|
112
|
+
border-width: 1px 1px 0 0;
|
113
|
+
}
|
114
|
+
#filecontents dl.box .last, dl.box .last {
|
115
|
+
border-bottom: 1px solid #aaa;
|
116
|
+
}
|
117
|
+
#filecontents dl.box .r1, dl.box .r1 { background: #eee; }
|
118
|
+
|
119
|
+
ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
|
120
|
+
.index_inline_list { padding-left: 0; font-size: 1.1em; }
|
121
|
+
.index_inline_list li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
|
122
|
+
|
123
|
+
dl.constants { margin-left: 40px; }
|
124
|
+
dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
|
125
|
+
dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
|
126
|
+
|
127
|
+
.summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
|
128
|
+
.summary_desc tt { font-size: 0.9em; }
|
129
|
+
dl.constants .note { padding: 2px 6px; padding-right: 12px; margin-top: 6px; }
|
130
|
+
dl.constants .docstring { margin-left: 32px; font-size: 0.9em; font-weight: normal; }
|
131
|
+
dl.constants .tags { padding-left: 32px; font-size: 0.9em; line-height: 0.8em; }
|
132
|
+
dl.constants .discussion *:first-child { margin-top: 0; }
|
133
|
+
dl.constants .discussion *:last-child { margin-bottom: 0; }
|
134
|
+
|
135
|
+
.method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
|
136
|
+
.method_details.first { border: 0; }
|
137
|
+
p.signature, h3.signature {
|
138
|
+
font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
|
139
|
+
padding: 6px 10px; margin-top: 18px;
|
140
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
141
|
+
}
|
142
|
+
p.signature tt,
|
143
|
+
h3.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
|
144
|
+
p.signature .overload,
|
145
|
+
h3.signature .overload { display: block; }
|
146
|
+
p.signature .extras,
|
147
|
+
h3.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
|
148
|
+
p.signature .not_defined_here,
|
149
|
+
h3.signature .not_defined_here,
|
150
|
+
p.signature .aliases,
|
151
|
+
h3.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
|
152
|
+
p.signature .aliases .names,
|
153
|
+
h3.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
|
154
|
+
|
155
|
+
.tags .tag_title { font-size: 1em; margin-bottom: 0; font-weight: bold; }
|
156
|
+
.tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
|
157
|
+
.tags ul li { margin-bottom: 3px; }
|
158
|
+
.tags ul .name { font-family: monospace; font-weight: bold; }
|
159
|
+
.tags ul .note { padding: 3px 6px; }
|
160
|
+
.tags { margin-bottom: 12px; }
|
161
|
+
|
162
|
+
.tags .examples .tag_title { margin-bottom: 10px; font-weight: bold; }
|
163
|
+
.tags .examples .inline p { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
|
164
|
+
|
165
|
+
.tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
|
166
|
+
.tags .overload .overload_item .signature {
|
167
|
+
padding: 2px 8px;
|
168
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
169
|
+
}
|
170
|
+
.tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
|
171
|
+
.tags .overload .docstring { margin-top: 15px; }
|
172
|
+
|
173
|
+
.defines { display: none; }
|
174
|
+
|
175
|
+
#method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
|
176
|
+
|
177
|
+
.showSource { font-size: 0.9em; }
|
178
|
+
.showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
|
179
|
+
|
180
|
+
#content a:link, #content a:visited { text-decoration: none; color: #05a; }
|
181
|
+
#content a:hover { background: #ffffa5; }
|
182
|
+
div.docstring, p.docstring { margin-right: 6em; }
|
183
|
+
|
184
|
+
ul.summary {
|
185
|
+
list-style: none;
|
186
|
+
font-family: monospace;
|
187
|
+
font-size: 1em;
|
188
|
+
line-height: 1.5em;
|
189
|
+
}
|
190
|
+
ul.summary a:link, ul.summary a:visited {
|
191
|
+
text-decoration: none; font-size: 1.1em;
|
192
|
+
}
|
193
|
+
ul.summary li { margin-bottom: 5px; }
|
194
|
+
.summary .summary_signature {
|
195
|
+
padding: 1px 10px;
|
196
|
+
background: #eaeaff; border: 1px solid #dfdfe5;
|
197
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
198
|
+
}
|
199
|
+
.summary_signature:hover { background: #eeeeff; cursor: pointer; }
|
200
|
+
ul.summary.compact li { display: inline-block; margin: 0px 5px 0px 0px; line-height: 2.6em;}
|
201
|
+
ul.summary.compact .summary_signature { padding: 5px 7px; padding-right: 4px; }
|
202
|
+
#content .summary_signature:hover a:link,
|
203
|
+
#content .summary_signature:hover a:visited {
|
204
|
+
background: transparent;
|
205
|
+
color: #48f;
|
206
|
+
}
|
207
|
+
|
208
|
+
p.inherited a { font-family: monospace; font-size: 0.9em; }
|
209
|
+
p.inherited { word-spacing: 5px; font-size: 1.2em; }
|
210
|
+
|
211
|
+
p.children { font-size: 1.2em; }
|
212
|
+
p.children a { font-size: 0.9em; }
|
213
|
+
p.children strong { font-size: 0.8em; }
|
214
|
+
p.children strong.modules { padding-left: 5px; }
|
215
|
+
|
216
|
+
ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
|
217
|
+
ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
|
218
|
+
ul.fullTree li { text-align: center; padding-top: 18px; padding-bottom: 12px; background: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZ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|
219
|
+
ul.fullTree li:first-child { padding-top: 0; background: transparent; }
|
220
|
+
ul.fullTree li:last-child { padding-bottom: 0; }
|
221
|
+
.showAll ul.fullTree { display: block; }
|
222
|
+
.showAll .inheritName { display: none; }
|
223
|
+
|
224
|
+
#search { position: absolute; right: 14px; top: 0px; }
|
225
|
+
#search a:link, #search a:visited {
|
226
|
+
display: block; float: left; margin-right: 4px;
|
227
|
+
padding: 8px 10px; text-decoration: none; color: #05a;
|
228
|
+
border: 1px solid #d8d8e5;
|
229
|
+
-moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
|
230
|
+
-webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
|
231
|
+
background: #eaf0ff;
|
232
|
+
-webkit-box-shadow: -1px 1px 3px #ddd;
|
233
|
+
}
|
234
|
+
#search a:hover { background: #f5faff; color: #06b; }
|
235
|
+
#search a.active {
|
236
|
+
background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
|
237
|
+
-moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
|
238
|
+
-webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
|
239
|
+
}
|
240
|
+
#search a.inactive { color: #999; }
|
241
|
+
.frames #search { display: none; }
|
242
|
+
.inheritanceTree, .toggleDefines { float: right; }
|
243
|
+
|
244
|
+
#menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
|
245
|
+
#menu .title, #menu a { font-size: 0.7em; }
|
246
|
+
#menu .title a { font-size: 1em; }
|
247
|
+
#menu .title { color: #555; }
|
248
|
+
#menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
249
|
+
#menu a:hover { color: #05a; }
|
250
|
+
#menu .noframes { display: inline; }
|
251
|
+
.frames #menu .noframes { display: inline; float: right; }
|
252
|
+
|
253
|
+
#footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
|
254
|
+
#footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
255
|
+
#footer a:hover { color: #05a; }
|
256
|
+
|
257
|
+
#listing ul.alpha { font-size: 1.1em; }
|
258
|
+
#listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
|
259
|
+
#listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
|
260
|
+
#listing ul.alpha ul { margin: 0; padding-left: 15px; }
|
261
|
+
#listing ul small { color: #666; font-size: 0.7em; }
|
262
|
+
|
263
|
+
li.r1 { background: #f0f0f0; }
|
264
|
+
li.r2 { background: #fafafa; }
|
265
|
+
|
266
|
+
#search_frame {
|
267
|
+
z-index: 9999;
|
268
|
+
background: #fff;
|
269
|
+
display: none;
|
270
|
+
position: absolute;
|
271
|
+
top: 36px;
|
272
|
+
right: 18px;
|
273
|
+
width: 500px;
|
274
|
+
height: 80%;
|
275
|
+
overflow-y: scroll;
|
276
|
+
border: 1px solid #999;
|
277
|
+
border-collapse: collapse;
|
278
|
+
-webkit-box-shadow: -7px 5px 25px #aaa;
|
279
|
+
-moz-box-shadow: -7px 5px 25px #aaa;
|
280
|
+
-moz-border-radius: 2px;
|
281
|
+
-webkit-border-radius: 2px;
|
282
|
+
}
|
283
|
+
|
284
|
+
#content ul.summary li.deprecated .summary_signature a:link,
|
285
|
+
#content ul.summary li.deprecated .summary_signature a:visited { text-decoration: line-through; font-style: italic; }
|
286
|
+
|
287
|
+
#toc {
|
288
|
+
padding: 20px; padding-right: 30px; border: 1px solid #ddd; float: right; background: #fff; margin-left: 20px; margin-bottom: 20px;
|
289
|
+
max-width: 300px;
|
290
|
+
-webkit-box-shadow: -2px 2px 6px #bbb;
|
291
|
+
-moz-box-shadow: -2px 2px 6px #bbb;
|
292
|
+
z-index: 5000;
|
293
|
+
position: relative;
|
294
|
+
overflow-x: auto;
|
295
|
+
}
|
296
|
+
#toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
|
297
|
+
#toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
|
298
|
+
#toc .title { margin: 0; }
|
299
|
+
#toc ol { padding-left: 1.8em; }
|
300
|
+
#toc li { font-size: 1.1em; line-height: 1.7em; }
|
301
|
+
#toc > ol > li { font-size: 1.1em; font-weight: bold; }
|
302
|
+
#toc ol > ol { font-size: 0.9em; }
|
303
|
+
#toc ol ol > ol { padding-left: 2.3em; }
|
304
|
+
#toc ol + li { margin-top: 0.3em; }
|
305
|
+
#toc.hidden { padding: 10px; background: #f6f6f6; -webkit-box-shadow: none; -moz-box-shadow: none; }
|
306
|
+
#filecontents h1 + #toc.nofloat { margin-top: 0; }
|
307
|
+
|
308
|
+
/* syntax highlighting */
|
309
|
+
.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
|
310
|
+
#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
|
311
|
+
#filecontents pre.code, .docstring pre.code { display: block; }
|
312
|
+
.source_code .lines { padding-right: 12px; color: #555; text-align: right; }
|
313
|
+
#filecontents pre.code, .docstring pre.code,
|
314
|
+
.tags pre.example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
|
315
|
+
pre.code { color: #000; }
|
316
|
+
pre.code .info.file { color: #555; }
|
317
|
+
pre.code .val { color: #036A07; }
|
318
|
+
pre.code .tstring_content,
|
319
|
+
pre.code .heredoc_beg, pre.code .heredoc_end,
|
320
|
+
pre.code .qwords_beg, pre.code .qwords_end,
|
321
|
+
pre.code .tstring, pre.code .dstring { color: #036A07; }
|
322
|
+
pre.code .fid, pre.code .rubyid_new, pre.code .rubyid_to_s,
|
323
|
+
pre.code .rubyid_to_sym, pre.code .rubyid_to_f,
|
324
|
+
pre.code .dot + pre.code .id,
|
325
|
+
pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
|
326
|
+
pre.code .comment { color: #0066FF; }
|
327
|
+
pre.code .const, pre.code .constant { color: #585CF6; }
|
328
|
+
pre.code .label,
|
329
|
+
pre.code .symbol { color: #C5060B; }
|
330
|
+
pre.code .kw,
|
331
|
+
pre.code .rubyid_require,
|
332
|
+
pre.code .rubyid_extend,
|
333
|
+
pre.code .rubyid_include { color: #0000FF; }
|
334
|
+
pre.code .ivar { color: #318495; }
|
335
|
+
pre.code .gvar,
|
336
|
+
pre.code .rubyid_backref,
|
337
|
+
pre.code .rubyid_nth_ref { color: #6D79DE; }
|
338
|
+
pre.code .regexp, .dregexp { color: #036A07; }
|
339
|
+
pre.code a { border-bottom: 1px dotted #bbf; }
|
@@ -0,0 +1,96 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>
|
7
|
+
File: LICENSE
|
8
|
+
|
9
|
+
— Asciidoctor LaTeX Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!file.LICENSE.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
<span class="title">File: LICENSE</span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a class="full_list_link" id="class_list_link"
|
44
|
+
href="class_list.html">
|
45
|
+
Class List
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<a class="full_list_link" id="method_list_link"
|
49
|
+
href="method_list.html">
|
50
|
+
Method List
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<a class="full_list_link" id="file_list_link"
|
54
|
+
href="file_list.html">
|
55
|
+
File List
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><div id='filecontents'><div class="literalblock">
|
65
|
+
<div class="title">The MIT License</div>
|
66
|
+
<div class="content">
|
67
|
+
<pre class="code ruby"><code class="ruby">Copyright (C) 2014 James Carlson
|
68
|
+
|
69
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
70
|
+
of this software and associated documentation files (the "Software"), to deal
|
71
|
+
in the Software without restriction, including without limitation the rights
|
72
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
73
|
+
copies of the Software, and to permit persons to whom the Software is
|
74
|
+
furnished to do so, subject to the following conditions:
|
75
|
+
|
76
|
+
The above copyright notice and this permission notice shall be included in
|
77
|
+
all copies or substantial portions of the Software.
|
78
|
+
|
79
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
80
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
81
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
82
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
83
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
84
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
85
|
+
THE SOFTWARE.</code></pre>
|
86
|
+
</div>
|
87
|
+
</div></div></div>
|
88
|
+
|
89
|
+
<div id="footer">
|
90
|
+
Generated on Sun Apr 19 18:37:45 2015 by
|
91
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
92
|
+
0.8.7.6 (ruby-2.1.2).
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</body>
|
96
|
+
</html>
|
@@ -0,0 +1,335 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>
|
7
|
+
File: README
|
8
|
+
|
9
|
+
— Asciidoctor LaTeX Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
<span class="title">File: README</span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a class="full_list_link" id="class_list_link"
|
44
|
+
href="class_list.html">
|
45
|
+
Class List
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<a class="full_list_link" id="method_list_link"
|
49
|
+
href="method_list.html">
|
50
|
+
Method List
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<a class="full_list_link" id="file_list_link"
|
54
|
+
href="file_list.html">
|
55
|
+
File List
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><div id='filecontents'><div class="sect1">
|
65
|
+
<h2 id="_purpose">1. Purpose</h2>
|
66
|
+
<div class="sectionbody">
|
67
|
+
<div class="paragraph">
|
68
|
+
<p>Asciidoc-LaTeX defines an extended mathematical syntax
|
69
|
+
for the Asciidoc markup language
|
70
|
+
that closely parallels LaTeX. The
|
71
|
+
Asciidoctor-LaTeX converter renders documents written
|
72
|
+
in this extended markup language into both HTML
|
73
|
+
and LaTeX.<span class="footnote">[<a id="_footnoteref_1" class="footnote" href="#_footnote_1" title="View footnote.">1</a>]</span></p>
|
74
|
+
</div>
|
75
|
+
<div class="paragraph">
|
76
|
+
<p>Below, we descibe the main
|
77
|
+
features of Asciidoc-LaTeX. However, since
|
78
|
+
Asciidoc-LaTeX will not render in GitHub, you
|
79
|
+
are encouraged to view this write-up:
|
80
|
+
<a href=https://vschool.s3.amazonaws.com/manuscripts/372.html>Asciidoc-LaTeX</a>.
|
81
|
+
For more information on using , please consult the
|
82
|
+
<a href=http://www.noteshare.io/book/asciidoctor-latex-manual>Asciidoctor-LaTeX manual</a>.
|
83
|
+
For more information on conversion of Asciidoc-LaTeX
|
84
|
+
documents to <a href=https://www.sharelatex.com/>LaTeX</a>, see the file <code>tech-report.adoc</code> in
|
85
|
+
this repository.</p>
|
86
|
+
</div>
|
87
|
+
<div class="paragraph">
|
88
|
+
<p>Asciidoctor-LaTeX is developed by James Carlson, Jakub Jirutka, and Dan Allen.</p>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
<div class="sect1">
|
93
|
+
<h2 id="_installation">2. Installation</h2>
|
94
|
+
<div class="sectionbody">
|
95
|
+
<div class="sect2">
|
96
|
+
<h3 id="_using_rubygems">2.1. Using Rubygems</h3>
|
97
|
+
<div class="paragraph">
|
98
|
+
<p>There is a development release at
|
99
|
+
<a href=https://rubygems.org/gems/asciidoctor-latex>RubyGems.org</a>
|
100
|
+
Beta alert!</p>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
<div class="sect2">
|
104
|
+
<h3 id="_from_github">2.2. From GitHub</h3>
|
105
|
+
<div class="paragraph">
|
106
|
+
<p>If you would like to install a development version from the repository, use:</p>
|
107
|
+
</div>
|
108
|
+
<div class="literalblock">
|
109
|
+
<div class="content">
|
110
|
+
<pre class="code ruby"><code class="ruby">$ git clone https://github.com/asciidoctor/asciidoctor-latex.git
|
111
|
+
$ cd asciidoctor-latex
|
112
|
+
$ gem build asciidoctor-latex.gemspec
|
113
|
+
$ gem install *.gem</code></pre>
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
<div class="sect1">
|
120
|
+
<h2 id="_document_format">3. Document format</h2>
|
121
|
+
<div class="sectionbody">
|
122
|
+
<div class="paragraph">
|
123
|
+
<p>Asciidoctor supports two closely-related
|
124
|
+
math formats, <span class="blue">Asciidoc-LaTeX</span>
|
125
|
+
and <span class="blue">AsciiMath</span>.
|
126
|
+
In Asciidoc-LaTeX,
|
127
|
+
one can write <code>\( a^2 + b^2 = c^2 \)</code> and</p>
|
128
|
+
</div>
|
129
|
+
<div class="listingblock">
|
130
|
+
<div class="content">
|
131
|
+
<pre class="code ruby"><code class="ruby"> \[
|
132
|
+
e^{2\pi \sqrt{-1}} = 1,
|
133
|
+
\]</code></pre>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
<div class="paragraph">
|
137
|
+
<p>for in-line and display mathematial
|
138
|
+
text, respectively.
|
139
|
+
You will need to express dollar-denominated
|
140
|
+
currency using
|
141
|
+
escaped dollar signs, as
|
142
|
+
in the sentence, "He paid $100 for that
|
143
|
+
theore.m" In AsciiMath, one writes
|
144
|
+
<code>stem:[ a^2 + b^2 = c^2 ]</code>
|
145
|
+
and</p>
|
146
|
+
</div>
|
147
|
+
<div class="listingblock">
|
148
|
+
<div class="content">
|
149
|
+
<pre class="code ruby"><code class="ruby"> [stem]
|
150
|
+
++++
|
151
|
+
e^{2\pi \sqrt{-1}} = 1.
|
152
|
+
++++</code></pre>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
<div class="sect1">
|
158
|
+
<h2 id="_asciidoc_latex_environments">4. Asciidoc-LaTeX environments</h2>
|
159
|
+
<div class="sectionbody">
|
160
|
+
<div class="paragraph">
|
161
|
+
<p>Asciidoc-LaTeX supports an <code>env</code> construct that maps to LaTeX environments.
|
162
|
+
Thus</p>
|
163
|
+
</div>
|
164
|
+
<div class="listingblock">
|
165
|
+
<div class="content">
|
166
|
+
<pre class="code ruby"><code class="ruby">[env.theorem]
|
167
|
+
--
|
168
|
+
There exist infinitely many prime numbers.
|
169
|
+
--</code></pre>
|
170
|
+
</div>
|
171
|
+
</div>
|
172
|
+
<div class="paragraph">
|
173
|
+
<p>renders as an automatically numbered theorem.
|
174
|
+
Environments can contain in-line and display mathematics, e.g.,</p>
|
175
|
+
</div>
|
176
|
+
<div class="listingblock">
|
177
|
+
<div class="content">
|
178
|
+
<pre class="code ruby"><code class="ruby">[env.theorem]
|
179
|
+
--
|
180
|
+
A two-by-two matrix is invertible if
|
181
|
+
its determinant is nonzero, i.e., if
|
182
|
+
\[
|
183
|
+
\left|\begin{matrix}
|
184
|
+
a & b \\
|
185
|
+
c & d
|
186
|
+
\end{matrix}\right| \ne 0
|
187
|
+
\]
|
188
|
+
This result extends to +\(n\times n\)+ matrices.
|
189
|
+
--</code></pre>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
<div class="paragraph">
|
193
|
+
<p>There is complete freedom in parameter <code>NAME</code>
|
194
|
+
of <code>[env.NAME]</code>, Thus,one can write</p>
|
195
|
+
</div>
|
196
|
+
<div class="listingblock">
|
197
|
+
<div class="content">
|
198
|
+
<pre class="code ruby"><code class="ruby">[env.definition]
|
199
|
+
--
|
200
|
+
An integer +\(n\)+ is *prime* if (a) it is not
|
201
|
+
+\(\pm 1\)+ and (b) it has no divisors other
|
202
|
+
than +\(\pm 1\)+ and +\(\pm n\)+.
|
203
|
+
--</code></pre>
|
204
|
+
</div>
|
205
|
+
</div>
|
206
|
+
<div class="paragraph">
|
207
|
+
<p>or</p>
|
208
|
+
</div>
|
209
|
+
<div class="listingblock">
|
210
|
+
<div class="content">
|
211
|
+
<pre class="code ruby"><code class="ruby">[env.joke]
|
212
|
+
--
|
213
|
+
A mathematician, a philosopher, and
|
214
|
+
a lawyer met at the local bar
|
215
|
+
for a drink. The lawyer said ...
|
216
|
+
--</code></pre>
|
217
|
+
</div>
|
218
|
+
</div>
|
219
|
+
<div class="paragraph">
|
220
|
+
<p>One can make cross references by labeling
|
221
|
+
the environment as in</p>
|
222
|
+
</div>
|
223
|
+
<div class="listingblock">
|
224
|
+
<div class="content">
|
225
|
+
<pre class="code ruby"><code class="ruby">[env.joke#mathjoke1]
|
226
|
+
--
|
227
|
+
A mathematician, a philosopher, and
|
228
|
+
a lawyer met at the local bar
|
229
|
+
for a drink. The lawyer said ...
|
230
|
+
--</code></pre>
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
<div class="paragraph">
|
234
|
+
<p>then referencing it later as <code>ERROR: refs[refid] was nil</code>.</p>
|
235
|
+
</div>
|
236
|
+
<div class="paragraph">
|
237
|
+
<p>Certain environments receive special treatment.
|
238
|
+
For numbered equations, use <code>[env.equation]</code>
|
239
|
+
like this</p>
|
240
|
+
</div>
|
241
|
+
<div class="listingblock">
|
242
|
+
<div class="content">
|
243
|
+
<pre class="code ruby"><code class="ruby">[env.equation]
|
244
|
+
--
|
245
|
+
a^{p-1} \equiv 1\ \text{mod}\ p
|
246
|
+
--</code></pre>
|
247
|
+
</div>
|
248
|
+
</div>
|
249
|
+
<div class="paragraph">
|
250
|
+
<p>For sets of equations, use <code>[env,equationalign]</code>:</p>
|
251
|
+
</div>
|
252
|
+
<div class="listingblock">
|
253
|
+
<div class="content">
|
254
|
+
<pre class="code ruby"><code class="ruby">[env.equationalign]
|
255
|
+
--
|
256
|
+
A & = 4\pi r^2 \\
|
257
|
+
V & = \frac{4}{3} \pi r^3
|
258
|
+
--</code></pre>
|
259
|
+
</div>
|
260
|
+
</div>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
<div class="sect1">
|
264
|
+
<h2 id="_click_blocks">5. Click blocks</h2>
|
265
|
+
<div class="sectionbody">
|
266
|
+
<div class="paragraph">
|
267
|
+
<p>Click blocks are similar to <code>[env]</code> blocks exceptiipoo that the body of
|
268
|
+
the block is not displayed until the user clicks on the heading.
|
269
|
+
The heading of a click block is displayed in blue. Once a click
|
270
|
+
block is "opened", it can be closed by clicking again on the heading.</p>
|
271
|
+
</div>
|
272
|
+
<div class="listingblock">
|
273
|
+
<div class="content">
|
274
|
+
<pre class="code ruby"><code class="ruby">[click.comment]
|
275
|
+
--
|
276
|
+
It is sometimes useful to "hide" a comment
|
277
|
+
in a click block so as not to unduly
|
278
|
+
disturb the flow of the prose. Click
|
279
|
+
blocks are also useful for problem sets,
|
280
|
+
since one can make hints, solutions, etc.
|
281
|
+
clickable.</code></pre>
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
<div class="paragraph">
|
285
|
+
<p>The default for click blocks is not to number them.
|
286
|
+
See the file <code>click.adoc</code> in the <code>exampless</code> directory
|
287
|
+
for more information.</p>
|
288
|
+
</div>
|
289
|
+
</div>
|
290
|
+
</div>
|
291
|
+
<div class="sect1">
|
292
|
+
<h2 id="_commands_for_rendering">6. Commands for rendering</h2>
|
293
|
+
<div class="sectionbody">
|
294
|
+
<div class="paragraph">
|
295
|
+
<p>Asciidoc math files can be rendered</p>
|
296
|
+
</div>
|
297
|
+
<div class="ulist">
|
298
|
+
<ul>
|
299
|
+
<li>
|
300
|
+
<p>as HTML. Use <code>$ asciidoctor-latex -b html foo.adoc</code> to produce <code>foo.html</code>.
|
301
|
+
With this command the Asciidoc-LaTeX syntax and extensions will be rendered.</p>
|
302
|
+
</li>
|
303
|
+
<li>
|
304
|
+
<p>as LaTeX. Use <code>$ asciidoctor-latex foo.adoc</code>
|
305
|
+
to produce <code>foo.tex</code>.</p>
|
306
|
+
</li>
|
307
|
+
</ul>
|
308
|
+
</div>
|
309
|
+
</div>
|
310
|
+
</div>
|
311
|
+
<div class="sect1">
|
312
|
+
<h2 id="_switches">7. Switches</h2>
|
313
|
+
<div class="sectionbody">
|
314
|
+
<div class="paragraph">
|
315
|
+
<p>Switch <code>:stem:</code> processing on by puttinng the text <code>:stem:</code>
|
316
|
+
in your file. To turn the switch on and set it to <code>latexmath</code>, say
|
317
|
+
instead of <code>stem:latexmth</code>.</p>
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
</div>
|
321
|
+
<div id="footnotes">
|
322
|
+
<hr>
|
323
|
+
<div class="footnote" id="_footnote_1">
|
324
|
+
<a href="#_footnoteref_1">1</a> Many, but not all Asciidoc language features are covered by this release.
|
325
|
+
</div>
|
326
|
+
</div></div></div>
|
327
|
+
|
328
|
+
<div id="footer">
|
329
|
+
Generated on Sun Apr 19 18:37:45 2015 by
|
330
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
331
|
+
0.8.7.6 (ruby-2.1.2).
|
332
|
+
</div>
|
333
|
+
|
334
|
+
</body>
|
335
|
+
</html>
|