File tree 4 files changed +7
-10
lines changed
M2/Macaulay2/packages/Macaulay2Doc
4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 27
27
Text
28
28
This function allows access to the local symbols of a any loaded file.
29
29
Example
30
- -* no-capture-flag *-
31
- load " Macaulay2Doc/demos/demo1.m2"
30
+ load " Macaulay2Doc/demos/demo1.m2" -* no-capture-flag *-
32
31
listUserSymbols
33
32
debug " Macaulay2Doc/demos/demo1.m2"
34
33
listUserSymbols
Original file line number Diff line number Diff line change 46
46
Text
47
47
Certain examples or tests might not be compatible with @TT " capture" @. In such cases,
48
48
use the string @CODE " -* no-capture-flag *-" @ somewhere within @TT " str" @ so that the
49
- code is run in a separate Macaulay2 subprocess instead.
49
+ code is run in a separate Macaulay2 subprocess instead. In examples , this string
50
+ should not go on its own line or the documentation will be garbled.
50
51
SeeAlso
51
52
check
52
53
examples
Original file line number Diff line number Diff line change @@ -137,11 +137,10 @@ doc ///
137
137
file, then @TT " name" @ should coincide with the name of this
138
138
file.
139
139
Example
140
- -* no-capture-flag *-
141
- programPaths #" gfan" = " /path/to/gfan/"
140
+ programPaths #" gfan" = " /path/to/gfan/" -* no-capture-flag *-
142
141
gfan = findProgram (" gfan" , " gfan _version --help" , Verbose => true )
143
142
Text
144
- If @TT " cmd" @ is not provided, then @TT " cmd " @ is run with the common
143
+ If @TT " cmd" @ is not provided, then @TT " name " @ is run with the common
145
144
@TT " --version" @ command line option.
146
145
Example
147
146
findProgram " normaliz"
Original file line number Diff line number Diff line change @@ -242,8 +242,7 @@ document {
242
242
}},
243
243
" The first line of the following example illustrates the syntax above." ,
244
244
EXAMPLE lines ///
245
- -* no-capture-flag *-
246
- String * String = peek ;
245
+ String * String = peek ; -* no-capture-flag *-
247
246
" left" * " right" = " value"
248
247
///,
249
248
PARA " Warning: the installation of new methods may supplant old ones, changing the behavior of Macaulay2."
@@ -517,8 +516,7 @@ document {
517
516
}},
518
517
" The first line of the following example illustrates the syntax above." ,
519
518
EXAMPLE lines ///
520
- -* no-capture-flag *-
521
- String * String := peek ;
519
+ String * String := peek ; -* no-capture-flag *-
522
520
" left" * " right"
523
521
///,
524
522
PARA " Warning: the installation of new methods may supplant old ones, changing the behavior of Macaulay2."
You can’t perform that action at this time.
0 commit comments