From fc25d90c46f454448a41438c62fdd7dad5105946 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 6 Feb 2020 08:55:48 -0500 Subject: latex outputs (various paper sizes & orientation) - a4, a5, b4, letter, legal - portrait, landscape --- util/dr_tex.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') 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)) -- cgit v1.2.3