src/Doc/antiquote_setup.ML
changeset 59175 bf465f335e85
parent 59083 88b0b1f28adc
child 59809 87641097d0f3
equal deleted inserted replaced
59174:15a73dd9df51 59175:bf465f335e85
   125       map (apfst (Thy_Output.pretty_thm ctxt))
   125       map (apfst (Thy_Output.pretty_thm ctxt))
   126       #> (if Config.get ctxt Thy_Output.quotes then map (apfst Pretty.quote) else I)
   126       #> (if Config.get ctxt Thy_Output.quotes then map (apfst Pretty.quote) else I)
   127       #> (if Config.get ctxt Thy_Output.display
   127       #> (if Config.get ctxt Thy_Output.display
   128           then
   128           then
   129             map (fn (p, name) =>
   129             map (fn (p, name) =>
   130               Output.output (Pretty.string_of (Pretty.indent (Config.get ctxt Thy_Output.indent) p)) ^
   130               Output.output
       
   131                 (Thy_Output.string_of_margin ctxt
       
   132                   (Pretty.indent (Config.get ctxt Thy_Output.indent) p)) ^
   131               "\\rulename{" ^ Output.output (Pretty.str_of (Thy_Output.pretty_text ctxt name)) ^ "}")
   133               "\\rulename{" ^ Output.output (Pretty.str_of (Thy_Output.pretty_text ctxt name)) ^ "}")
   132             #> space_implode "\\par\\smallskip%\n"
   134             #> space_implode "\\par\\smallskip%\n"
   133             #> enclose "\\begin{isabelle}%\n" "%\n\\end{isabelle}"
   135             #> enclose "\\begin{isabelle}%\n" "%\n\\end{isabelle}"
   134           else
   136           else
   135             map (fn (p, name) =>
   137             map (fn (p, name) =>