# HG changeset patch # User wneuper # Date 1659610219 -7200 # Node ID 851c82618f2e3627a843569dc9aa511c948dd5cc # Parent 2e0b7ca391dc4e7218e772400f7ea8ff3c850dd0 cleanup Example.id diff -r 2e0b7ca391dc -r 851c82618f2e src/Tools/isac/BridgeJEdit/VSCode_Example.thy --- a/src/Tools/isac/BridgeJEdit/VSCode_Example.thy Thu Aug 04 12:48:37 2022 +0200 +++ b/src/Tools/isac/BridgeJEdit/VSCode_Example.thy Thu Aug 04 12:50:19 2022 +0200 @@ -48,7 +48,7 @@ \ text \ (*.. remove as soon as this works as Isabelle/Isar commands ..*) -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants r = 7\ @@ -69,7 +69,7 @@ \ text \ (*.. remove as soon as this works as Isabelle/Isar commands ..*) -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants _\ @@ -86,11 +86,11 @@ subsubsection \Plain Example\ text \ This can occur in between text offering to start an interactive Calculation by using - "Diff_App/No.123 a" as a link. + "Diff_App-No.123a" as a link. \ text \ (*.. remove as soon as this works as Isabelle/Isar commands ..*) -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" (* remove as soon as this ^^^ works as Isabelle/Isar commands ..*) \ @@ -102,7 +102,7 @@ \ text \ (*.. remove as soon as this works as Isabelle/Isar commands ..*) -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Problem "univariate_calculus/Optimisation" Specification: Solution: @@ -119,7 +119,7 @@ \ text \ (*.. remove as soon as this works as Isabelle/Isar commands ..*) -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Problem "univariate_calculus/Optimisation" Specification: Model: @@ -193,7 +193,7 @@ in the repository. The intermediate steps below will be deleted as soon as all above representations - of Example "Diff_App/No.123 a" work out. + of Example "Diff_App-No.123a" work out. \ subsubsection \Complete Specification at once\ diff -r 2e0b7ca391dc -r 851c82618f2e test/Tools/isac/BridgeJEdit/Test_VSCode_Example.thy --- a/test/Tools/isac/BridgeJEdit/Test_VSCode_Example.thy Thu Aug 04 12:48:37 2022 +0200 +++ b/test/Tools/isac/BridgeJEdit/Test_VSCode_Example.thy Thu Aug 04 12:50:19 2022 +0200 @@ -6,7 +6,7 @@ text \ Just a test, that this works also in $ISABELLE_ISAC_TEST \ -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants [r = 7]\ @@ -26,15 +26,15 @@ text \ In an electronic textbook there shall be references to examples given, for instance, - by \Example "Diff_App/No.123 a"\. Such a reference shall be easily "activated" + by \Example "Diff_App-No.123a"\. Such a reference shall be easily "activated" to start a Solution at the spot ?and?or? to open a separate window. - Activating the reference \Example "Diff_App/No.123 a"\ shall result in a threefold alternative, + Activating the reference \Example "Diff_App-No.123a"\ shall result in a threefold alternative, where (2)=(3) for the parsers: (1) the Example presents a "normal problem" with a Specification (preferred by engineers), see above subsubsection \Empty Specification\, (2) the Example presents a "normal problem" without a Specification (preferred in high-school): - |Example "Diff_App/No.123 a" + |Example "Diff_App-No.123a" | Specification: | Solution: | ..first formula as given by the specifid Method.. @@ -62,7 +62,7 @@ ML \ (* # 1: At the first call of \Example\ ISAC initialises a calculation *) val p = ([], Pos.Pbl); val pt = update_state (*here we have Ctree.EmptyPtree and thus call init_ctree*) -("Diff_App/No.123 a", +("Diff_App-No.123a", (* Problem.parse_model_input results in markup, which is accepted by \fun update_state\, too: Constants [r = 7] *) ( [("#Given", ["Constants [r = 7]"]), @@ -77,7 +77,7 @@ ) Ctree.EmptyPtree; val ptp = (pt, p); \ -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants [r = 7]\ @@ -99,7 +99,7 @@ val ("ok", ([(Tactic.Add_Given "Constants [r = 7]", _, _)], _, ptp)) = Step.specify_do_next ptp; \ -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants r = 7\ @@ -122,7 +122,7 @@ val ("ok", ([(Tactic.Add_Find "Maximum A", _, _)], _, ptp)) = Step.specify_do_next ptp; \ -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants r = 7\ @@ -145,7 +145,7 @@ = Step.specify_do_next ptp; \ -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants r = 7\ @@ -165,7 +165,7 @@ \ ML \ (* # 5: Input to \Problem_Ref\ might change the \Model\ *) \ -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: Given: \Constants r = 7\ @@ -188,7 +188,7 @@ ML \ (* # 6: Input to \Method_Ref\ changes the \Model\ to the respective \Method\ *) \ text \ --- remove this line and make content Isar input---\ -Example "Diff_App/No.123 a" +Example "Diff_App-No.123a" Specification: Model: GOON: lookup model of method GOON GOON GOON GOON GOON! Given: \Constants r = 7\