aboutsummaryrefslogtreecommitdiffhomepage
path: root/util/dr_tex.rb
diff options
context:
space:
mode:
Diffstat (limited to 'util/dr_tex.rb')
-rwxr-xr-xutil/dr_tex.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dr_tex.rb b/util/dr_tex.rb
index a73f07b..767742c 100755
--- a/util/dr_tex.rb
+++ b/util/dr_tex.rb
@@ -15,7 +15,7 @@ if flags.length==0 \
#{cmd} --paper-size=a5 --out=~/test
WOK
end
-paper_size = (flags.inspect.match(/"--paper-size=(a4|a5|b5|letter|legal)"/)) ? $1 : "a4"
+// paper_size_orientation = (flags.inspect.match(/"--paper-size=(a4|a5|b5|letter|legal)"/)) ? $1 : "a4"
out_path = Dir.pwd
if (flags.inspect.match(/"--out=\S+"/))
out_path = flags.inspect.match(/"--out=(\S+)"/)[1]
@@ -49,7 +49,7 @@ if texfiles_with_path.length > 0
FileUtils::mkdir_p(_out_path)
end
end
- texpdf_cmd = %{xetex -interaction=batchmode -fmt=xelatex -papersize=#{paper_size} #{texfile_with_path}\n}
+ texpdf_cmd = %{xetex -interaction=batchmode -fmt=xelatex #{texfile_with_path}\n}
puts texpdf_cmd
2.times { |i| system(texpdf_cmd) }
if (FileTest.file?(%{#{pwd}/#{file_basename}.pdf})) && (FileTest.directory?(_out_path))