nb_util 0.5.6 → 0.6.0
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/.DS_Store +0 -0
- data/docs/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/data/.DS_Store +0 -0
- data/lib/data/handout/.DS_Store +0 -0
- data/lib/data/handout_pieces/.DS_Store +0 -0
- data/lib/data/thesis/.DS_Store +0 -0
- data/lib/data/thesis/thesis.tex +2 -2
- data/lib/data/thesis_pieces/.DS_Store +0 -0
- data/lib/nb_util/ipynb2tex.rb +11 -3
- data/lib/nb_util/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e4ddb6e21655bac215dd39fa9ebff96f98d1c0d7fd8814d3911b0735427d872
|
|
4
|
+
data.tar.gz: 53285f1f131cb8e8651c6e810178d89bc5e524c1ab40eb5ed4cc1cf3661227dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eac9fefddb021b8eccb3e41f3c46260b1aa0667cc96f005202fbcf921ad2e57a378473047b214b643df861fd94f25f82a10502f1a651fe43f2f745929273d22e
|
|
7
|
+
data.tar.gz: 79e6d9b68b9e050793dc084ddc73ddac263edc8065c2ff6bddb51800817e4a994217d99dba804ad1690991ba4af4c97a044f0a74644f14c8b32d6242ff0d808f
|
data/.DS_Store
ADDED
|
Binary file
|
data/docs/.DS_Store
ADDED
|
Binary file
|
data/lib/.DS_Store
CHANGED
|
Binary file
|
data/lib/data/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/data/thesis/thesis.tex
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
\tableofcontents
|
|
15
15
|
|
|
16
16
|
% 表目次の表示==============================================================
|
|
17
|
-
|
|
17
|
+
%\listoftables
|
|
18
18
|
|
|
19
19
|
% 図目次の表示==============================================================
|
|
20
|
-
|
|
20
|
+
%\listoffigures
|
|
21
21
|
|
|
22
22
|
%本文======================================================================
|
|
23
23
|
\input{./.splits_location.tex}
|
|
Binary file
|
data/lib/nb_util/ipynb2tex.rb
CHANGED
|
@@ -327,7 +327,7 @@ EOS
|
|
|
327
327
|
end
|
|
328
328
|
|
|
329
329
|
def your_informations(target, thesis_or_handout)
|
|
330
|
-
info = Array.new(
|
|
330
|
+
info = Array.new(7)
|
|
331
331
|
|
|
332
332
|
print "thesis title: "
|
|
333
333
|
info[0] = STDIN.gets.to_s.chomp.gsub(/_/,'\_')
|
|
@@ -335,12 +335,20 @@ EOS
|
|
|
335
335
|
info[1] = STDIN.gets.to_s.chomp.gsub(/_/,'\_')
|
|
336
336
|
print "your name: "
|
|
337
337
|
info[2] = STDIN.gets.to_s.chomp.gsub(/_/,'\_')
|
|
338
|
+
print "your university: "
|
|
339
|
+
info[3] = STDIN.gets.to_s.chomp.gsub(/_/,'\_')
|
|
340
|
+
print "your major: "
|
|
341
|
+
info[4] = STDIN.gets.to_s.chomp.gsub(/_/,'\_')
|
|
342
|
+
print "your subject: "
|
|
343
|
+
info[5] = STDIN.gets.to_s.chomp.gsub(/_/,'\_')
|
|
344
|
+
print "your labo: "
|
|
345
|
+
info[6] = STDIN.gets.to_s.chomp.gsub(/_/,'\_')
|
|
338
346
|
|
|
339
347
|
target_parent = File.dirname(target)
|
|
340
348
|
d = Date.today
|
|
341
349
|
thesis_infomations = <<"EOS"
|
|
342
350
|
\\title{卒業論文\\\\#{info[0]}}
|
|
343
|
-
\\author{
|
|
351
|
+
\\author{#{info[3]}#{info[4]}\\\\#{info[5]}学科 #{info[6]}研究室\\\\#{info[1]} #{info[2]}}
|
|
344
352
|
\\date{#{d.year}年3月}
|
|
345
353
|
\\begin{document}
|
|
346
354
|
\\maketitle
|
|
@@ -348,7 +356,7 @@ EOS
|
|
|
348
356
|
EOS
|
|
349
357
|
handout_infomations = <<"EOS"
|
|
350
358
|
\\title{{\\large#{d.year}年度 卒業論文審査}\\\\#{info[0]}}
|
|
351
|
-
\\author{
|
|
359
|
+
\\author{#{info[3]}#{info[4]}\\\\#{info[5]}学科 #{info[6]}研究室 #{info[1]} #{info[2]}}
|
|
352
360
|
\\date{}
|
|
353
361
|
\\begin{document}
|
|
354
362
|
\\maketitle
|
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
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masatoshi Kowaki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -88,6 +88,7 @@ executables:
|
|
|
88
88
|
extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
|
90
90
|
files:
|
|
91
|
+
- ".DS_Store"
|
|
91
92
|
- ".gitignore"
|
|
92
93
|
- ".rspec"
|
|
93
94
|
- ".rspec_status"
|
|
@@ -100,17 +101,23 @@ files:
|
|
|
100
101
|
- Rakefile
|
|
101
102
|
- bin/console
|
|
102
103
|
- bin/setup
|
|
104
|
+
- docs/.DS_Store
|
|
103
105
|
- docs/.ipynb_checkpoints/abst-checkpoint.ipynb
|
|
104
106
|
- docs/CopyAppend_ipynb.ipynb
|
|
105
107
|
- exe/nb_util
|
|
106
108
|
- lib/.DS_Store
|
|
107
109
|
- lib/cli.rb
|
|
110
|
+
- lib/data/.DS_Store
|
|
111
|
+
- lib/data/handout/.DS_Store
|
|
108
112
|
- lib/data/handout/handout.tex
|
|
113
|
+
- lib/data/handout_pieces/.DS_Store
|
|
109
114
|
- lib/data/handout_pieces/form00_style.tex
|
|
110
115
|
- lib/data/handout_pieces/tightlist_setting.tex
|
|
111
116
|
- lib/data/handout_pieces/usepackage.tex
|
|
117
|
+
- lib/data/thesis/.DS_Store
|
|
112
118
|
- lib/data/thesis/thesis.log
|
|
113
119
|
- lib/data/thesis/thesis.tex
|
|
120
|
+
- lib/data/thesis_pieces/.DS_Store
|
|
114
121
|
- lib/data/thesis_pieces/form00_style.tex
|
|
115
122
|
- lib/data/thesis_pieces/tightlist_setting.tex
|
|
116
123
|
- lib/data/thesis_pieces/usepackage.tex
|
|
@@ -142,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
142
149
|
- !ruby/object:Gem::Version
|
|
143
150
|
version: '0'
|
|
144
151
|
requirements: []
|
|
145
|
-
|
|
146
|
-
rubygems_version: 2.7.2
|
|
152
|
+
rubygems_version: 3.0.1
|
|
147
153
|
signing_key:
|
|
148
154
|
specification_version: 4
|
|
149
155
|
summary: about jupyter utils
|