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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46ff61e44f3199b5087623b20605a275e800a4c204ecd5ff5e4255d62591ce1d
4
- data.tar.gz: 417386df2e20e448913945169df47b960dda8c9d0e494f5c6d104090244c8491
3
+ metadata.gz: aeb7d0e3fe812af1a3d4b095541c0ed386c6053f0682215900d43d77a947d2a5
4
+ data.tar.gz: bc4cd8e5c7bd394ce6943cd9a30eb9fb56f84addbf99eebd3b7d041063d74c3d
5
5
  SHA512:
6
- metadata.gz: 851f2e072fba83a975c32bd8213a2c3a545cf97a81e46e2f142e5ef3f64e3742a5aad5fd3726d3b44fc2584399d3781b067c6c474d7497171b816b65c00dd6a6
7
- data.tar.gz: d61fd946266f94ba9d2ba0218682ae28c24f292ab3e8bdc51519aa214e108d571883f89107d227881be6ffa295999f1b556ac69cac21585e06bbd9cbf8a6b222
6
+ metadata.gz: 2dcf415bd6569ca1dcdc1ebabb630b29a0f6740f2800353251d24b268ba3e5df7b980cfabea3b2f1bed5d1d53b4c5f5b953ee4c2ce3509a63598db80bf026fb3
7
+ data.tar.gz: 683f3d6a4059e58aad31503985cd4900231297f15c5a0e0ba7e3a90fc8cd7a8abccbc9144623df6d36eeddd8891c55a0a4a9c3bd1d4359108082ceadb1acb3f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nb_util (0.4.3)
4
+ nb_util (0.4.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/.DS_Store CHANGED
Binary file
@@ -12,4 +12,9 @@
12
12
  \usepackage{comment}
13
13
  \usepackage{lineno}
14
14
  \usepackage{here}
15
- \usepackage{ulem}
15
+ \usepackage{ulem}
16
+ \usepackage{bbm}
17
+ \usepackage{braket}
18
+ \usepackage{amsmath}
19
+ \usepackage{mathtools}
20
+ \usepackage{bookmark}
@@ -12,4 +12,9 @@
12
12
  \usepackage{comment}
13
13
  \usepackage{lineno}
14
14
  \usepackage{here}
15
- \usepackage{ulem}
15
+ \usepackage{ulem}
16
+ \usepackage{bbm}
17
+ \usepackage{braket}
18
+ \usepackage{amsmath}
19
+ \usepackage{mathtools}
20
+ \usepackage{bookmark}
@@ -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!(/section/, 'chapter')
217
+ f.print splitter[0].gsub(/section/, 'chapter').gsub(/_/,'\_')
219
218
  if num+1 != chapter_size
220
- f.print split[1].to_s.sub!(/\\section{#{chapter[num+1]}}\\label.*/m, '')
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
@@ -1,3 +1,3 @@
1
1
  module NbUtil
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
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
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-10 00:00:00.000000000 Z
11
+ date: 2018-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler