6
$\begingroup$

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}

the option #&?/@ {List, Table, Apply, Map} neither works.

What is the FullForm or InputForm of ? or ??.

$\endgroup$
8
$\begingroup$

?? is the same as Information. ?Sin is the same as Information[Sin, LongForm -> False].

Information /@ {List, Table, Apply, Map}

enter image description here

I have found the following command very useful especially in the case of my own pacakages:

Needs["Notation`"]
?"Notation`*"

enter image description here ... 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:

pattern = Alternatives @@ ToString /@ {List, Table, Apply, Map};
Information[Evaluate@pattern, LongForm -> False]

enter image description here

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.

I am mentioning this, because you might be trying to implement something what already exists.

$\endgroup$
  • $\begingroup$ Thank you very much Johu. This is what I need. $\endgroup$ – Nitra Sep 4 '18 at 12:25
  • $\begingroup$ You are welcome! Just do not forget to accept and up-vote what you find useful! $\endgroup$ – Johu Sep 4 '18 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.