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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c249cc418d11354363baa08ec670be4edab48ad2
|
4
|
+
data.tar.gz: 55a245829d54ce30fda414c92181496ed5a5e89a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd338d41863d6d72188051fe347b7510e50c56481e1bce40f64d998e64bf6097dd78475e84aa6ac2c5c6c4b1db02769c8d67446d85ef9a0ea7be354fde90486e
|
7
|
+
data.tar.gz: 32ddb9214505a39439d5c00ea0e58de07d360095e1eb4ff3ac28917ef149a939084f3208c395cdf2d2c3c2b236c9461f99be2e0550f1fbfdebe625974f1b9481
|
data/CHANGELOG.adoc
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
== Change Log
|
2
|
+
|
3
|
+
NOTE: View with Asciidoctor for best results.
|
4
|
+
|
5
|
+
1.5.0.3dev::
|
6
|
+
+\[ (a^)^3 = 1 \]+ is now handled properly. Thus +\[ (a^)^3 = 1 \]+
|
7
|
+
in the source .adoc is passed unchanged to the rendered .tex.
|
8
|
+
(We replace \[ by +\[ in the preprocessor when it occurs
|
9
|
+
at the beginnng of a line and likewise for the other bracket).
|
10
|
+
|
11
|
+
|
12
|
+
1.5.0.2dev::
|
13
|
+
Map \( .. \) back to $ ... $ in the postprocessor when converting to LaTeX.
|
14
|
+
Thus $ .. $ in the source is passed unchanged to the rendered .tex.
|
15
|
+
|
16
|
+
1.5.0de::
|
17
|
+
Initial release
|
data/README.adoc
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
= AsciiDoc-LaTeX Converter for Asciidoctor
|
2
2
|
James Carlson
|
3
|
-
|
3
|
+
2015-04-19
|
4
4
|
:numbered:
|
5
|
+
:pagenums:
|
5
6
|
:toc2:
|
6
7
|
:stem:
|
7
8
|
|
8
9
|
== Purpose
|
9
10
|
|
11
|
+
:adl: Asciidoc-LaTeX
|
12
|
+
:adlp: Asciidoctor-LaTeX
|
13
|
+
:ad: Asciidoc
|
14
|
+
:adp: http://asciidoctor.org[Asciidoctor]
|
15
|
+
:adoc: http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/[Asciidoc]
|
16
|
+
:adlm: http://www.noteshare.io/section/asciidoctor-latex-manual-intro[Asciidoctor-LaTeX Manual]
|
17
|
+
:tex: https://www.sharelatex.com/[LaTeX]
|
18
|
+
:article: http://noteshare.io/book/transcendental-numbers-and-periods[article]
|
19
|
+
:ns: http://www.noteshare.io[Noteshare.io]
|
20
|
+
|
21
|
+
|
10
22
|
Asciidoc-LaTeX defines an extended mathematical syntax
|
11
23
|
for the Asciidoc markup language
|
12
24
|
that closely parallels LaTeX. The
|
@@ -16,13 +28,15 @@ and LaTeX.footnote:[Many, but not all Asciidoc language
|
|
16
28
|
features are covered by this release.]
|
17
29
|
|
18
30
|
Below, we descibe the main
|
19
|
-
features of
|
31
|
+
features of {adl}. However, since
|
20
32
|
Asciidoc-LaTeX will not render in GitHub, you
|
21
33
|
are encouraged to view this write-up:
|
22
34
|
https://vschool.s3.amazonaws.com/manuscripts/372.html[Asciidoc-LaTeX].
|
23
|
-
For more information, please consult
|
35
|
+
For more information on using , please consult the
|
24
36
|
http://www.noteshare.io/book/asciidoctor-latex-manual[Asciidoctor-LaTeX manual].
|
25
|
-
|
37
|
+
For more information on conversion of {adl}
|
38
|
+
documents to {tex}, see the file `tech-report.adoc` in
|
39
|
+
this repository.
|
26
40
|
|
27
41
|
Asciidoctor-LaTeX is developed by James Carlson, Jakub Jirutka, and Dan Allen.
|
28
42
|
|
@@ -0,0 +1,131 @@
|
|
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
|
+
Module: Asciidoctor
|
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.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)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Asciidoctor</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>Module: Asciidoctor
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<dt class="r1 last">Defined in:</dt>
|
82
|
+
<dd class="r1 last">lib/asciidoctor/latex/node_processors.rb<span class="defines">,<br />
|
83
|
+
lib/asciidoctor/latex.rb,<br /> lib/asciidoctor/latex/version.rb</span>
|
84
|
+
</dd>
|
85
|
+
|
86
|
+
</dl>
|
87
|
+
<div class="clear"></div>
|
88
|
+
|
89
|
+
<h2>Overview</h2><div class="docstring">
|
90
|
+
<div class="discussion">
|
91
|
+
|
92
|
+
<p>Yuuk!, The classes in node_processor implement the latex backend for
|
93
|
+
Asciidoctor-latex. This module is far from complete.</p>
|
94
|
+
|
95
|
+
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
<div class="tags">
|
99
|
+
|
100
|
+
|
101
|
+
</div><h2>Defined Under Namespace</h2>
|
102
|
+
<p class="children">
|
103
|
+
|
104
|
+
|
105
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Asciidoctor/LaTeX.html" title="Asciidoctor::LaTeX (module)">LaTeX</a></span>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Asciidoctor/Block.html" title="Asciidoctor::Block (class)">Block</a></span>, <span class='object_link'><a href="Asciidoctor/Document.html" title="Asciidoctor::Document (class)">Document</a></span>, <span class='object_link'><a href="Asciidoctor/Inline.html" title="Asciidoctor::Inline (class)">Inline</a></span>, <span class='object_link'><a href="Asciidoctor/List.html" title="Asciidoctor::List (class)">List</a></span>, <span class='object_link'><a href="Asciidoctor/Section.html" title="Asciidoctor::Section (class)">Section</a></span>, <span class='object_link'><a href="Asciidoctor/Table.html" title="Asciidoctor::Table (class)">Table</a></span>
|
110
|
+
|
111
|
+
|
112
|
+
</p>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="footer">
|
125
|
+
Generated on Sun Apr 19 18:37:45 2015 by
|
126
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
|
+
0.8.7.6 (ruby-2.1.2).
|
128
|
+
</div>
|
129
|
+
|
130
|
+
</body>
|
131
|
+
</html>
|
@@ -0,0 +1,1700 @@
|
|
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::Block
|
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/Block.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 (B)</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">Block</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::Block
|
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::Block</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>Proces block elements of varios kinds</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
<h2>Constant Summary</h2>
|
115
|
+
|
116
|
+
<dl class="constants">
|
117
|
+
|
118
|
+
<dt id="STANDARD_ENVIRONMENT_NAMES-constant" class="">STANDARD_ENVIRONMENT_NAMES =
|
119
|
+
<div class="docstring">
|
120
|
+
<div class="discussion">
|
121
|
+
|
122
|
+
<p>STANDARD_ENVIRONMENT_NAMES = %w(theorem proposition lemma definition
|
123
|
+
example problem equation)</p>
|
124
|
+
|
125
|
+
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
<div class="tags">
|
129
|
+
|
130
|
+
|
131
|
+
</div>
|
132
|
+
</dt>
|
133
|
+
<dd><pre class="code"><span class='qwords_beg'>%w(</span><span class='tstring_content'>equation</span><span class='words_sep'>)</span></pre></dd>
|
134
|
+
|
135
|
+
</dl>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<h2>
|
146
|
+
Instance Method Summary
|
147
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
148
|
+
</h2>
|
149
|
+
|
150
|
+
<ul class="summary">
|
151
|
+
|
152
|
+
<li class="public ">
|
153
|
+
<span class="summary_signature">
|
154
|
+
|
155
|
+
<a href="#admonition_process-instance_method" title="#admonition_process (instance method)">- (Object) <strong>admonition_process</strong> </a>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</span>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
170
|
+
|
171
|
+
</li>
|
172
|
+
|
173
|
+
|
174
|
+
<li class="public ">
|
175
|
+
<span class="summary_signature">
|
176
|
+
|
177
|
+
<a href="#click_process-instance_method" title="#click_process (instance method)">- (Object) <strong>click_process</strong> </a>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
</span>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
192
|
+
|
193
|
+
</li>
|
194
|
+
|
195
|
+
|
196
|
+
<li class="public ">
|
197
|
+
<span class="summary_signature">
|
198
|
+
|
199
|
+
<a href="#environment_process-instance_method" title="#environment_process (instance method)">- (Object) <strong>environment_process</strong> </a>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
</span>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
214
|
+
|
215
|
+
</li>
|
216
|
+
|
217
|
+
|
218
|
+
<li class="public ">
|
219
|
+
<span class="summary_signature">
|
220
|
+
|
221
|
+
<a href="#example_process-instance_method" title="#example_process (instance method)">- (Object) <strong>example_process</strong> </a>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</span>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
236
|
+
|
237
|
+
</li>
|
238
|
+
|
239
|
+
|
240
|
+
<li class="public ">
|
241
|
+
<span class="summary_signature">
|
242
|
+
|
243
|
+
<a href="#floating_title_process-instance_method" title="#floating_title_process (instance method)">- (Object) <strong>floating_title_process</strong> </a>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
</span>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
258
|
+
|
259
|
+
</li>
|
260
|
+
|
261
|
+
|
262
|
+
<li class="public ">
|
263
|
+
<span class="summary_signature">
|
264
|
+
|
265
|
+
<a href="#image_process-instance_method" title="#image_process (instance method)">- (Object) <strong>image_process</strong> </a>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
</span>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
280
|
+
|
281
|
+
</li>
|
282
|
+
|
283
|
+
|
284
|
+
<li class="public ">
|
285
|
+
<span class="summary_signature">
|
286
|
+
|
287
|
+
<a href="#listing_process-instance_method" title="#listing_process (instance method)">- (Object) <strong>listing_process</strong> </a>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
</span>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
302
|
+
|
303
|
+
</li>
|
304
|
+
|
305
|
+
|
306
|
+
<li class="public ">
|
307
|
+
<span class="summary_signature">
|
308
|
+
|
309
|
+
<a href="#literal_process-instance_method" title="#literal_process (instance method)">- (Object) <strong>literal_process</strong> </a>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
</span>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
324
|
+
|
325
|
+
</li>
|
326
|
+
|
327
|
+
|
328
|
+
<li class="public ">
|
329
|
+
<span class="summary_signature">
|
330
|
+
|
331
|
+
<a href="#open_process-instance_method" title="#open_process (instance method)">- (Object) <strong>open_process</strong> </a>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
</span>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
<span class="summary_desc"><div class='inline'>
|
346
|
+
<p>Process open blocks.</p>
|
347
|
+
</div></span>
|
348
|
+
|
349
|
+
</li>
|
350
|
+
|
351
|
+
|
352
|
+
<li class="public ">
|
353
|
+
<span class="summary_signature">
|
354
|
+
|
355
|
+
<a href="#page_break_process-instance_method" title="#page_break_process (instance method)">- (Object) <strong>page_break_process</strong> </a>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
</span>
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
370
|
+
|
371
|
+
</li>
|
372
|
+
|
373
|
+
|
374
|
+
<li class="public ">
|
375
|
+
<span class="summary_signature">
|
376
|
+
|
377
|
+
<a href="#paragraph_process-instance_method" title="#paragraph_process (instance method)">- (Object) <strong>paragraph_process</strong> </a>
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
</span>
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
392
|
+
|
393
|
+
</li>
|
394
|
+
|
395
|
+
|
396
|
+
<li class="public ">
|
397
|
+
<span class="summary_signature">
|
398
|
+
|
399
|
+
<a href="#pass_process-instance_method" title="#pass_process (instance method)">- (Object) <strong>pass_process</strong> </a>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
</span>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
414
|
+
|
415
|
+
</li>
|
416
|
+
|
417
|
+
|
418
|
+
<li class="public ">
|
419
|
+
<span class="summary_signature">
|
420
|
+
|
421
|
+
<a href="#preamble_process-instance_method" title="#preamble_process (instance method)">- (Object) <strong>preamble_process</strong> </a>
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
</span>
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
436
|
+
|
437
|
+
</li>
|
438
|
+
|
439
|
+
|
440
|
+
<li class="public ">
|
441
|
+
<span class="summary_signature">
|
442
|
+
|
443
|
+
<a href="#quote_process-instance_method" title="#quote_process (instance method)">- (Object) <strong>quote_process</strong> </a>
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
</span>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
458
|
+
|
459
|
+
</li>
|
460
|
+
|
461
|
+
|
462
|
+
<li class="public ">
|
463
|
+
<span class="summary_signature">
|
464
|
+
|
465
|
+
<a href="#report-instance_method" title="#report (instance method)">- (Object) <strong>report</strong> </a>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
</span>
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
480
|
+
|
481
|
+
</li>
|
482
|
+
|
483
|
+
|
484
|
+
<li class="public ">
|
485
|
+
<span class="summary_signature">
|
486
|
+
|
487
|
+
<a href="#sidebar_process-instance_method" title="#sidebar_process (instance method)">- (Object) <strong>sidebar_process</strong> </a>
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
</span>
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
502
|
+
|
503
|
+
</li>
|
504
|
+
|
505
|
+
|
506
|
+
<li class="public ">
|
507
|
+
<span class="summary_signature">
|
508
|
+
|
509
|
+
<a href="#stem_process-instance_method" title="#stem_process (instance method)">- (Object) <strong>stem_process</strong> </a>
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
</span>
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
524
|
+
|
525
|
+
</li>
|
526
|
+
|
527
|
+
|
528
|
+
<li class="public ">
|
529
|
+
<span class="summary_signature">
|
530
|
+
|
531
|
+
<a href="#tex_process-instance_method" title="#tex_process (instance method)">- (Object) <strong>tex_process</strong> </a>
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
</span>
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
546
|
+
|
547
|
+
</li>
|
548
|
+
|
549
|
+
|
550
|
+
<li class="public ">
|
551
|
+
<span class="summary_signature">
|
552
|
+
|
553
|
+
<a href="#toc_process-instance_method" title="#toc_process (instance method)">- (Object) <strong>toc_process</strong> </a>
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
</span>
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
568
|
+
|
569
|
+
</li>
|
570
|
+
|
571
|
+
|
572
|
+
<li class="public ">
|
573
|
+
<span class="summary_signature">
|
574
|
+
|
575
|
+
<a href="#verse_process-instance_method" title="#verse_process (instance method)">- (Object) <strong>verse_process</strong> </a>
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
</span>
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
590
|
+
|
591
|
+
</li>
|
592
|
+
|
593
|
+
|
594
|
+
</ul>
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
<div id="instance_method_details" class="method_details_list">
|
600
|
+
<h2>Instance Method Details</h2>
|
601
|
+
|
602
|
+
|
603
|
+
<div class="method_details first">
|
604
|
+
<h3 class="signature first" id="admonition_process-instance_method">
|
605
|
+
|
606
|
+
- (<tt>Object</tt>) <strong>admonition_process</strong>
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
|
612
|
+
</h3><table class="source_code">
|
613
|
+
<tr>
|
614
|
+
<td>
|
615
|
+
<pre class="lines">
|
616
|
+
|
617
|
+
|
618
|
+
264
|
619
|
+
265
|
620
|
+
266
|
621
|
+
267</pre>
|
622
|
+
</td>
|
623
|
+
<td>
|
624
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 264</span>
|
625
|
+
|
626
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_admonition_process'>admonition_process</span>
|
627
|
+
<span class='comment'># warn ["Node:".blue, "#{self.blockname}".cyan, "#{self.style}:".magenta, "#{self.lines[0]}"].join(" ") if $VERBOSE
|
628
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\admonition\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_style'>style</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_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='tstring_end'>"</span></span>
|
629
|
+
<span class='kw'>end</span></pre>
|
630
|
+
</td>
|
631
|
+
</tr>
|
632
|
+
</table>
|
633
|
+
</div>
|
634
|
+
|
635
|
+
<div class="method_details ">
|
636
|
+
<h3 class="signature " id="click_process-instance_method">
|
637
|
+
|
638
|
+
- (<tt>Object</tt>) <strong>click_process</strong>
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
</h3><table class="source_code">
|
645
|
+
<tr>
|
646
|
+
<td>
|
647
|
+
<pre class="lines">
|
648
|
+
|
649
|
+
|
650
|
+
341
|
651
|
+
342
|
652
|
+
343
|
653
|
+
344
|
654
|
+
345
|
655
|
+
346
|
656
|
+
347
|
657
|
+
348
|
658
|
+
349
|
659
|
+
350
|
660
|
+
351
|
661
|
+
352
|
662
|
+
353
|
663
|
+
354
|
664
|
+
355
|
665
|
+
356
|
666
|
+
357
|
667
|
+
358
|
668
|
+
359
|
669
|
+
360
|
670
|
+
361
|
671
|
+
362
|
672
|
+
363
|
673
|
+
364</pre>
|
674
|
+
</td>
|
675
|
+
<td>
|
676
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 341</span>
|
677
|
+
|
678
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_click_process'>click_process</span>
|
679
|
+
|
680
|
+
<span class='comment'># warn "begin click_process".blue + "title = #{self.title}".yellow if $VERBOSE
|
681
|
+
</span>
|
682
|
+
<span class='id identifier rubyid_click'>click</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>
|
683
|
+
<span class='comment'># record any environments encounted but not built=in
|
684
|
+
</span> <span class='kw'>if</span> <span class='op'>!</span><span class='const'>STANDARD_ENVIRONMENT_NAMES</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_click'>click</span>
|
685
|
+
<span class='gvar'>$latex_environment_names</span> <span class='op'><<</span> <span class='id identifier rubyid_click'>click</span>
|
686
|
+
<span class='kw'>end</span>
|
687
|
+
|
688
|
+
<span class='comment'>### XXX fixme:
|
689
|
+
</span> <span class='id identifier rubyid_click'>click</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>note</span><span class='tstring_end'>'</span></span>
|
690
|
+
|
691
|
+
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='comment'># No label
|
692
|
+
</span> <span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_click'>click</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_click'>click</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='tstring_end'>"</span></span>
|
693
|
+
<span class='kw'>else</span>
|
694
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_click'>click</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n\\label\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\end\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_click'>click</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='tstring_end'>"</span></span>
|
695
|
+
<span class='kw'>end</span>
|
696
|
+
|
697
|
+
<span class='comment'># warn "end click_process\n".blue if $VERBOSE
|
698
|
+
</span>
|
699
|
+
<span class='id identifier rubyid_output'>output</span>
|
700
|
+
|
701
|
+
<span class='kw'>end</span></pre>
|
702
|
+
</td>
|
703
|
+
</tr>
|
704
|
+
</table>
|
705
|
+
</div>
|
706
|
+
|
707
|
+
<div class="method_details ">
|
708
|
+
<h3 class="signature " id="environment_process-instance_method">
|
709
|
+
|
710
|
+
- (<tt>Object</tt>) <strong>environment_process</strong>
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
</h3><table class="source_code">
|
717
|
+
<tr>
|
718
|
+
<td>
|
719
|
+
<pre class="lines">
|
720
|
+
|
721
|
+
|
722
|
+
296
|
723
|
+
297
|
724
|
+
298
|
725
|
+
299
|
726
|
+
300
|
727
|
+
301
|
728
|
+
302
|
729
|
+
303
|
730
|
+
304
|
731
|
+
305
|
732
|
+
306
|
733
|
+
307
|
734
|
+
308
|
735
|
+
309
|
736
|
+
310
|
737
|
+
311
|
738
|
+
312
|
739
|
+
313
|
740
|
+
314
|
741
|
+
315
|
742
|
+
316
|
743
|
+
317
|
744
|
+
318
|
745
|
+
319
|
746
|
+
320
|
747
|
+
321
|
748
|
+
322
|
749
|
+
323
|
750
|
+
324
|
751
|
+
325
|
752
|
+
326
|
753
|
+
327
|
754
|
+
328
|
755
|
+
329
|
756
|
+
330
|
757
|
+
331
|
758
|
+
332
|
759
|
+
333
|
760
|
+
334
|
761
|
+
335
|
762
|
+
336
|
763
|
+
337
|
764
|
+
338
|
765
|
+
339</pre>
|
766
|
+
</td>
|
767
|
+
<td>
|
768
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 296</span>
|
769
|
+
|
770
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_environment_process'>environment_process</span>
|
771
|
+
|
772
|
+
<span class='comment'># warn "begin environment_process, ".blue + "title = #{self.title}".yellow if $VERBOSE
|
773
|
+
</span> <span class='comment'># warn "environment attributes = #{self.attributes}".red if $VERBOSE
|
774
|
+
</span> <span class='comment'># warn "role = #{self.attributes["role"]}" if $VERBOSE
|
775
|
+
</span>
|
776
|
+
<span class='id identifier rubyid_env'>env</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>
|
777
|
+
|
778
|
+
<span class='comment'># record any environments encountered but not built=in
|
779
|
+
</span> <span class='kw'>if</span> <span class='op'>!</span><span class='const'>STANDARD_ENVIRONMENT_NAMES</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_env'>env</span> <span class='kw'>and</span> <span class='op'>!</span><span class='gvar'>$latex_environment_names</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_env'>env</span>
|
780
|
+
<span class='comment'># if !($latex_environment_names.include? env)
|
781
|
+
</span> <span class='comment'># warn "env added: [#{env}]".blue if $VERBOSE
|
782
|
+
</span> <span class='gvar'>$latex_environment_names</span> <span class='op'><<</span> <span class='id identifier rubyid_env'>env</span>
|
783
|
+
<span class='kw'>end</span>
|
784
|
+
|
785
|
+
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span>
|
786
|
+
<span class='id identifier rubyid_label'>label</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\\label\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
787
|
+
<span class='kw'>else</span>
|
788
|
+
<span class='id identifier rubyid_label'>label</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
789
|
+
<span class='kw'>end</span>
|
790
|
+
|
791
|
+
<span class='comment'># warn "self.attributes['original_title'] = #{self.attributes['original_title']}".cyan if $VERBOSE
|
792
|
+
</span>
|
793
|
+
<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'>original_title</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
794
|
+
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\{\\rm (</span><span class='embexpr_beg'>#{</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'>original_title</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>) \}</span><span class='tstring_end'>"</span></span>
|
795
|
+
<span class='kw'>else</span>
|
796
|
+
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
797
|
+
<span class='kw'>end</span>
|
798
|
+
|
799
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_env'>env</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>listing</span><span class='tstring_end'>'</span></span>
|
800
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_env'>env</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_label'>label</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\begin{verbatim}\n\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\end{verbatim}\n\\end\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_env'>env</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='tstring_end'>"</span></span>
|
801
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_env'>env</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>equationalign</span><span class='tstring_end'>'</span></span>
|
802
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{equation\}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_label'>label</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\begin\{split\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{split\}\n\\end\{equation\}\n</span><span class='tstring_end'>"</span></span>
|
803
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_env'>env</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>chem</span><span class='tstring_end'>'</span></span>
|
804
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{equation\}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_label'>label</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\ce\{</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n\\end\{equation\}\n</span><span class='tstring_end'>"</span></span>
|
805
|
+
<span class='kw'>else</span>
|
806
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_env'>env</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_title'>title</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_label'>label</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_env'>env</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n</span><span class='tstring_end'>"</span></span>
|
807
|
+
<span class='kw'>end</span>
|
808
|
+
|
809
|
+
|
810
|
+
|
811
|
+
<span class='id identifier rubyid_output'>output</span>
|
812
|
+
|
813
|
+
<span class='kw'>end</span></pre>
|
814
|
+
</td>
|
815
|
+
</tr>
|
816
|
+
</table>
|
817
|
+
</div>
|
818
|
+
|
819
|
+
<div class="method_details ">
|
820
|
+
<h3 class="signature " id="example_process-instance_method">
|
821
|
+
|
822
|
+
- (<tt>Object</tt>) <strong>example_process</strong>
|
823
|
+
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
</h3><table class="source_code">
|
829
|
+
<tr>
|
830
|
+
<td>
|
831
|
+
<pre class="lines">
|
832
|
+
|
833
|
+
|
834
|
+
438
|
835
|
+
439
|
836
|
+
440
|
837
|
+
441
|
838
|
+
442
|
839
|
+
443
|
840
|
+
444
|
841
|
+
445</pre>
|
842
|
+
</td>
|
843
|
+
<td>
|
844
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 438</span>
|
845
|
+
|
846
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_example_process'>example_process</span>
|
847
|
+
<span class='comment'># warn "exAmple_process".yellow
|
848
|
+
</span> <span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
849
|
+
</span> <span class='comment'># warn "attributes: #{self.attributes}".cyan if $VERBOSE
|
850
|
+
</span> <span class='comment'># self.content_model = :verbatim
|
851
|
+
</span> <span class='comment'># warn "content: #{self.content}".cyan if $VERBOSE
|
852
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{verbatim\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{verbatim\}\n</span><span class='tstring_end'>"</span></span>
|
853
|
+
<span class='kw'>end</span></pre>
|
854
|
+
</td>
|
855
|
+
</tr>
|
856
|
+
</table>
|
857
|
+
</div>
|
858
|
+
|
859
|
+
<div class="method_details ">
|
860
|
+
<h3 class="signature " id="floating_title_process-instance_method">
|
861
|
+
|
862
|
+
- (<tt>Object</tt>) <strong>floating_title_process</strong>
|
863
|
+
|
864
|
+
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
</h3><table class="source_code">
|
869
|
+
<tr>
|
870
|
+
<td>
|
871
|
+
<pre class="lines">
|
872
|
+
|
873
|
+
|
874
|
+
448
|
875
|
+
449
|
876
|
+
450
|
877
|
+
451
|
878
|
+
452
|
879
|
+
453
|
880
|
+
454
|
881
|
+
455
|
882
|
+
456
|
883
|
+
457
|
884
|
+
458</pre>
|
885
|
+
</td>
|
886
|
+
<td>
|
887
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 448</span>
|
888
|
+
|
889
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_floating_title_process'>floating_title_process</span>
|
890
|
+
<span class='comment'># warn ["Node:".blue, "section[#{self.level}]:".cyan, "#{self.title}"].join(" ") if $VERBOSE
|
891
|
+
</span> <span class='id identifier rubyid_doctype'>doctype</span> <span class='op'>=</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>
|
892
|
+
|
893
|
+
<span class='id identifier rubyid_tags'>tags</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>article</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>part</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>section</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>subsection</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>subsubsection</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>paragraph</span><span class='tstring_end'>'</span></span> <span class='rbracket'>]</span><span class='comma'>,</span>
|
894
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>book</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>part</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>chapter</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>section</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>subsection</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>subsubsection</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>paragraph</span><span class='tstring_end'>'</span></span> <span class='rbracket'>]</span> <span class='rbrace'>}</span>
|
895
|
+
|
896
|
+
<span class='id identifier rubyid_tagname'>tagname</span> <span class='op'>=</span> <span class='id identifier rubyid_tags'>tags</span><span class='lbracket'>[</span><span class='id identifier rubyid_doctype'>doctype</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span><span class='rbracket'>]</span>
|
897
|
+
|
898
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tagname'>tagname</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_title'>title</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>"</span></span>
|
899
|
+
<span class='kw'>end</span></pre>
|
900
|
+
</td>
|
901
|
+
</tr>
|
902
|
+
</table>
|
903
|
+
</div>
|
904
|
+
|
905
|
+
<div class="method_details ">
|
906
|
+
<h3 class="signature " id="image_process-instance_method">
|
907
|
+
|
908
|
+
- (<tt>Object</tt>) <strong>image_process</strong>
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
|
914
|
+
</h3><table class="source_code">
|
915
|
+
<tr>
|
916
|
+
<td>
|
917
|
+
<pre class="lines">
|
918
|
+
|
919
|
+
|
920
|
+
460
|
921
|
+
461
|
922
|
+
462
|
923
|
+
463
|
924
|
+
464
|
925
|
+
465
|
926
|
+
466
|
927
|
+
467
|
928
|
+
468
|
929
|
+
469
|
930
|
+
470
|
931
|
+
471
|
932
|
+
472
|
933
|
+
473
|
934
|
+
474
|
935
|
+
475
|
936
|
+
476
|
937
|
+
477
|
938
|
+
478
|
939
|
+
479
|
940
|
+
480
|
941
|
+
481
|
942
|
+
482
|
943
|
+
483
|
944
|
+
484
|
945
|
+
485
|
946
|
+
486
|
947
|
+
487
|
948
|
+
488
|
949
|
+
489
|
950
|
+
490
|
951
|
+
491
|
952
|
+
492
|
953
|
+
493
|
954
|
+
494
|
955
|
+
495
|
956
|
+
496
|
957
|
+
497
|
958
|
+
498
|
959
|
+
499
|
960
|
+
500
|
961
|
+
501
|
962
|
+
502
|
963
|
+
503
|
964
|
+
504
|
965
|
+
505
|
966
|
+
506
|
967
|
+
507</pre>
|
968
|
+
</td>
|
969
|
+
<td>
|
970
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 460</span>
|
971
|
+
|
972
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_image_process'>image_process</span>
|
973
|
+
<span class='comment'># warn ["IXX: Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
974
|
+
</span> <span class='comment'># warn "IXX: attributes: #{self.attributes}".cyan if $VERBOSE
|
975
|
+
</span> <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'>width</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
976
|
+
<span class='id identifier rubyid_width'>width</span> <span class='op'>=</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_attributes'>attributes</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>width</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>truein</span><span class='tstring_end'>"</span></span>
|
977
|
+
<span class='kw'>else</span>
|
978
|
+
<span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>2.5truein</span><span class='tstring_end'>'</span></span>
|
979
|
+
<span class='kw'>end</span>
|
980
|
+
<span class='id identifier rubyid_raw_image'>raw_image</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'>target</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
981
|
+
<span class='kw'>if</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'>noteshare</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'>yes</span><span class='tstring_end'>'</span></span>
|
982
|
+
<span class='comment'># warn "IXX: extracting image name".red if $VERBOSE
|
983
|
+
</span> <span class='id identifier rubyid_image_rx'>image_rx</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>image.*original\/(.*)\?</span><span class='regexp_end'>/</span></span>
|
984
|
+
<span class='id identifier rubyid_match_data'>match_data</span> <span class='op'>=</span> <span class='id identifier rubyid_raw_image'>raw_image</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span> <span class='id identifier rubyid_image_rx'>image_rx</span>
|
985
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_match_data'>match_data</span>
|
986
|
+
<span class='id identifier rubyid_image'>image</span> <span class='op'>=</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
987
|
+
<span class='comment'># warn "IXX: image name: #{image}".red if $VERBOSE
|
988
|
+
</span> <span class='kw'>else</span>
|
989
|
+
<span class='id identifier rubyid_image'>image</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>undefined</span><span class='tstring_end'>"</span></span>
|
990
|
+
<span class='kw'>end</span>
|
991
|
+
<span class='kw'>else</span>
|
992
|
+
<span class='id identifier rubyid_image'>image</span> <span class='op'>=</span> <span class='id identifier rubyid_raw_image'>raw_image</span>
|
993
|
+
<span class='kw'>end</span>
|
994
|
+
<span class='id identifier rubyid_caption'>caption</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\caption\{</span><span class='embexpr_beg'>#{</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'>title</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}</span><span class='tstring_end'>"</span></span>
|
995
|
+
<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='comment'># [:ids]
|
996
|
+
</span> <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'>align</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'>center</span><span class='tstring_end'>'</span></span>
|
997
|
+
<span class='id identifier rubyid_align'>align</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\\centering</span><span class='tstring_end'>'</span></span>
|
998
|
+
<span class='kw'>else</span>
|
999
|
+
<span class='id identifier rubyid_align'>align</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1000
|
+
<span class='kw'>end</span>
|
1001
|
+
<span class='id identifier rubyid_float'>float</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'>float</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1002
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_float'>float</span>
|
1003
|
+
<span class='id identifier rubyid_figure_type'>figure_type</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>wrapfigure</span><span class='tstring_end'>'</span></span>
|
1004
|
+
<span class='id identifier rubyid_ftext_width'>ftext_width</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span> <span class='comment'># '0.45\\textwidth'
|
1005
|
+
</span> <span class='id identifier rubyid_caption'>caption</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1006
|
+
<span class='kw'>else</span>
|
1007
|
+
<span class='id identifier rubyid_figure_type'>figure_type</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>figure</span><span class='tstring_end'>'</span></span>
|
1008
|
+
<span class='id identifier rubyid_text_width'>text_width</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1009
|
+
<span class='kw'>end</span>
|
1010
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_float'>float</span>
|
1011
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>left</span><span class='tstring_end'>'</span></span>
|
1012
|
+
<span class='id identifier rubyid_position'>position</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>{l}</span><span class='tstring_end'>'</span></span>
|
1013
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>right</span><span class='tstring_end'>'</span></span>
|
1014
|
+
<span class='id identifier rubyid_position'>position</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>{r}</span><span class='tstring_end'>'</span></span>
|
1015
|
+
<span class='kw'>else</span>
|
1016
|
+
<span class='id identifier rubyid_position'>position</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>[h]</span><span class='tstring_end'>'</span></span>
|
1017
|
+
<span class='kw'>end</span>
|
1018
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_figure_type'>figure_type</span><span class='embexpr_end'>}</span><span class='tstring_content'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_position'>position</span><span class='embexpr_end'>}</span><span class='tstring_content'>\{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ftext_width'>ftext_width</span><span class='embexpr_end'>}</span><span class='tstring_content'>\}\n\\includegraphics[width=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_width'>width</span><span class='embexpr_end'>}</span><span class='tstring_content'>]{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_image'>image</span><span class='embexpr_end'>}</span><span class='tstring_content'>}\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_caption'>caption</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_align'>align</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_figure_type'>figure_type</span><span class='embexpr_end'>}</span><span class='tstring_content'>}\n</span><span class='tstring_end'>"</span></span>
|
1019
|
+
<span class='kw'>end</span></pre>
|
1020
|
+
</td>
|
1021
|
+
</tr>
|
1022
|
+
</table>
|
1023
|
+
</div>
|
1024
|
+
|
1025
|
+
<div class="method_details ">
|
1026
|
+
<h3 class="signature " id="listing_process-instance_method">
|
1027
|
+
|
1028
|
+
- (<tt>Object</tt>) <strong>listing_process</strong>
|
1029
|
+
|
1030
|
+
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
1034
|
+
</h3><table class="source_code">
|
1035
|
+
<tr>
|
1036
|
+
<td>
|
1037
|
+
<pre class="lines">
|
1038
|
+
|
1039
|
+
|
1040
|
+
432
|
1041
|
+
433
|
1042
|
+
434
|
1043
|
+
435
|
1044
|
+
436</pre>
|
1045
|
+
</td>
|
1046
|
+
<td>
|
1047
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 432</span>
|
1048
|
+
|
1049
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_listing_process'>listing_process</span>
|
1050
|
+
<span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1051
|
+
</span> <span class='comment'># warn "attributes: #{self.attributes}".cyan if $VERBOSE
|
1052
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{verbatim\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{verbatim\}\n</span><span class='tstring_end'>"</span></span>
|
1053
|
+
<span class='kw'>end</span></pre>
|
1054
|
+
</td>
|
1055
|
+
</tr>
|
1056
|
+
</table>
|
1057
|
+
</div>
|
1058
|
+
|
1059
|
+
<div class="method_details ">
|
1060
|
+
<h3 class="signature " id="literal_process-instance_method">
|
1061
|
+
|
1062
|
+
- (<tt>Object</tt>) <strong>literal_process</strong>
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
1066
|
+
|
1067
|
+
|
1068
|
+
</h3><table class="source_code">
|
1069
|
+
<tr>
|
1070
|
+
<td>
|
1071
|
+
<pre class="lines">
|
1072
|
+
|
1073
|
+
|
1074
|
+
274
|
1075
|
+
275
|
1076
|
+
276
|
1077
|
+
277</pre>
|
1078
|
+
</td>
|
1079
|
+
<td>
|
1080
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 274</span>
|
1081
|
+
|
1082
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_literal_process'>literal_process</span>
|
1083
|
+
<span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1084
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{verbatim\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{verbatim\}\n</span><span class='tstring_end'>"</span></span>
|
1085
|
+
<span class='kw'>end</span></pre>
|
1086
|
+
</td>
|
1087
|
+
</tr>
|
1088
|
+
</table>
|
1089
|
+
</div>
|
1090
|
+
|
1091
|
+
<div class="method_details ">
|
1092
|
+
<h3 class="signature " id="open_process-instance_method">
|
1093
|
+
|
1094
|
+
- (<tt>Object</tt>) <strong>open_process</strong>
|
1095
|
+
|
1096
|
+
|
1097
|
+
|
1098
|
+
|
1099
|
+
|
1100
|
+
</h3><div class="docstring">
|
1101
|
+
<div class="discussion">
|
1102
|
+
|
1103
|
+
<p>Process open blocks. Map a block of the form</p>
|
1104
|
+
|
1105
|
+
<p>.Foo</p>
|
1106
|
+
<dl class="rdoc-list label-list"><dt>[hocus_pocus]
|
1107
|
+
<dd>
|
1108
|
+
<p>– La di dah –</p>
|
1109
|
+
|
1110
|
+
<p>to</p>
|
1111
|
+
|
1112
|
+
<p>beginFoo labelhocus_pocus La di dah endFoo</p>
|
1113
|
+
|
1114
|
+
<p>This scheme enables one to map Asciidoc blocks to LaTeX environments with
|
1115
|
+
essentally no knoweldge of either other than their form.</p>
|
1116
|
+
</dd></dl>
|
1117
|
+
|
1118
|
+
|
1119
|
+
</div>
|
1120
|
+
</div>
|
1121
|
+
<div class="tags">
|
1122
|
+
|
1123
|
+
|
1124
|
+
</div><table class="source_code">
|
1125
|
+
<tr>
|
1126
|
+
<td>
|
1127
|
+
<pre class="lines">
|
1128
|
+
|
1129
|
+
|
1130
|
+
401
|
1131
|
+
402
|
1132
|
+
403
|
1133
|
+
404
|
1134
|
+
405
|
1135
|
+
406
|
1136
|
+
407
|
1137
|
+
408
|
1138
|
+
409
|
1139
|
+
410
|
1140
|
+
411
|
1141
|
+
412
|
1142
|
+
413
|
1143
|
+
414
|
1144
|
+
415
|
1145
|
+
416
|
1146
|
+
417
|
1147
|
+
418
|
1148
|
+
419
|
1149
|
+
420
|
1150
|
+
421
|
1151
|
+
422
|
1152
|
+
423
|
1153
|
+
424
|
1154
|
+
425
|
1155
|
+
426
|
1156
|
+
427
|
1157
|
+
428
|
1158
|
+
429
|
1159
|
+
430</pre>
|
1160
|
+
</td>
|
1161
|
+
<td>
|
1162
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 401</span>
|
1163
|
+
|
1164
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_open_process'>open_process</span>
|
1165
|
+
|
1166
|
+
<span class='id identifier rubyid_report'>report</span> <span class='kw'>if</span> <span class='gvar'>$VERBOSE</span>
|
1167
|
+
|
1168
|
+
<span class='id identifier rubyid_attr'>attr</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attributes'>attributes</span>
|
1169
|
+
|
1170
|
+
<span class='comment'># warn "attributes (open block): #{self.attributes}" if $VERBOSE
|
1171
|
+
</span>
|
1172
|
+
|
1173
|
+
<span class='comment'># Get title !- nil or make a dummy one
|
1174
|
+
</span> <span class='id identifier rubyid_title'>title</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'>title</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
1175
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_title'>title</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
1176
|
+
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Dummy</span><span class='tstring_end'>"</span></span>
|
1177
|
+
<span class='kw'>end</span>
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
1181
|
+
|
1182
|
+
<span class='comment'># strip constructs like {counter:theorem} from the title
|
1183
|
+
</span> <span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='id identifier rubyid_title'>title</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</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_end'>"</span></span>
|
1184
|
+
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='id identifier rubyid_title'>title</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span>
|
1185
|
+
|
1186
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_attr'>attr</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> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text-center</span><span class='tstring_end'>'</span></span>
|
1187
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{center\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\end\{center\}</span><span class='tstring_end'>"</span></span>
|
1188
|
+
<span class='kw'>else</span>
|
1189
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
1190
|
+
<span class='kw'>end</span>
|
1191
|
+
|
1192
|
+
|
1193
|
+
<span class='kw'>end</span></pre>
|
1194
|
+
</td>
|
1195
|
+
</tr>
|
1196
|
+
</table>
|
1197
|
+
</div>
|
1198
|
+
|
1199
|
+
<div class="method_details ">
|
1200
|
+
<h3 class="signature " id="page_break_process-instance_method">
|
1201
|
+
|
1202
|
+
- (<tt>Object</tt>) <strong>page_break_process</strong>
|
1203
|
+
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
|
1208
|
+
</h3><table class="source_code">
|
1209
|
+
<tr>
|
1210
|
+
<td>
|
1211
|
+
<pre class="lines">
|
1212
|
+
|
1213
|
+
|
1214
|
+
269
|
1215
|
+
270
|
1216
|
+
271
|
1217
|
+
272</pre>
|
1218
|
+
</td>
|
1219
|
+
<td>
|
1220
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 269</span>
|
1221
|
+
|
1222
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_page_break_process'>page_break_process</span>
|
1223
|
+
<span class='comment'># warn ["Node:".blue, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1224
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\\vfill\\eject\n</span><span class='tstring_end'>"</span></span>
|
1225
|
+
<span class='kw'>end</span></pre>
|
1226
|
+
</td>
|
1227
|
+
</tr>
|
1228
|
+
</table>
|
1229
|
+
</div>
|
1230
|
+
|
1231
|
+
<div class="method_details ">
|
1232
|
+
<h3 class="signature " id="paragraph_process-instance_method">
|
1233
|
+
|
1234
|
+
- (<tt>Object</tt>) <strong>paragraph_process</strong>
|
1235
|
+
|
1236
|
+
|
1237
|
+
|
1238
|
+
|
1239
|
+
|
1240
|
+
</h3><table class="source_code">
|
1241
|
+
<tr>
|
1242
|
+
<td>
|
1243
|
+
<pre class="lines">
|
1244
|
+
|
1245
|
+
|
1246
|
+
242
|
1247
|
+
243
|
1248
|
+
244
|
1249
|
+
245
|
1250
|
+
246
|
1251
|
+
247
|
1252
|
+
248
|
1253
|
+
249</pre>
|
1254
|
+
</td>
|
1255
|
+
<td>
|
1256
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 242</span>
|
1257
|
+
|
1258
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_paragraph_process'>paragraph_process</span>
|
1259
|
+
<span class='comment'># warn "paragraph attributes: #{self.attributes}".red if $VERBOSE
|
1260
|
+
</span> <span class='id identifier rubyid_out'>out</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
1261
|
+
<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'>title</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1262
|
+
<span class='id identifier rubyid_out'>out</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\{\\bf </span><span class='embexpr_beg'>#{</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'>title</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</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>
|
1263
|
+
<span class='kw'>end</span>
|
1264
|
+
<span class='id identifier rubyid_out'>out</span> <span class='op'><<</span> <span class='const'>LaTeX</span><span class='op'>::</span><span class='const'>TeXPostProcess</span><span class='period'>.</span><span class='id identifier rubyid_make_substitutions'>make_substitutions</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>"</span></span>
|
1265
|
+
<span class='kw'>end</span></pre>
|
1266
|
+
</td>
|
1267
|
+
</tr>
|
1268
|
+
</table>
|
1269
|
+
</div>
|
1270
|
+
|
1271
|
+
<div class="method_details ">
|
1272
|
+
<h3 class="signature " id="pass_process-instance_method">
|
1273
|
+
|
1274
|
+
- (<tt>Object</tt>) <strong>pass_process</strong>
|
1275
|
+
|
1276
|
+
|
1277
|
+
|
1278
|
+
|
1279
|
+
|
1280
|
+
</h3><table class="source_code">
|
1281
|
+
<tr>
|
1282
|
+
<td>
|
1283
|
+
<pre class="lines">
|
1284
|
+
|
1285
|
+
|
1286
|
+
279
|
1287
|
+
280
|
1288
|
+
281
|
1289
|
+
282</pre>
|
1290
|
+
</td>
|
1291
|
+
<td>
|
1292
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 279</span>
|
1293
|
+
|
1294
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pass_process'>pass_process</span>
|
1295
|
+
<span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1296
|
+
</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
1297
|
+
<span class='kw'>end</span></pre>
|
1298
|
+
</td>
|
1299
|
+
</tr>
|
1300
|
+
</table>
|
1301
|
+
</div>
|
1302
|
+
|
1303
|
+
<div class="method_details ">
|
1304
|
+
<h3 class="signature " id="preamble_process-instance_method">
|
1305
|
+
|
1306
|
+
- (<tt>Object</tt>) <strong>preamble_process</strong>
|
1307
|
+
|
1308
|
+
|
1309
|
+
|
1310
|
+
|
1311
|
+
|
1312
|
+
</h3><table class="source_code">
|
1313
|
+
<tr>
|
1314
|
+
<td>
|
1315
|
+
<pre class="lines">
|
1316
|
+
|
1317
|
+
|
1318
|
+
509
|
1319
|
+
510
|
1320
|
+
511</pre>
|
1321
|
+
</td>
|
1322
|
+
<td>
|
1323
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 509</span>
|
1324
|
+
|
1325
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_preamble_process'>preamble_process</span>
|
1326
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{preamble\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{preamble\}\n</span><span class='tstring_end'>"</span></span>
|
1327
|
+
<span class='kw'>end</span></pre>
|
1328
|
+
</td>
|
1329
|
+
</tr>
|
1330
|
+
</table>
|
1331
|
+
</div>
|
1332
|
+
|
1333
|
+
<div class="method_details ">
|
1334
|
+
<h3 class="signature " id="quote_process-instance_method">
|
1335
|
+
|
1336
|
+
- (<tt>Object</tt>) <strong>quote_process</strong>
|
1337
|
+
|
1338
|
+
|
1339
|
+
|
1340
|
+
|
1341
|
+
|
1342
|
+
</h3><table class="source_code">
|
1343
|
+
<tr>
|
1344
|
+
<td>
|
1345
|
+
<pre class="lines">
|
1346
|
+
|
1347
|
+
|
1348
|
+
284
|
1349
|
+
285
|
1350
|
+
286
|
1351
|
+
287
|
1352
|
+
288
|
1353
|
+
289
|
1354
|
+
290
|
1355
|
+
291
|
1356
|
+
292
|
1357
|
+
293
|
1358
|
+
294</pre>
|
1359
|
+
</td>
|
1360
|
+
<td>
|
1361
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 284</span>
|
1362
|
+
|
1363
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_quote_process'>quote_process</span>
|
1364
|
+
<span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1365
|
+
</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr?'>attr?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attribution</span><span class='tstring_end'>'</span></span>
|
1366
|
+
<span class='id identifier rubyid_attribution'>attribution</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr'>attr</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attribution</span><span class='tstring_end'>'</span></span>
|
1367
|
+
<span class='id identifier rubyid_citetitle'>citetitle</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr?'>attr?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>citetitle</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_attr'>attr</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>citetitle</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='kw'>nil</span>
|
1368
|
+
|
1369
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{aquote\}{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attribution'>attribution</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_citetitle'>citetitle</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> - </span><span class='tstring_end'>'</span></span> <span class='op'>+</span> <span class='id identifier rubyid_citetitle'>citetitle</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='embexpr_end'>}</span><span class='tstring_content'>}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\end\{aquote\}\n</span><span class='tstring_end'>"</span></span>
|
1370
|
+
<span class='kw'>else</span>
|
1371
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{quote\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\\end\{quote\}\n</span><span class='tstring_end'>"</span></span>
|
1372
|
+
<span class='kw'>end</span>
|
1373
|
+
<span class='kw'>end</span></pre>
|
1374
|
+
</td>
|
1375
|
+
</tr>
|
1376
|
+
</table>
|
1377
|
+
</div>
|
1378
|
+
|
1379
|
+
<div class="method_details ">
|
1380
|
+
<h3 class="signature " id="report-instance_method">
|
1381
|
+
|
1382
|
+
- (<tt>Object</tt>) <strong>report</strong>
|
1383
|
+
|
1384
|
+
|
1385
|
+
|
1386
|
+
|
1387
|
+
|
1388
|
+
</h3><table class="source_code">
|
1389
|
+
<tr>
|
1390
|
+
<td>
|
1391
|
+
<pre class="lines">
|
1392
|
+
|
1393
|
+
|
1394
|
+
370
|
1395
|
+
371
|
1396
|
+
372
|
1397
|
+
373
|
1398
|
+
374
|
1399
|
+
375
|
1400
|
+
376
|
1401
|
+
377
|
1402
|
+
378
|
1403
|
+
379</pre>
|
1404
|
+
</td>
|
1405
|
+
<td>
|
1406
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 370</span>
|
1407
|
+
|
1408
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_report'>report</span>
|
1409
|
+
<span class='comment'># Report on this node
|
1410
|
+
</span> <span class='comment'># warn ["OPEN BLOCK:".magenta, "id: #{self.id}"].join(" ")
|
1411
|
+
</span> <span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ")
|
1412
|
+
</span> <span class='comment'># warn ["Attributes:".magenta, "#{self.attributes}".cyan].join(" ")
|
1413
|
+
</span> <span class='comment'># warn ["Title: ".magenta, title.cyan, "style:", self.style].join(" ") if title
|
1414
|
+
</span> <span class='comment'># warn ["Content:".magenta, "#{self.content}".yellow].join(" ")
|
1415
|
+
</span> <span class='comment'># warn ["Style:".green, "#{self.style}".red].join(" ")
|
1416
|
+
</span> <span class='comment'># warn ["METHODS:".red, "#{self.methods}".yellow].join(" ")
|
1417
|
+
</span><span class='kw'>end</span></pre>
|
1418
|
+
</td>
|
1419
|
+
</tr>
|
1420
|
+
</table>
|
1421
|
+
</div>
|
1422
|
+
|
1423
|
+
<div class="method_details ">
|
1424
|
+
<h3 class="signature " id="sidebar_process-instance_method">
|
1425
|
+
|
1426
|
+
- (<tt>Object</tt>) <strong>sidebar_process</strong>
|
1427
|
+
|
1428
|
+
|
1429
|
+
|
1430
|
+
|
1431
|
+
|
1432
|
+
</h3><table class="source_code">
|
1433
|
+
<tr>
|
1434
|
+
<td>
|
1435
|
+
<pre class="lines">
|
1436
|
+
|
1437
|
+
|
1438
|
+
514
|
1439
|
+
515
|
1440
|
+
516
|
1441
|
+
517
|
1442
|
+
518
|
1443
|
+
519</pre>
|
1444
|
+
</td>
|
1445
|
+
<td>
|
1446
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 514</span>
|
1447
|
+
|
1448
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sidebar_process'>sidebar_process</span>
|
1449
|
+
<span class='comment'># warn "sidebar_process".yellow if $VERBOSE
|
1450
|
+
</span> <span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1451
|
+
</span> <span class='comment'># warn "attributes: #{self.attributes}".cyan if $VERBOSE
|
1452
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{sidebar\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{sidebar\}\n</span><span class='tstring_end'>"</span></span>
|
1453
|
+
<span class='kw'>end</span></pre>
|
1454
|
+
</td>
|
1455
|
+
</tr>
|
1456
|
+
</table>
|
1457
|
+
</div>
|
1458
|
+
|
1459
|
+
<div class="method_details ">
|
1460
|
+
<h3 class="signature " id="stem_process-instance_method">
|
1461
|
+
|
1462
|
+
- (<tt>Object</tt>) <strong>stem_process</strong>
|
1463
|
+
|
1464
|
+
|
1465
|
+
|
1466
|
+
|
1467
|
+
|
1468
|
+
</h3><table class="source_code">
|
1469
|
+
<tr>
|
1470
|
+
<td>
|
1471
|
+
<pre class="lines">
|
1472
|
+
|
1473
|
+
|
1474
|
+
251
|
1475
|
+
252
|
1476
|
+
253
|
1477
|
+
254
|
1478
|
+
255
|
1479
|
+
256
|
1480
|
+
257
|
1481
|
+
258
|
1482
|
+
259
|
1483
|
+
260
|
1484
|
+
261
|
1485
|
+
262</pre>
|
1486
|
+
</td>
|
1487
|
+
<td>
|
1488
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 251</span>
|
1489
|
+
|
1490
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_stem_process'>stem_process</span>
|
1491
|
+
<span class='comment'># warn ["Node:".blue, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1492
|
+
</span> <span class='comment'># warn self.content.cyan if $VERBOSE
|
1493
|
+
</span> <span class='id identifier rubyid_environment'>environment</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_environment_type'>environment_type</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
1494
|
+
<span class='kw'>if</span> <span class='const'>LaTeX</span><span class='op'>::</span><span class='const'>TeXBlock</span><span class='op'>::</span><span class='const'>INNER_TYPES</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_environment'>environment</span>
|
1495
|
+
<span class='id identifier rubyid_out'>out</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\\[\n</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_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\\]\n</span><span class='tstring_end'>"</span></span>
|
1496
|
+
<span class='comment'># warn out.yellow if $VERBOSE
|
1497
|
+
</span> <span class='id identifier rubyid_out'>out</span>
|
1498
|
+
<span class='kw'>else</span>
|
1499
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
1500
|
+
<span class='kw'>end</span>
|
1501
|
+
<span class='kw'>end</span></pre>
|
1502
|
+
</td>
|
1503
|
+
</tr>
|
1504
|
+
</table>
|
1505
|
+
</div>
|
1506
|
+
|
1507
|
+
<div class="method_details ">
|
1508
|
+
<h3 class="signature " id="tex_process-instance_method">
|
1509
|
+
|
1510
|
+
- (<tt>Object</tt>) <strong>tex_process</strong>
|
1511
|
+
|
1512
|
+
|
1513
|
+
|
1514
|
+
|
1515
|
+
|
1516
|
+
</h3><table class="source_code">
|
1517
|
+
<tr>
|
1518
|
+
<td>
|
1519
|
+
<pre class="lines">
|
1520
|
+
|
1521
|
+
|
1522
|
+
194
|
1523
|
+
195
|
1524
|
+
196
|
1525
|
+
197
|
1526
|
+
198
|
1527
|
+
199
|
1528
|
+
200
|
1529
|
+
201
|
1530
|
+
202
|
1531
|
+
203
|
1532
|
+
204
|
1533
|
+
205
|
1534
|
+
206
|
1535
|
+
207
|
1536
|
+
208
|
1537
|
+
209
|
1538
|
+
210
|
1539
|
+
211
|
1540
|
+
212
|
1541
|
+
213
|
1542
|
+
214
|
1543
|
+
215
|
1544
|
+
216
|
1545
|
+
217
|
1546
|
+
218
|
1547
|
+
219
|
1548
|
+
220
|
1549
|
+
221
|
1550
|
+
222
|
1551
|
+
223
|
1552
|
+
224
|
1553
|
+
225
|
1554
|
+
226
|
1555
|
+
227
|
1556
|
+
228
|
1557
|
+
229
|
1558
|
+
230
|
1559
|
+
231
|
1560
|
+
232
|
1561
|
+
233
|
1562
|
+
234
|
1563
|
+
235
|
1564
|
+
236
|
1565
|
+
237
|
1566
|
+
238
|
1567
|
+
239</pre>
|
1568
|
+
</td>
|
1569
|
+
<td>
|
1570
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 194</span>
|
1571
|
+
|
1572
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_tex_process'>tex_process</span>
|
1573
|
+
<span class='comment'># warn ["Node:".blue , "#{self.blockname}".blue].join(" ") if $VERBOSE
|
1574
|
+
</span> <span class='kw'>case</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_blockname'>blockname</span>
|
1575
|
+
<span class='kw'>when</span> <span class='symbol'>:paragraph</span>
|
1576
|
+
<span class='id identifier rubyid_paragraph_process'>paragraph_process</span>
|
1577
|
+
<span class='kw'>when</span> <span class='symbol'>:stem</span>
|
1578
|
+
<span class='id identifier rubyid_stem_process'>stem_process</span>
|
1579
|
+
<span class='kw'>when</span> <span class='symbol'>:admonition</span>
|
1580
|
+
<span class='id identifier rubyid_admonition_process'>admonition_process</span>
|
1581
|
+
<span class='kw'>when</span> <span class='symbol'>:page_break</span>
|
1582
|
+
<span class='id identifier rubyid_page_break_process'>page_break_process</span>
|
1583
|
+
<span class='kw'>when</span> <span class='symbol'>:literal</span>
|
1584
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_literal_process'>literal_process</span>
|
1585
|
+
<span class='kw'>when</span> <span class='symbol'>:pass</span>
|
1586
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_pass_process'>pass_process</span>
|
1587
|
+
<span class='kw'>when</span> <span class='symbol'>:quote</span>
|
1588
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_quote_process'>quote_process</span>
|
1589
|
+
<span class='kw'>when</span> <span class='symbol'>:open</span>
|
1590
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_open_process'>open_process</span>
|
1591
|
+
<span class='kw'>when</span> <span class='symbol'>:environment</span>
|
1592
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_environment_process'>environment_process</span>
|
1593
|
+
<span class='kw'>when</span> <span class='symbol'>:click</span>
|
1594
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_click_process'>click_process</span>
|
1595
|
+
<span class='kw'>when</span> <span class='symbol'>:listing</span>
|
1596
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_listing_process'>listing_process</span>
|
1597
|
+
<span class='kw'>when</span> <span class='symbol'>:example</span>
|
1598
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_example_process'>example_process</span>
|
1599
|
+
<span class='kw'>when</span> <span class='symbol'>:floating_title</span>
|
1600
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_floating_title_process'>floating_title_process</span>
|
1601
|
+
<span class='kw'>when</span> <span class='symbol'>:image</span>
|
1602
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_image_process'>image_process</span>
|
1603
|
+
<span class='kw'>when</span> <span class='symbol'>:preamble</span>
|
1604
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_preamble_process'>preamble_process</span>
|
1605
|
+
<span class='kw'>when</span> <span class='symbol'>:sidebar</span>
|
1606
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_sidebar_process'>sidebar_process</span>
|
1607
|
+
<span class='kw'>when</span> <span class='symbol'>:verse</span>
|
1608
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_verse_process'>verse_process</span>
|
1609
|
+
<span class='kw'>when</span> <span class='symbol'>:toc</span>
|
1610
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_toc_process'>toc_process</span>
|
1611
|
+
<span class='comment'># when :table
|
1612
|
+
</span> <span class='comment'># self.table_process
|
1613
|
+
</span> <span class='kw'>else</span>
|
1614
|
+
<span class='comment'># warn "This is Asciidoctor::Block, tex_process. I don't know how to do that (#{self.blockname})" if $VERBOSE if $VERBOSE
|
1615
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
1616
|
+
<span class='kw'>end</span>
|
1617
|
+
<span class='kw'>end</span></pre>
|
1618
|
+
</td>
|
1619
|
+
</tr>
|
1620
|
+
</table>
|
1621
|
+
</div>
|
1622
|
+
|
1623
|
+
<div class="method_details ">
|
1624
|
+
<h3 class="signature " id="toc_process-instance_method">
|
1625
|
+
|
1626
|
+
- (<tt>Object</tt>) <strong>toc_process</strong>
|
1627
|
+
|
1628
|
+
|
1629
|
+
|
1630
|
+
|
1631
|
+
|
1632
|
+
</h3><table class="source_code">
|
1633
|
+
<tr>
|
1634
|
+
<td>
|
1635
|
+
<pre class="lines">
|
1636
|
+
|
1637
|
+
|
1638
|
+
366
|
1639
|
+
367
|
1640
|
+
368</pre>
|
1641
|
+
</td>
|
1642
|
+
<td>
|
1643
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 366</span>
|
1644
|
+
|
1645
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_toc_process'>toc_process</span>
|
1646
|
+
<span class='id identifier rubyid_warn'>warn</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Please implement me! (toc_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>
|
1647
|
+
<span class='kw'>end</span></pre>
|
1648
|
+
</td>
|
1649
|
+
</tr>
|
1650
|
+
</table>
|
1651
|
+
</div>
|
1652
|
+
|
1653
|
+
<div class="method_details ">
|
1654
|
+
<h3 class="signature " id="verse_process-instance_method">
|
1655
|
+
|
1656
|
+
- (<tt>Object</tt>) <strong>verse_process</strong>
|
1657
|
+
|
1658
|
+
|
1659
|
+
|
1660
|
+
|
1661
|
+
|
1662
|
+
</h3><table class="source_code">
|
1663
|
+
<tr>
|
1664
|
+
<td>
|
1665
|
+
<pre class="lines">
|
1666
|
+
|
1667
|
+
|
1668
|
+
521
|
1669
|
+
522
|
1670
|
+
523
|
1671
|
+
524
|
1672
|
+
525
|
1673
|
+
526</pre>
|
1674
|
+
</td>
|
1675
|
+
<td>
|
1676
|
+
<pre class="code"><span class="info file"># File 'lib/asciidoctor/latex/node_processors.rb', line 521</span>
|
1677
|
+
|
1678
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_verse_process'>verse_process</span>
|
1679
|
+
<span class='comment'># warn "verse_process".yellow if $VERBOSE
|
1680
|
+
</span> <span class='comment'># warn ["Node:".magenta, "#{self.blockname}".cyan].join(" ") if $VERBOSE
|
1681
|
+
</span> <span class='comment'># warn "attributes: #{self.attributes}".cyan if $VERBOSE
|
1682
|
+
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\begin\{alltt\}\n</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\\end\{alltt\}\n</span><span class='tstring_end'>"</span></span>
|
1683
|
+
<span class='kw'>end</span></pre>
|
1684
|
+
</td>
|
1685
|
+
</tr>
|
1686
|
+
</table>
|
1687
|
+
</div>
|
1688
|
+
|
1689
|
+
</div>
|
1690
|
+
|
1691
|
+
</div>
|
1692
|
+
|
1693
|
+
<div id="footer">
|
1694
|
+
Generated on Sun Apr 19 18:37:45 2015 by
|
1695
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1696
|
+
0.8.7.6 (ruby-2.1.2).
|
1697
|
+
</div>
|
1698
|
+
|
1699
|
+
</body>
|
1700
|
+
</html>
|