aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/texpdf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/texpdf.rb')
-rw-r--r--lib/sisu/v2/texpdf.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sisu/v2/texpdf.rb b/lib/sisu/v2/texpdf.rb
index bdb3f7dd..3412d64c 100644
--- a/lib/sisu/v2/texpdf.rb
+++ b/lib/sisu/v2/texpdf.rb
@@ -164,21 +164,23 @@ module SiSU_TeX
tex_fn_base=@texfilename.gsub(/\.tex$/,'')
cmd=SiSU_Env::System_call.new("#{tex_fn_base}.tex",'',@md.cmd)
tell=SiSU_Screen::Ansi.new(@md.cmd)
- tell.grey_open unless @md.cmd =~/q/
+ tell.grey_open if @md.cmd =~/[MVv]/
if "#{tex_fn_base}" =~/\w+/ \
and "#{papersize}" =~/\w+/
2.times { |i| cmd.latex2pdf(@md,papersize) }
end
- tell.p_off unless @md.cmd =~/q/
+ tell.p_off if @md.cmd =~/[MVv]/
tell=SiSU_Screen::Ansi.new(@md.cmd,"#{papersize} landscape ->")
tell.dark_grey_title_hi if @md.cmd =~/[MVv]/
cmd=SiSU_Env::System_call.new("#{tex_fn_base}.landscape.tex",'',@md.cmd)
- tell.grey_open
+ tell.grey_open if @md.cmd =~/[MVv]/
if "#{tex_fn_base}" =~/\w+/ \
and "#{papersize}" =~/\w+/
2.times { |i| cmd.latex2pdf(@md,papersize) }
end
- tell.p_off unless @md.cmd =~/q/
+ unless @md.cmd =~/q/
+ tell.p_off if @md.cmd =~/[MVv]/
+ end
pwd=Dir.pwd
portrait_pdf="#{pwd}/#{tex_fn_base}.pdf"
landscape_pdf="#{pwd}/#{tex_fn_base}.landscape.pdf"