def compile_latex
            begin
                context = @context.new( @partials_path || @view.dirname, @data )
                content = ErbLatex::File.evaluate(@view, context.getBinding)
                if layout
                    ErbLatex::File.evaluate(layout_file, context.getBinding{ content })
                else
                    content
                end
            rescue LocalJumpError=>e
                raise LatexError.new( "ERB compile raised #{e.class} on #{@view}", e.backtrace )
            end
        end
def compile_latex
            begin
                context = @context.new( @partials_path || @view.dirname, @data )
                content = ErbLatex::File.evaluate(@view, context.getBinding)
                if layout
                    ErbLatex::File.evaluate(layout_file, context.getBinding{ content })
                else
                    content
                end
            rescue LocalJumpError=>e
                raise LatexError.new( "ERB compile raised #{e.class} on #{@view}", e.backtrace )
            end
        end
Runs the ERB pre-process on the latex file
 @return [String] latex with ERB substitutions performed
 @raise [LatexError] if the xelatex process does not complete successfully