MathGroup Archive 2007

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

Search the Archive

Re: Is Save As->HTML broken in 6.0?

  • To: mathgroup at
  • Subject: [mg79706] Re: [mg79600] Is Save As->HTML broken in 6.0?
  • From: "Igor C. Antonio" <igora at>
  • Date: Thu, 2 Aug 2007 03:51:51 -0400 (EDT)
  • Organization: Wolfram Research, Inc.
  • References: <>
  • Reply-to: igora at

W. Craig Carter wrote:
> I've seen some other postings on this, notably by C. 
> Chiasson.
> IS HTML broken in 6.0?
> In 5.0, I was able to get each of the closed groups to be a 
> link from the main web page. I can't duplicate this behavior 
> in  6.0.  I've tried SetOptions[Export, ConvertClosed -> 
> "LinkedPage"], but this doesn't work.

The options "ConvertClosed" and "ConvertReverseClosed" set whether or not 
closed-cells and reverse closed-cells are opened and exported by the converter. 
  By default, they are both set to False in Mathematica 6.0.0 and 6.0.1.

Sorry for the inconvenience.  With versions 6.0.0 and 6.0.1), the File > Save As 
 > Web page menu is limited to using only the default options defined in Export 
as HTML.  We're partially addressing the issue you have encountered in the next 
minor update to Mathematica by setting "ConvertClosed" to True by default.  We 
will also enable users to set all HTML options via the File > Save as menu (much 
like one sets options to the PDF exporter), though that might not make it into 
the next minor update.

In the meantime, you should use Export[] instead of the menu system to export 
your notebooks.  Here is one way to use it:

nb = NotebookOpen["<filepath to notebook file>"];
Export["index.html", nb, "HTML", "ConvertClosed"->"LinkedPage"]

Please note that SetOptions[Export, ...] does not work as Export[] itself no 
longer has any options (Options@Export returns {}).  All options are "converter 
options" and are defined on a per-converter basis.  The documentation entry in 
the Help Viewer for each format lists all relevant options.



Igor C. Antonio
Wolfram Research, Inc.

To email me personally, remove the dash.

  • Prev by Date: Re: removing those annoying $$$$'s from local variables names?
  • Next by Date: Re: Differentiation w.r.t. elements of lists
  • Previous by thread: Re: Is Save As->HTML broken in 6.0?
  • Next by thread: Differentiation w.r.t. elements of lists