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
@@ -0,0 +1,120 @@
|
|
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
|
+
Class: Asciidoctor::Converter::Html5Converter
|
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#!Asciidoctor/Converter/Html5Converter.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 (H)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../Asciidoctor.html" title="Asciidoctor (module)">Asciidoctor</a></span></span> » <span class='title'>Converter</span>
|
36
|
+
»
|
37
|
+
<span class="title">Html5Converter</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Asciidoctor::Converter::Html5Converter
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Asciidoctor::Converter::Html5Converter</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/asciidoctor/latex/converter.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
<div id="footer">
|
114
|
+
Generated on Sun Apr 19 18:37:45 2015 by
|
115
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
116
|
+
0.8.7.6 (ruby-2.1.2).
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</body>
|
120
|
+
</html>
|
@@ -0,0 +1,327 @@
|
|
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
|
+
Class: Asciidoctor::Document
|
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#!Asciidoctor/Document.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 (D)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Asciidoctor.html" title="Asciidoctor (module)">Asciidoctor</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Document</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Asciidoctor::Document
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Asciidoctor::Document</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/asciidoctor/latex/node_processors.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>
|
111
|
+
Instance Method Summary
|
112
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
+
</h2>
|
114
|
+
|
115
|
+
<ul class="summary">
|
116
|
+
|
117
|
+
<li class="public ">
|
118
|
+
<span class="summary_signature">
|
119
|
+
|
120
|
+
<a href="#tex_process-instance_method" title="#tex_process (instance method)">- (Object) <strong>tex_process</strong> </a>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
</span>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
135
|
+
|
136
|
+
</li>
|
137
|
+
|
138
|
+
|
139
|
+
</ul>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<div id="instance_method_details" class="method_details_list">
|
145
|
+
<h2>Instance Method Details</h2>
|
146
|
+
|
147
|
+
|
148
|
+
<div class="method_details first">
|
149
|
+
<h3 class="signature first" id="tex_process-instance_method">
|
150
|
+
|
151
|
+
- (<tt>Object</tt>) <strong>tex_process</strong>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</h3><table class="source_code">
|
158
|
+
<tr>
|
159
|
+
<td>
|
160
|
+
<pre class="lines">
|
161
|
+
|
162
|
+
|
163
|
+
31
|
164
|
+
32
|
165
|
+
33
|
166
|
+
34
|
167
|
+
35
|
168
|
+
36
|
169
|
+
37
|
170
|
+
38
|
171
|
+
39
|
172
|
+
40
|
173
|
+
41
|
174
|
+
42
|
175
|
+
43
|
176
|
+
44
|
177
|
+
45
|
178
|
+
46
|
179
|
+
47
|
180
|
+
48
|
181
|
+
49
|
182
|
+
50
|
183
|
+
51
|
184
|
+
52
|
185
|
+
53
|
186
|
+
54
|
187
|
+
55
|
188
|
+
56
|
189
|
+
57
|
190
|
+
58
|
191
|
+
59
|
192
|
+
60
|
193
|
+
61
|
194
|
+
62
|
195
|
+
63
|
196
|
+
64
|
197
|
+
65
|
198
|
+
66
|
199
|
+
67
|
200
|
+
68
|
201
|
+
69
|
202
|
+
70
|
203
|
+
71
|
204
|
+
72
|
205
|
+
73
|
206
|
+
74
|
207
|
+
75
|
208
|
+
76
|
209
|
+
77
|
210
|
+
78
|
211
|
+
79
|
212
|
+
80
|
213
|
+
81
|
214
|
+
82
|
215
|
+
83
|
216
|
+
84
|
217
|
+
85
|
218
|
+
86
|
219
|
+
87
|
220
|
+
88
|
221
|
+
89
|
222
|
+
90
|
223
|
+
91
|
224
|
+
92
|
225
|
+
93
|
226
|
+
94
|
227
|
+
95
|
228
|
+
96
|
229
|
+
97
|
230
|
+
98
|
231
|
+
99
|
232
|
+
100
|
233
|
+
101
|
234
|
+
102</pre>
|
235
|
+
</td>
|
236
|
+
<td>
|
237
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 31</span>
|
238
|
+
|
239
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_tex_process'>tex_process</span>
|
240
|
+
<span class='comment'># warn "Node: #{self.class}".blue if $VERBOSE
|
241
|
+
</span>
|
242
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
243
|
+
|
244
|
+
<span class='comment'># # warn "document.attributes['header'] = #{document.attributes['header']}".magenta if $VERBOSE
|
245
|
+
</span>
|
246
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_embedded?'>embedded?</span> <span class='kw'>or</span> <span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>header</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='op'>==</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>no</span><span class='tstring_end'>'</span></span>
|
247
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%% Preamble %%\n</span><span class='tstring_end'>"</span></span>
|
248
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>preamble.tex</span><span class='tstring_end'>'</span></span>
|
249
|
+
<span class='id identifier rubyid_preamble'>preamble</span> <span class='op'>=</span> <span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>preamble.tex</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
250
|
+
<span class='comment'># warn "preamble: #{preamble.length} chars".yellow
|
251
|
+
</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='id identifier rubyid_preamble'>preamble</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n </span><span class='tstring_end'>"</span></span>
|
252
|
+
<span class='kw'>else</span>
|
253
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='const'>LaTeX</span><span class='op'>::</span><span class='const'>DATA_DIR</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>preamble_</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='id identifier rubyid_doctype'>doctype</span><span class='embexpr_end'>}</span><span class='tstring_content'>.tex</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span> <span class='rbrace'>}</span>
|
254
|
+
<span class='kw'>end</span>
|
255
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%% Asciidoc TeX Macros %%\n</span><span class='tstring_end'>"</span></span>
|
256
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='const'>LaTeX</span><span class='op'>::</span><span class='const'>DATA_DIR</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>asciidoc_tex_macros.tex</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span> <span class='rbrace'>}</span>
|
257
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%% User Macros %%\n</span><span class='tstring_end'>"</span></span>
|
258
|
+
<span class='comment'># doc << File.open(File.join(LaTeX::DATA_DIR, 'macros.tex'), 'r') { |f| f.read }
|
259
|
+
</span> <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>macros.tex</span><span class='tstring_end'>'</span></span>
|
260
|
+
<span class='id identifier rubyid_macros'>macros</span> <span class='op'>=</span> <span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>macros.tex</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
261
|
+
<span class='comment'># warn "macros: #{macros.length} chars".yellow
|
262
|
+
</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='id identifier rubyid_macros'>macros</span>
|
263
|
+
<span class='kw'>else</span>
|
264
|
+
<span class='comment'># warn "Could not find file macros.tex".yellow
|
265
|
+
</span> <span class='kw'>end</span>
|
266
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>myEnvironments.tex</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
267
|
+
<span class='comment'># warn "I will take input from myEnvironments.tex".blue
|
268
|
+
</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\input myEnvironments.tex\n</span><span class='tstring_end'>"</span></span>
|
269
|
+
<span class='kw'>else</span>
|
270
|
+
<span class='comment'># warn "I will take input from newEnvironments.tex".blue
|
271
|
+
</span> <span class='comment'># doc << "\\input newEnvironments.tex\n"
|
272
|
+
</span> <span class='kw'>end</span>
|
273
|
+
|
274
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%% Front Matter %%</span><span class='tstring_end'>"</span></span>
|
275
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\n\\title\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doctitle'>doctitle</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='tstring_end'>"</span></span>
|
276
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\author\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='tstring_end'>"</span></span>
|
277
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\date\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_revdate'>revdate</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n\n\n</span><span class='tstring_end'>"</span></span>
|
278
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%% Begin Document %%</span><span class='tstring_end'>"</span></span>
|
279
|
+
<span class='comment'># doc << "\n\n\\begin\{document\}\n"
|
280
|
+
</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\n\\begin\{document\}\n</span><span class='tstring_end'>"</span></span>
|
281
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\maketitle\n</span><span class='tstring_end'>"</span></span>
|
282
|
+
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>toc</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
283
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\tableofcontents\n</span><span class='tstring_end'>"</span></span>
|
284
|
+
<span class='kw'>end</span>
|
285
|
+
<span class='kw'>end</span>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<span class='id identifier rubyid_processed_content'>processed_content</span> <span class='op'>=</span> <span class='const'>LaTeX</span><span class='op'>::</span><span class='const'>TeXBlock</span><span class='period'>.</span><span class='id identifier rubyid_process_environments'>process_environments</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
290
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='id identifier rubyid_processed_content'>processed_content</span>
|
291
|
+
|
292
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_embedded?'>embedded?</span>
|
293
|
+
<span class='comment'># Now write the defnitions of the new environments
|
294
|
+
</span> <span class='comment'># discovered to file
|
295
|
+
</span> <span class='comment'># warn "Writing environment definitions to file: newEnvironments.tex" if $VERBOSE
|
296
|
+
</span> <span class='id identifier rubyid_definitions'>definitions</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
297
|
+
|
298
|
+
<span class='gvar'>$latex_environment_names</span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
|
299
|
+
<span class='comment'># warn name if $VERBOSE
|
300
|
+
</span> <span class='id identifier rubyid_definitions'>definitions</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\newtheorem\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span>
|
301
|
+
<span class='kw'>end</span>
|
302
|
+
|
303
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>newEnvironments.tex</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>w</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_definitions'>definitions</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
304
|
+
|
305
|
+
<span class='comment'># Output
|
306
|
+
</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\\end{document}\n</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>header</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='op'>==</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>no</span><span class='tstring_end'>'</span></span>
|
307
|
+
<span class='kw'>end</span>
|
308
|
+
|
309
|
+
<span class='id identifier rubyid_doc'>doc</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span>
|
310
|
+
<span class='kw'>end</span></pre>
|
311
|
+
</td>
|
312
|
+
</tr>
|
313
|
+
</table>
|
314
|
+
</div>
|
315
|
+
|
316
|
+
</div>
|
317
|
+
|
318
|
+
</div>
|
319
|
+
|
320
|
+
<div id="footer">
|
321
|
+
Generated on Sun Apr 19 18:37:45 2015 by
|
322
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
323
|
+
0.8.7.6 (ruby-2.1.2).
|
324
|
+
</div>
|
325
|
+
|
326
|
+
</body>
|
327
|
+
</html>
|
@@ -0,0 +1,594 @@
|
|
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
|
+
Class: Asciidoctor::Inline
|
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#!Asciidoctor/Inline.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 (I)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Asciidoctor.html" title="Asciidoctor (module)">Asciidoctor</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Inline</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Asciidoctor::Inline
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Asciidoctor::Inline</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/asciidoctor/latex/node_processors.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Process inline elements</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<h2>
|
122
|
+
Instance Method Summary
|
123
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
124
|
+
</h2>
|
125
|
+
|
126
|
+
<ul class="summary">
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#inline_anchor_process-instance_method" title="#inline_anchor_process (instance method)">- (Object) <strong>inline_anchor_process</strong> </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#inline_break_process-instance_method" title="#inline_break_process (instance method)">- (Object) <strong>inline_break_process</strong> </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
<li class="public ">
|
173
|
+
<span class="summary_signature">
|
174
|
+
|
175
|
+
<a href="#inline_callout_process-instance_method" title="#inline_callout_process (instance method)">- (Object) <strong>inline_callout_process</strong> </a>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</span>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#inline_footnote_process-instance_method" title="#inline_footnote_process (instance method)">- (Object) <strong>inline_footnote_process</strong> </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
212
|
+
|
213
|
+
</li>
|
214
|
+
|
215
|
+
|
216
|
+
<li class="public ">
|
217
|
+
<span class="summary_signature">
|
218
|
+
|
219
|
+
<a href="#inline_quoted_process-instance_method" title="#inline_quoted_process (instance method)">- (Object) <strong>inline_quoted_process</strong> </a>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</span>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#tex_process-instance_method" title="#tex_process (instance method)">- (Object) <strong>tex_process</strong> </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
256
|
+
|
257
|
+
</li>
|
258
|
+
|
259
|
+
|
260
|
+
</ul>
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<div id="instance_method_details" class="method_details_list">
|
266
|
+
<h2>Instance Method Details</h2>
|
267
|
+
|
268
|
+
|
269
|
+
<div class="method_details first">
|
270
|
+
<h3 class="signature first" id="inline_anchor_process-instance_method">
|
271
|
+
|
272
|
+
- (<tt>Object</tt>) <strong>inline_anchor_process</strong>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
</h3><table class="source_code">
|
279
|
+
<tr>
|
280
|
+
<td>
|
281
|
+
<pre class="lines">
|
282
|
+
|
283
|
+
|
284
|
+
576
|
285
|
+
577
|
286
|
+
578
|
287
|
+
579
|
288
|
+
580
|
289
|
+
581
|
290
|
+
582
|
291
|
+
583
|
292
|
+
584
|
293
|
+
585
|
294
|
+
586
|
295
|
+
587
|
296
|
+
588
|
297
|
+
589
|
298
|
+
590
|
299
|
+
591
|
300
|
+
592
|
301
|
+
593
|
302
|
+
594
|
303
|
+
595
|
304
|
+
596
|
305
|
+
597
|
306
|
+
598
|
307
|
+
599
|
308
|
+
600
|
309
|
+
601
|
310
|
+
602
|
311
|
+
603
|
312
|
+
604
|
313
|
+
605
|
314
|
+
606</pre>
|
315
|
+
</td>
|
316
|
+
<td>
|
317
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 576</span>
|
318
|
+
|
319
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inline_anchor_process'>inline_anchor_process</span>
|
320
|
+
|
321
|
+
<span class='comment'># warn ["Node:".blue, "#{self.node_name}".magenta, "type[#{self.type}], ".green + " text: #{self.text} target: #{self.target}".cyan].join(" ") if $VERBOSE
|
322
|
+
</span>
|
323
|
+
<span class='id identifier rubyid_refid'>refid</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>refid</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
324
|
+
<span class='id identifier rubyid_refs'>refs</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_document'>document</span><span class='period'>.</span><span class='id identifier rubyid_references'>references</span><span class='lbracket'>[</span><span class='symbol'>:ids</span><span class='rbracket'>]</span>
|
325
|
+
<span class='comment'># FIXME: the next line is HACKISH (and it crashes the app when refs[refid]) is nil)
|
326
|
+
</span> <span class='comment'># FIXME: and with the fix for nil results is even more hackish
|
327
|
+
</span> <span class='comment'># if refs[refid]
|
328
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_refs'>refs</span><span class='lbracket'>[</span><span class='id identifier rubyid_refid'>refid</span><span class='rbracket'>]</span>
|
329
|
+
<span class='id identifier rubyid_reftext'>reftext</span> <span class='op'>=</span> <span class='id identifier rubyid_refs'>refs</span><span class='lbracket'>[</span><span class='id identifier rubyid_refid'>refid</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
330
|
+
<span class='id identifier rubyid_m'>m</span> <span class='op'>=</span> <span class='id identifier rubyid_reftext'>reftext</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(\d*)</span><span class='regexp_end'>/</span></span>
|
331
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_m'>m</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_reftext'>reftext</span>
|
332
|
+
<span class='id identifier rubyid_reftext'>reftext</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_reftext'>reftext</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>"</span></span>
|
333
|
+
<span class='kw'>end</span>
|
334
|
+
<span class='kw'>else</span>
|
335
|
+
<span class='id identifier rubyid_reftext'>reftext</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
336
|
+
<span class='kw'>end</span>
|
337
|
+
<span class='kw'>case</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span>
|
338
|
+
<span class='kw'>when</span> <span class='symbol'>:link</span>
|
339
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\href\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_target'>target</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
340
|
+
<span class='kw'>when</span> <span class='symbol'>:ref</span>
|
341
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\label\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\[(.*?)\]</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\1</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
342
|
+
<span class='kw'>when</span> <span class='symbol'>:xref</span>
|
343
|
+
<span class='comment'>#"\\ref\{#{self.target.gsub('#','')}\}"
|
344
|
+
</span> <span class='comment'># # warn "\\hyperlink\{#{refid}\}\{#{reftext}\}".yellow
|
345
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\hyperlink\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_refid'>refid</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_reftext'>reftext</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
346
|
+
<span class='kw'>else</span>
|
347
|
+
<span class='comment'># warn "!! : undefined inline anchor -----------".magenta if $VERBOSE
|
348
|
+
</span> <span class='kw'>end</span>
|
349
|
+
<span class='kw'>end</span></pre>
|
350
|
+
</td>
|
351
|
+
</tr>
|
352
|
+
</table>
|
353
|
+
</div>
|
354
|
+
|
355
|
+
<div class="method_details ">
|
356
|
+
<h3 class="signature " id="inline_break_process-instance_method">
|
357
|
+
|
358
|
+
- (<tt>Object</tt>) <strong>inline_break_process</strong>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
</h3><table class="source_code">
|
365
|
+
<tr>
|
366
|
+
<td>
|
367
|
+
<pre class="lines">
|
368
|
+
|
369
|
+
|
370
|
+
608
|
371
|
+
609
|
372
|
+
610
|
373
|
+
611</pre>
|
374
|
+
</td>
|
375
|
+
<td>
|
376
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 608</span>
|
377
|
+
|
378
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inline_break_process'>inline_break_process</span>
|
379
|
+
<span class='comment'># warn ["Node:".blue, "#{self.node_name}".cyan, "type[#{self.type}], ".green + " text: #{self.text}"].join(" ") if $VERBOSE
|
380
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'> \\\\</span><span class='tstring_end'>"</span></span>
|
381
|
+
<span class='kw'>end</span></pre>
|
382
|
+
</td>
|
383
|
+
</tr>
|
384
|
+
</table>
|
385
|
+
</div>
|
386
|
+
|
387
|
+
<div class="method_details ">
|
388
|
+
<h3 class="signature " id="inline_callout_process-instance_method">
|
389
|
+
|
390
|
+
- (<tt>Object</tt>) <strong>inline_callout_process</strong>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
</h3><table class="source_code">
|
397
|
+
<tr>
|
398
|
+
<td>
|
399
|
+
<pre class="lines">
|
400
|
+
|
401
|
+
|
402
|
+
620
|
403
|
+
621
|
404
|
+
622</pre>
|
405
|
+
</td>
|
406
|
+
<td>
|
407
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 620</span>
|
408
|
+
|
409
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inline_callout_process'>inline_callout_process</span>
|
410
|
+
<span class='id identifier rubyid_warn'>warn</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Please implement me! (inline_callout_process)</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span> <span class='kw'>if</span> <span class='gvar'>$VERBOSE</span>
|
411
|
+
<span class='kw'>end</span></pre>
|
412
|
+
</td>
|
413
|
+
</tr>
|
414
|
+
</table>
|
415
|
+
</div>
|
416
|
+
|
417
|
+
<div class="method_details ">
|
418
|
+
<h3 class="signature " id="inline_footnote_process-instance_method">
|
419
|
+
|
420
|
+
- (<tt>Object</tt>) <strong>inline_footnote_process</strong>
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
</h3><table class="source_code">
|
427
|
+
<tr>
|
428
|
+
<td>
|
429
|
+
<pre class="lines">
|
430
|
+
|
431
|
+
|
432
|
+
613
|
433
|
+
614
|
434
|
+
615
|
435
|
+
616
|
436
|
+
617
|
437
|
+
618</pre>
|
438
|
+
</td>
|
439
|
+
<td>
|
440
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 613</span>
|
441
|
+
|
442
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inline_footnote_process'>inline_footnote_process</span>
|
443
|
+
<span class='comment'># warn ["Node:".blue, "#{self.node_name}".cyan, "type[#{self.type}], ".green + " text: #{self.text}"].join(" ") if $VERBOSE
|
444
|
+
</span> <span class='comment'># # warn self.content.yellow
|
445
|
+
</span> <span class='comment'># # warn self.style.magenta
|
446
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\footnote\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
447
|
+
<span class='kw'>end</span></pre>
|
448
|
+
</td>
|
449
|
+
</tr>
|
450
|
+
</table>
|
451
|
+
</div>
|
452
|
+
|
453
|
+
<div class="method_details ">
|
454
|
+
<h3 class="signature " id="inline_quoted_process-instance_method">
|
455
|
+
|
456
|
+
- (<tt>Object</tt>) <strong>inline_quoted_process</strong>
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
</h3><table class="source_code">
|
463
|
+
<tr>
|
464
|
+
<td>
|
465
|
+
<pre class="lines">
|
466
|
+
|
467
|
+
|
468
|
+
551
|
469
|
+
552
|
470
|
+
553
|
471
|
+
554
|
472
|
+
555
|
473
|
+
556
|
474
|
+
557
|
475
|
+
558
|
476
|
+
559
|
477
|
+
560
|
478
|
+
561
|
479
|
+
562
|
480
|
+
563
|
481
|
+
564
|
482
|
+
565
|
483
|
+
566
|
484
|
+
567
|
485
|
+
568
|
486
|
+
569
|
487
|
+
570
|
488
|
+
571
|
489
|
+
572
|
490
|
+
573
|
491
|
+
574</pre>
|
492
|
+
</td>
|
493
|
+
<td>
|
494
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 551</span>
|
495
|
+
|
496
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inline_quoted_process'>inline_quoted_process</span>
|
497
|
+
<span class='comment'># warn ["Node:".blue, "#{self.node_name}".cyan, "type[#{self.type}], ".green + " text: #{self.text}"].join(" ") if $VERBOSE
|
498
|
+
</span> <span class='kw'>case</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span>
|
499
|
+
<span class='kw'>when</span> <span class='symbol'>:strong</span>
|
500
|
+
<span class='comment'>#"\\textbf\{#{self.text}\}"
|
501
|
+
</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span>
|
502
|
+
<span class='kw'>when</span> <span class='symbol'>:emphasis</span>
|
503
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\emph\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
504
|
+
<span class='kw'>when</span> <span class='symbol'>:asciimath</span>
|
505
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\$</span><span class='embexpr_beg'>#{</span><span class='const'>LaTeX</span><span class='op'>::</span><span class='const'>TeXPostProcess</span><span class='period'>.</span><span class='id identifier rubyid_stem_substitutions'>stem_substitutions</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>\$</span><span class='tstring_end'>"</span></span>
|
506
|
+
<span class='kw'>when</span> <span class='symbol'>:monospaced</span>
|
507
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\{\\tt </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
508
|
+
<span class='kw'>when</span> <span class='symbol'>:unquoted</span>
|
509
|
+
<span class='id identifier rubyid_role'>role</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>role</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
510
|
+
<span class='comment'># warn " -- role = #{role}".yellow if $VERBOSE
|
511
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_role'>role</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>red</span><span class='tstring_end'>"</span></span>
|
512
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\rolered\{ </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
513
|
+
<span class='kw'>else</span>
|
514
|
+
<span class='comment'># warn "This is inline_quoted_process. I don't understand role = #{role}" if $VERBOSE
|
515
|
+
</span> <span class='kw'>end</span>
|
516
|
+
<span class='kw'>else</span>
|
517
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\unknown\\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\}</span><span class='tstring_end'>"</span></span>
|
518
|
+
<span class='kw'>end</span>
|
519
|
+
<span class='kw'>end</span></pre>
|
520
|
+
</td>
|
521
|
+
</tr>
|
522
|
+
</table>
|
523
|
+
</div>
|
524
|
+
|
525
|
+
<div class="method_details ">
|
526
|
+
<h3 class="signature " id="tex_process-instance_method">
|
527
|
+
|
528
|
+
- (<tt>Object</tt>) <strong>tex_process</strong>
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
</h3><table class="source_code">
|
535
|
+
<tr>
|
536
|
+
<td>
|
537
|
+
<pre class="lines">
|
538
|
+
|
539
|
+
|
540
|
+
533
|
541
|
+
534
|
542
|
+
535
|
543
|
+
536
|
544
|
+
537
|
545
|
+
538
|
546
|
+
539
|
547
|
+
540
|
548
|
+
541
|
549
|
+
542
|
550
|
+
543
|
551
|
+
544
|
552
|
+
545
|
553
|
+
546
|
554
|
+
547
|
555
|
+
548
|
556
|
+
549</pre>
|
557
|
+
</td>
|
558
|
+
<td>
|
559
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 533</span>
|
560
|
+
|
561
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_tex_process'>tex_process</span>
|
562
|
+
<span class='kw'>case</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span>
|
563
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>inline_quoted</span><span class='tstring_end'>'</span></span>
|
564
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inline_quoted_process'>inline_quoted_process</span>
|
565
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>inline_anchor</span><span class='tstring_end'>'</span></span>
|
566
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inline_anchor_process'>inline_anchor_process</span>
|
567
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>inline_break</span><span class='tstring_end'>'</span></span>
|
568
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inline_break_process'>inline_break_process</span>
|
569
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>inline_footnote</span><span class='tstring_end'>'</span></span>
|
570
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inline_footnote_process'>inline_footnote_process</span>
|
571
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>inline_callout</span><span class='tstring_end'>'</span></span>
|
572
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inline_callout_process'>inline_callout_process</span>
|
573
|
+
<span class='kw'>else</span>
|
574
|
+
<span class='comment'># warn "This is Asciidoctor::Inline, tex_process. I don't know how to do that (#{self.node_name})".yellow if $VERBOSE
|
575
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
576
|
+
<span class='kw'>end</span>
|
577
|
+
<span class='kw'>end</span></pre>
|
578
|
+
</td>
|
579
|
+
</tr>
|
580
|
+
</table>
|
581
|
+
</div>
|
582
|
+
|
583
|
+
</div>
|
584
|
+
|
585
|
+
</div>
|
586
|
+
|
587
|
+
<div id="footer">
|
588
|
+
Generated on Sun Apr 19 18:37:45 2015 by
|
589
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
590
|
+
0.8.7.6 (ruby-2.1.2).
|
591
|
+
</div>
|
592
|
+
|
593
|
+
</body>
|
594
|
+
</html>
|