ulmul 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Changes +3 -0
- data/index.en.html +1 -1
- data/index.ja.html +1 -1
- data/lib/ulmul.rb +4 -2
- data/ulmul2html5.css +5 -1
- data/ulmul2xhtml.css +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ed2f72500a15798183862600970098cd9264af7809a47cfcbdbdcf90c0efde7
|
|
4
|
+
data.tar.gz: 3b2a07e61dee38a54554a7fa2c53afead397463727ae1023186dfd4a4f1d523a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fef674e5f435c9be22d69025f75d123ec5fd8d9278360148ced022d2c2109f40e8f4e4416cd28eb1a70be02566f212e11083a4cfa1f335b7ba899425b58c7eab
|
|
7
|
+
data.tar.gz: ef3cd59466a1dc84736fef742d7c4d13055a897a406577d73ec90d7a158f78dc20dbebeab1b4d8a9fad4cd5062a5a4f3058ae3d6575f20a698bd9229fd824f68
|
data/Changes
CHANGED
data/index.en.html
CHANGED
|
@@ -195,7 +195,7 @@ Output:
|
|
|
195
195
|
</p>
|
|
196
196
|
<p>
|
|
197
197
|
Mass <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>m</mi></math> can be converted into energy <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>E</mi></math> as
|
|
198
|
-
<math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo></math>
|
|
198
|
+
<math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo><ms class="eqno">(1)</ms></math>
|
|
199
199
|
</p>
|
|
200
200
|
<p>
|
|
201
201
|
You can refer the equation in a way like "Eq:Einstein", as <a href="#Eq:Emc2">Eq. (1)</a>.
|
data/index.ja.html
CHANGED
|
@@ -204,7 +204,7 @@ Mass $m$ can be converted into energy $E$ as
|
|
|
204
204
|
</p>
|
|
205
205
|
<p>
|
|
206
206
|
Mass <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>m</mi></math> can be converted into energy <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>E</mi></math> as
|
|
207
|
-
<math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo></math>
|
|
207
|
+
<math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo><ms class="eqno">(1)</ms></math>
|
|
208
208
|
</p>
|
|
209
209
|
<p>
|
|
210
210
|
数式は"Eq:Einstein"のように参照します。こんなかんじ<a href="#Eq:Emc2">Eq. (1)</a>。
|
data/lib/ulmul.rb
CHANGED
|
@@ -90,7 +90,7 @@ end
|
|
|
90
90
|
class Ulmul
|
|
91
91
|
include AASM
|
|
92
92
|
include Itemize
|
|
93
|
-
VERSION = '0.8.
|
|
93
|
+
VERSION = '0.8.1'
|
|
94
94
|
|
|
95
95
|
aasm.initial_state :st_ground
|
|
96
96
|
|
|
@@ -373,7 +373,9 @@ module HTML
|
|
|
373
373
|
|
|
374
374
|
def cb_equation_end2()
|
|
375
375
|
if $0 == __FILE__ || /ulmul2(html5|xhtml)$/ =~ $0
|
|
376
|
-
@body << @equation_contents.to_mathml('block').to_s.
|
|
376
|
+
@body << @equation_contents.to_mathml('block').to_s.
|
|
377
|
+
sub(/<math /,"<math id=\"#{@equation_label}\" ").
|
|
378
|
+
sub(/<\/math>/, "<ms class=\"eqno\">(#{@equations.length})</ms></math>") << "\n"
|
|
377
379
|
elsif /ulmul2mathjax$/ =~ $0
|
|
378
380
|
@body << "<div id=\"#{@equation_label}\">\n\\begin{equation}\n" << @equation_contents << " \\tag{#{@equations.length}}\n" << "\\end{equation}\n</div>\n"
|
|
379
381
|
end
|
data/ulmul2html5.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* -*-CSS-*-
|
|
2
2
|
* style.css for index.??.html of ulmul
|
|
3
|
-
* Time-stamp: <2026-01-09 19:28:07 takeshi>
|
|
4
3
|
* Author: Takeshi NISHIMATSU
|
|
5
4
|
*/
|
|
6
5
|
body
|
|
@@ -92,6 +91,11 @@ table {
|
|
|
92
91
|
margin: auto;
|
|
93
92
|
}
|
|
94
93
|
|
|
94
|
+
|
|
95
|
+
.eqno {
|
|
96
|
+
margin-left: 2.0rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
95
99
|
div.navi { text-align: right;
|
|
96
100
|
margin-right: 1.0em; }
|
|
97
101
|
|
data/ulmul2xhtml.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* -*-CSS-*-
|
|
2
2
|
* style.css for index.??.html of ulmul
|
|
3
|
-
* Time-stamp: <2026-01-09 19:32:55 takeshi>
|
|
4
3
|
* Author: Takeshi NISHIMATSU
|
|
5
4
|
*/
|
|
6
5
|
body
|
|
@@ -95,6 +94,10 @@ table {
|
|
|
95
94
|
margin: auto;
|
|
96
95
|
}
|
|
97
96
|
|
|
97
|
+
.eqno {
|
|
98
|
+
margin-left: 2rem;
|
|
99
|
+
}
|
|
100
|
+
|
|
98
101
|
div.navi { text-align: right;
|
|
99
102
|
margin-right: 1.0em; }
|
|
100
103
|
|