Groups
Sign in
Groups
Macaulay2
Conversations
About
Send feedback
Help
"needPackage" for EXAMPLEs in documentation
15 views
Skip to first unread message
Friedemann Groh
unread,
Jun 16, 2024, 6:38:08 AM (13 days ago)
Jun 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Macaulay2
Hallo,
Is it possible to include a package within EXAMPLE { "needPackage ...", ... }? How do you write the quotation marks " here?
best regards,
Friedemann
Doug Torrance
unread,
Jun 16, 2024, 9:09:43 AM (13 days ago)
Jun 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Macaulay2
A few options:
* Escape the quotation marks with a backslash: "needsPackage \"Foo\""
* Use the alternate three-forward slash syntax for strings: ///needsPackage "Foo"///
* Use
SimpleDoc
for the documentation, where the entire documentation node is inside one big string:
doc ///
...
Description
Example
needsPackage "Foo"
...
///
Friedemann Groh
unread,
Jun 16, 2024, 10:16:07 AM (13 days ago)
Jun 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Macaulay2
Thank you, it works fine.
Reply all
Reply to author
Forward
0 new messages