nb_util 0.4.8 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/.DS_Store +0 -0
- data/lib/cli.rb +0 -1
- data/lib/data/handout_pieces/usepackage.tex +5 -0
- data/lib/data/thesis_pieces/usepackage.tex +4 -0
- data/lib/nb_util.rb +6 -1
- data/lib/nb_util/ipynb2tex.rb +3 -3
- data/lib/nb_util/version.rb +1 -1
- data/nb_util.gemspec +2 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8b7f7dc83bf6ff1d542cd97c950fd49de13b2a96dd6cfb1d3c38b1298adb85d
|
4
|
+
data.tar.gz: ca2ef4e0996a969e710e2549145938cc48c406021530947e6df84de2a84afa55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21348c39b92eede94cedf52f3f89c9751090262dbd3898d36a3afd5423197e91d2f6b7bf24fd17c9d91b45d6cbd57e44790b868daa864b36b32765bacbd5b445
|
7
|
+
data.tar.gz: 1732b161c26fdcb8f62480960cc7457a4b73ecf98656c4bcf5327510658e22c218d6bd244f78c31ce707827de9a509d9ded46e5d38262be29ab65fefd5482f2c
|
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/cli.rb
CHANGED
data/lib/nb_util.rb
CHANGED
@@ -4,6 +4,7 @@ require 'yaml'
|
|
4
4
|
require 'json'
|
5
5
|
require "nb_util/version"
|
6
6
|
require 'cli'
|
7
|
+
require 'artii'
|
7
8
|
|
8
9
|
module NbUtil
|
9
10
|
module_function
|
@@ -13,5 +14,9 @@ module NbUtil
|
|
13
14
|
str.delete(' ').split(/[\/]/)
|
14
15
|
end
|
15
16
|
name = get_name(directry)
|
16
|
-
puts "nb_util says hello, #{name[2]} !!"
|
17
|
+
# puts "nb_util says hello, #{name[2]} !!"
|
18
|
+
a = Artii::Base.new :font => 'slant'
|
19
|
+
# a = Artii::Base.new
|
20
|
+
puts a.asciify("nb-util says")
|
21
|
+
puts a.asciify("hello, #{name[2]} !!")
|
17
22
|
end
|
data/lib/nb_util/ipynb2tex.rb
CHANGED
@@ -229,12 +229,12 @@ module NbUtil
|
|
229
229
|
cont = split[0]
|
230
230
|
|
231
231
|
File.open(splitter[1], 'w') do |f|
|
232
|
-
f.print splitter[0].
|
232
|
+
f.print splitter[0].sub(/section/, 'chapter').gsub(/_/,'\_')
|
233
233
|
if num+1 != chapter_size
|
234
|
-
f.print split[1].to_s.
|
234
|
+
f.print split[1].to_s.sub(/\\section{#{chapter[num+1]}}\\label.*/m, '')
|
235
235
|
end
|
236
236
|
if num+1 == chapter_size
|
237
|
-
f.print split[1].to_s
|
237
|
+
f.print split[1].to_s
|
238
238
|
end
|
239
239
|
end
|
240
240
|
end
|
data/lib/nb_util/version.rb
CHANGED
data/nb_util.gemspec
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
|
+
version: 0.5.1
|
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-
|
11
|
+
date: 2018-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: artii
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: about jupyter utils
|
70
84
|
email:
|
71
85
|
- ferrari.race.beautiful@gmail.com
|