Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: how insert hyperlink to doc paclet in ordinary notebook?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86163] Re: how insert hyperlink to doc paclet in ordinary notebook?
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Tue, 4 Mar 2008 02:08:26 -0500 (EST)
  • References: <fqghk5$f7k$1@smc.vnet.net>

execute

Hyperlink["paclet:Combinatorica/tutorial/Combinatorica"]

Or

Hyperlink["To Combinatorica","paclet:Combinatorica/tutorial/
Combinatorica"]

Hope that this helps...
-David
A WorkLife FrameWork
E x t e n d i n g MATHEMATICA's Reach...
http://scientificarts.com/worklife/

On Mar 3, 4:49=A0am, Murray Eisenberg <mur... at math.umass.edu> wrote:
> I'm trying to create, in an ordinary Mathematica 6.0.1 notebook, a
> hyperlink to a particular documentation paclet, namely, the tutorial
> about the Combinatorica package.
>
> I began by using menu item Insert > Hyperlink and then edited the
> ButtonData. =A0I tried each of the following three ways, but none works;
> each just opens the main Documentation Center page:
>
> (1) The hyperlink target is
> "paclet:Combinatorica/tutorial/Combinatorica", just like what is used in
> Documentation Center pages. =A0The actual expression in my notebook is:
>
> Cell[TextData[{
> =A0 ButtonBox["tutorial",
> =A0 =A0BaseStyle->"Link",
> =A0 =A0ButtonData->{"paclet:Combinatorica/tutorial/Combinatorica", None}]
>
> }], "Text"]
>
> (2) The hyperlink target is the complete path to the file, as created
> using ToFileName. =A0The actual expression in my notebook is:
>
> Cell[TextData[{
> =A0 ButtonBox["tutorial",
> =A0 =A0BaseStyle->"Link",
>
> ButtonData->{ToFileName[{$InstallationDirectory,"Documentation","English",=

> "Packages","Combinatorica","Documentation","English","Tutorials"},
> "Combinatorica.nb"], None}]
>
> }], "Text"]
>
> (3) The hyperlink target is crated by the function
> Documentation`HelpLookup. =A0The actual expression in my notebook is:
>
> Cell[TextData[ButtonBox["tutorial",
> =A0 BaseStyle->"Link",
> =A0 ButtonData->{
> Documentation`HelpLookup["paclet:Combinatorica/tutorial/Combinatorica"],
> =A0 =A0 None}]], "Text"]
>
> What's wrong with those?
>
> I finally did get the following to work, although this involves drastic
> editing of what is inserted by the Insert > Hyperlink menu item.
>
> Cell[TextData[ButtonBox["tutorial",
> =A0 ButtonEvaluator->Automatic, ButtonFunction->
> (Documentation`HelpLookup["paclet:Combinatorica/tutorial/Combinatorica"])
> ]], "Text"]
>
> --
> Murray Eisenberg =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mur... at math.umass=
.edu
> Mathematics & Statistics Dept.
> Lederle Graduate Research Tower =A0 =A0 =A0phone 413 549-1020 (H)
> University of Massachusetts =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0413 545-2859 (W=
)
> 710 North Pleasant Street =A0 =A0 =A0 =A0 =A0 =A0fax =A0 413 545-1801
> Amherst, MA 01003-9305



  • Prev by Date: RE: Creating Palettes
  • Next by Date: Re: Mathematica 6 obtains imaginary eigenvalues for a Hermitian
  • Previous by thread: how insert hyperlink to doc paclet in ordinary notebook?
  • Next by thread: An interface function for adding Trusted Paths