Class: LatexFlow::CLI::LaTeX

Inherits:
Generic
  • Object
show all
Defined in:
lib/latex-flow/cli/latex.rb

Instance Method Summary collapse

Methods inherited from Generic

#initialize

Constructor Details

This class inherits a constructor from LatexFlow::CLI::Generic

Instance Method Details

#runObject



7
8
9
10
11
12
# File 'lib/latex-flow/cli/latex.rb', line 7

def run
  t = Tools::LaTeX.new("#{ENV.fetch('LATEX', 'latex -halt-on-error')} #{@options[:target]}")
  t.run
  $stderr.puts t.messages(color:@options[:color]) if @options[:verbose]
  exit(false) if !t.success?
end