src/Pure/Thy/thy_info.ML
changeset 68491 f0f83ce0badd
parent 68184 6c693b2700b3
child 68506 cef6c6b009fb
equal deleted inserted replaced
68490:eb53f944c8cd 68491:f0f83ce0badd
    62         if #disabled option then ()
    62         if #disabled option then ()
    63         else
    63         else
    64           let
    64           let
    65             val latex = Latex.isabelle_body (Context.theory_name thy) body;
    65             val latex = Latex.isabelle_body (Context.theory_name thy) body;
    66             val output = [Latex.output_text latex, Latex.output_positions file_pos latex];
    66             val output = [Latex.output_text latex, Latex.output_positions file_pos latex];
    67             val _ = Export.export thy "document.tex" output;
    67             val _ =
       
    68               if Options.bool options "export_document"
       
    69               then Export.export thy "document.tex" output else ();
    68             val _ = if #enabled option then Present.theory_output thy output else ();
    70             val _ = if #enabled option then Present.theory_output thy output else ();
    69           in () end
    71           in () end
    70       end));
    72       end));
    71 
    73 
    72 
    74