How to use ? (short help of multiple functions)
How to use ? (short help of multiple functions)
I want to use ?
Command in multiple functiones to make a list of quick references for the most common mathematica commands and print it as pdf.
For example ? Plot
works well.
But how can I print an inventory for more than one commands: for example I would like something like?/@ List, Table, Apply, Map
?
? Plot
?/@ List, Table, Apply, Map
the option #&?/@ List, Table, Apply, Map
neither works.
#&?/@ List, Table, Apply, Map
What is the FullForm
or InputForm of ?
or ??
.
FullForm
InputForm of ?
??
1 Answer
1
??
is the same as Information
. ?Sin
is the same as Information[Sin, LongForm -> False]
.
??
Information
?Sin
Information[Sin, LongForm -> False]
Information /@ List, Table, Apply, Map
I have found the following command very useful especially in the case of my own pacakages:
Needs["Notation`"]
?"Notation`*"
... where all the table elements are links, which open the information below the table.
This works, because the first argment of Information
can be a StringPattern
. In order to make such a clickable table for the functions of your choice, use Alternatives
:
Information
StringPattern
Alternatives
pattern = Alternatives @@ ToString /@ List, Table, Apply, Map;
Information[Evaluate@pattern, LongForm -> False]
where I have just clicked on Map
. The color is different from the other pictures, because it depends on the Mathematica version it seems. Note also, that it creates nice sections for different contexts. Thus you can easily generate a interactive notebook with documentation of your own packages, if you have nicely written up all ::usage
messages.
Map
::usage
I am mentioning this, because you might be trying to implement something what already exists.
You are welcome! Just do not forget to accept and up-vote what you find useful!
– Johu
Sep 4 '18 at 12:26
Thanks for contributing an answer to Mathematica Stack Exchange!
But avoid …
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Thank you very much Johu. This is what I need.
– Nitra
Sep 4 '18 at 12:25