diff options
author | Ralph Amissah <ralph@amissah.com> | 2020-02-06 08:55:48 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2020-02-26 09:59:18 -0500 |
commit | fc25d90c46f454448a41438c62fdd7dad5105946 (patch) | |
tree | 38e6bc56211a2392d8a87b81fd031441a79faa65 /util/dr_tex.rb | |
parent | imports related, mostly cosmetic (diff) |
latex outputs (various paper sizes & orientation)
- a4, a5, b4, letter, legal
- portrait, landscape
Diffstat (limited to 'util/dr_tex.rb')
-rwxr-xr-x | util/dr_tex.rb | 4 |
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)) |