documentation of @{cite} and cite_macro;
authorwenzelm
Mon, 06 Oct 2014 17:26:30 +0200
changeset 58593 51adee3ace7b
parent 58592 b0fff34d3247
child 58594 72e2f0e7e344
documentation of @{cite} and cite_macro;
src/Doc/Isar_Ref/Document_Preparation.thy
--- a/src/Doc/Isar_Ref/Document_Preparation.thy	Mon Oct 06 16:54:35 2014 +0200
+++ b/src/Doc/Isar_Ref/Document_Preparation.thy	Mon Oct 06 17:26:30 2014 +0200
@@ -127,6 +127,7 @@
     @{antiquotation_def ML_functor} & : & @{text antiquotation} \\
     @{antiquotation_def "file"} & : & @{text antiquotation} \\
     @{antiquotation_def "url"} & : & @{text antiquotation} \\
+    @{antiquotation_def "cite"} & : & @{text antiquotation} \\
   \end{matharray}
 
   The overall content of an Isabelle/Isar theory may alternate between
@@ -180,7 +181,8 @@
       @@{antiquotation ML_functor} options @{syntax text} |
       @@{antiquotation "file"} options @{syntax name} |
       @@{antiquotation file_unchecked} options @{syntax name} |
-      @@{antiquotation url} options @{syntax name}
+      @@{antiquotation url} options @{syntax name} |
+      @@{antiquotation cite} options @{syntax cartouche}? (@{syntax name} + @'and')
     ;
     options: '[' (option * ',') ']'
     ;
@@ -279,6 +281,20 @@
   \item @{text "@{url name}"} produces markup for the given URL, which
   results in an active hyperlink within the text.
 
+  \item @{text "@{cite name}"} produces a citation @{verbatim
+  "\\cite{name}"} in {\LaTeX}, where the name refers to some Bib{\TeX}
+  database entry.
+
+  The variant @{text "@{cite \<open>opt\<close> name}"} produces @{verbatim
+  "\\cite[opt]{name}"} with some free-form optional argument. Multiple names
+  are output with commas, e.g. @{text "@{cite foo \<AND> bar}"} becomes
+  @{verbatim "\\cite{foo,bar}"}.
+
+  The {\LaTeX} macro name is determined by the antiquotation option
+  @{antiquotation_option_def cite_macro}, or the configuration option
+  @{attribute cite_macro} in the context. For example, @{text "@{cite
+  [cite_macro = nocite] foobar}"} produces @{verbatim "\\nocite{foobar}"}.
+
   \end{description}
 *}