# HG changeset patch # User wenzelm # Date 1413834273 -7200 # Node ID 9402a7f15ed55b7c6e44bedc0dcc18b03852ec05 # Parent e5f809f52f26df15d99bc02a534682cd077320f0 tuned exposition of {* ... *}; diff -r e5f809f52f26 -r 9402a7f15ed5 src/Doc/Isar_Ref/Document_Preparation.thy --- a/src/Doc/Isar_Ref/Document_Preparation.thy Mon Oct 20 21:32:54 2014 +0200 +++ b/src/Doc/Isar_Ref/Document_Preparation.thy Mon Oct 20 21:44:33 2014 +0200 @@ -194,8 +194,7 @@ Note that the syntax of antiquotations may \emph{not} include source comments @{verbatim "(*"}~@{text "\"}~@{verbatim "*)"} nor verbatim - text @{verbatim "{"}@{verbatim "*"}~@{text "\"}~@{verbatim - "*"}@{verbatim "}"}. + text @{verbatim "{*"}~@{text "\"}~@{verbatim "*}"}. \begin{description} diff -r e5f809f52f26 -r 9402a7f15ed5 src/Doc/Isar_Ref/Outer_Syntax.thy --- a/src/Doc/Isar_Ref/Outer_Syntax.thy Mon Oct 20 21:32:54 2014 +0200 +++ b/src/Doc/Isar_Ref/Outer_Syntax.thy Mon Oct 20 21:44:33 2014 +0200 @@ -148,7 +148,7 @@ @{syntax_def string} & = & @{verbatim \"\} @{text "\"} @{verbatim \"\} \\ @{syntax_def altstring} & = & @{verbatim "`"} @{text "\"} @{verbatim "`"} \\ @{syntax_def cartouche} & = & @{verbatim "\"} @{text "\"} @{verbatim "\"} \\ - @{syntax_def verbatim} & = & @{verbatim "{*"} @{text "\"} @{verbatim "*"}@{verbatim "}"} \\[1ex] + @{syntax_def verbatim} & = & @{verbatim "{*"} @{text "\"} @{verbatim "*}"} \\[1ex] @{text letter} & = & @{text "latin | "}@{verbatim \\\}@{verbatim "<"}@{text latin}@{verbatim ">"}@{text " | "}@{verbatim \\\}@{verbatim "<"}@{text "latin latin"}@{verbatim ">"}@{text " | greek |"} \\ @{text subscript} & = & @{verbatim "\<^sub>"} \\ @@ -185,12 +185,10 @@ @{syntax_ref altstring} are analogous, using single back-quotes instead. - The body of @{syntax_ref verbatim} may consist of any text not - containing ``@{verbatim "*"}@{verbatim "}"}''; this allows - convenient inclusion of quotes without further escapes. There is no - way to escape ``@{verbatim "*"}@{verbatim "}"}''. If the quoted - text is {\LaTeX} source, one may usually add some blank or comment - to avoid the critical character sequence. + The body of @{syntax_ref verbatim} may consist of any text not containing + ``@{verbatim "*}"}''; this allows to include quotes without further + escapes, but there is no way to escape ``@{verbatim "*}"}''. Cartouches + do not have this limitation. A @{syntax_ref cartouche} consists of arbitrary text, with properly balanced blocks of ``@{verbatim "\"}~@{text "\"}~@{verbatim @@ -263,13 +261,12 @@ subsection \Comments \label{sec:comments}\ -text \Large chunks of plain @{syntax text} are usually given - @{syntax verbatim}, i.e.\ enclosed in @{verbatim "{"}@{verbatim - "*"}~@{text "\"}~@{verbatim "*"}@{verbatim "}"}, or as @{syntax - cartouche} @{text "\\\"}. For convenience, any of the smaller text - units conforming to @{syntax nameref} are admitted as well. A - marginal @{syntax comment} is of the form @{verbatim "--"}~@{syntax - text}. Any number of these may occur within Isabelle/Isar commands. +text \Large chunks of plain @{syntax text} are usually given @{syntax + verbatim}, i.e.\ enclosed in @{verbatim "{*"}~@{text "\"}~@{verbatim "*}"}, + or as @{syntax cartouche} @{text "\\\"}. For convenience, any of the + smaller text units conforming to @{syntax nameref} are admitted as well. A + marginal @{syntax comment} is of the form @{verbatim "--"}~@{syntax text}. + Any number of these may occur within Isabelle/Isar commands. @{rail \ @{syntax_def text}: @{syntax verbatim} | @{syntax cartouche} | @{syntax nameref}