nb_util 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/data/handout_pieces/usepackage.tex +6 -1
- data/lib/data/thesis_pieces/usepackage.tex +6 -1
- data/lib/nb_util/ipynb2tex.rb +3 -4
- data/lib/nb_util/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeb7d0e3fe812af1a3d4b095541c0ed386c6053f0682215900d43d77a947d2a5
|
4
|
+
data.tar.gz: bc4cd8e5c7bd394ce6943cd9a30eb9fb56f84addbf99eebd3b7d041063d74c3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dcf415bd6569ca1dcdc1ebabb630b29a0f6740f2800353251d24b268ba3e5df7b980cfabea3b2f1bed5d1d53b4c5f5b953ee4c2ce3509a63598db80bf026fb3
|
7
|
+
data.tar.gz: 683f3d6a4059e58aad31503985cd4900231297f15c5a0e0ba7e3a90fc8cd7a8abccbc9144623df6d36eeddd8891c55a0a4a9c3bd1d4359108082ceadb1acb3f0
|
data/Gemfile.lock
CHANGED
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/nb_util/ipynb2tex.rb
CHANGED
@@ -50,7 +50,6 @@ module NbUtil
|
|
50
50
|
FileUtils.mv(target_parent + '/informations.tex', target_parent + '/split_files/informations')
|
51
51
|
mk_thesis_location(target, "thesis")
|
52
52
|
FileUtils.mv(target_parent + '/.splits_location.tex', target_parent + '/thesis')
|
53
|
-
|
54
53
|
mk_xbb(target, re_fig)
|
55
54
|
|
56
55
|
if Dir.exist?(cp_lib_data_thesis_pieces_bundle.to_s) && Dir.exist?(cp_lib_data_thesis_bundle.to_s)
|
@@ -215,12 +214,12 @@ module NbUtil
|
|
215
214
|
cont = split[0]
|
216
215
|
|
217
216
|
File.open(splitter[1], 'w') do |f|
|
218
|
-
f.print splitter[0].gsub
|
217
|
+
f.print splitter[0].gsub(/section/, 'chapter').gsub(/_/,'\_')
|
219
218
|
if num+1 != chapter_size
|
220
|
-
f.print split[1].to_s.
|
219
|
+
f.print split[1].to_s.gsub(/\\section{#{chapter[num+1]}}\\label.*/m, '')
|
221
220
|
end
|
222
221
|
if num+1 == chapter_size
|
223
|
-
f.print split[1].to_s
|
222
|
+
f.print split[1].to_s#.gsub(/_/,'\_')
|
224
223
|
end
|
225
224
|
end
|
226
225
|
end
|
data/lib/nb_util/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nb_util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masatoshi Kowaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|