hikiutils 0.2.3.14 → 0.2.3.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50e9e51c421a0081b58cf876d170c268ef4d5c71
4
- data.tar.gz: 5cbba5c231dece698f1c95027b8d4af3a03fa164
3
+ metadata.gz: 194f3cdc8e097266bfb45ce254caa7c80122f81b
4
+ data.tar.gz: a84cd96a79493510e8008d37294cb48039310a57
5
5
  SHA512:
6
- metadata.gz: e26ba914f670d20ec41011696c554ef6045a86f2410652bdd7bd244dd7c7b011eaa0cbabfcabb5a1d456229e853c46c8b03c7e95db9df78bb876e95179811b26
7
- data.tar.gz: 2ee97636455187fed8fb769503024148bee6f7ada55773c0d267f0628227eb11904efd18a1d0ff24bed9ef44eb048796e0bd276de1ddb24d070eea6787005497
6
+ metadata.gz: c28d5d95b1da7561729cb0c3220ce94c8cfb5891ed70cb1d912f8f89ed45f7edb7d5459922ed129c712350dfd1b578ae0f56e389ccd71291ca92938ccc79d984
7
+ data.tar.gz: 8c65f56c7749c5900497edf09132222a521bcf1fa291783599e073ad3c3913fba77a4ee5df95480baf01031eb1d580650920cca53543cef64406d635dcbaed59
@@ -1,3 +1,3 @@
1
1
  module HikiUtils
2
- VERSION = "0.2.3.14"
2
+ VERSION = "0.2.3.15"
3
3
  end
@@ -1,3 +1,4 @@
1
+
1
2
  # -*- coding: utf-8 -*-
2
3
  require 'systemu'
3
4
  require 'tempfile'
@@ -186,7 +187,10 @@ end
186
187
 
187
188
  def check_bounding_box
188
189
  # $bounding_box="0 0 442 432"
189
- $bounding_box=" 0 0 737 553"
190
+ # $bounding_box=" 0 0 737 553"
191
+ # $fig_width="10"
192
+ $bounding_box=" 0 0 937 753"
193
+ $fig_width="12"
190
194
  end
191
195
 
192
196
  desc "すべてのhikiファイルをlatex変換"
@@ -276,7 +280,7 @@ def convert_to_latex(file_name, options={})
276
280
  line ="\\bibitem{#{m[1]}} #{m[2]}"
277
281
  end
278
282
  if m=line.match(/\\includegraphics\[width=6cm\]\{(.+)\}/)
279
- p line="\\includegraphics\[width=10cm,bb=#{$bounding_box}\]\{../figs/#{m[1]}\}\n"
283
+ p line="\\includegraphics\[width=#{$fig_width}cm,bb=#{$bounding_box}\]\{../figs/#{m[1]}\}\n"
280
284
  cont << line
281
285
  else
282
286
  cont << line
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hikiutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.14
4
+ version: 0.2.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishitani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler