From: telefunkenvf14 on
Group:

I'd like to pull documentation on particular functions and display the
information with TableForm[] (mainly for organizing teaching notes).
My first thought was to evaluate ?SomeFunction and then grab the text
using %[[]].

Problem: there don't seem to be any parts I can grab:

TableForm[{Information[Times, LongForm -> False], Information[Plus,
LongForm -> False]}]

Evaluates to:

Null
Null

I also tried playing around with Hold/ReleaseHold but that didn't
work. Any ideas? (that is, other than trying to pull the info directly
from specific documentation notebooks---if that's even possible/
feasible.)

-RG

From: Simon on
hi RG,

If you look at the types of cell returned by Information, you'll see
that they are "Print" style. So, internally, Information probably
uses Print. The Print help file says "The actual expression returned
by Print is Null:". This is also all mentioned in the Possible Issues
section of the Information help page.

Information combines the usage message of the symbol with the
Attributes, Options and (I think) all the Names["*Values"];
{"DefaultValues", "DownValues", "DynamicModuleValues", "FormatValues",
"NValues", "OwnValues", "SingularValues", "SubValues", "UpValues"}

So you could recreate the parts of it that you want, eg:
#::usage & /@ {Plus, Times}

Simon

On May 23, 11:33 am, telefunkenvf14 <rgo...(a)gmail.com> wrote:
> Group:
>
> I'd like to pull documentation on particular functions and display the
> information with TableForm[] (mainly for organizing teaching notes).
> My first thought was to evaluate ?SomeFunction and then grab the text
> using %[[]].
>
> Problem: there don't seem to be any parts I can grab:
>
> TableForm[{Information[Times, LongForm -> False], Information[Plus,
> LongForm -> False]}]
>
> Evaluates to:
>
> Null
> Null
>
> I also tried playing around with Hold/ReleaseHold but that didn't
> work. Any ideas? (that is, other than trying to pull the info directly
> from specific documentation notebooks---if that's even possible/
> feasible.)
>
> -RG