1

I'm on Windows 8.1 with Mathematica 9.

Export["test.html",EvaluationNotebook[],"MathOutput"\[RightArrow]"GIF","CSS"->None]

Export["test.html",EvaluationNotebook[],"CSS"->None,"MathOutput"\[RightArrow]"GIF"]

Export::argt: Export called with 4 arguments; 2 or 3 arguments are expected. >>

Export::noelem: MathOutput[RightArrow]GIF is not a valid set of export elements for the HTML format. >>

I think picture is clear to show the problem.

enter image description here

"CSS" -> None, "MathOutput" \[RightArrow] "GIF" are options? right? and order sensitive?

"CSS" -> None seems to be an argument? of course it's an option in the help page of HTML,

HyperGroups
  • 8,619
  • 1
  • 26
  • 63
  • 2
    Why do you post your code as an image? You should know better than to do that by now. I think it is just laziness. To save yourself the work of converting your code and results to markdown, you put the burden of typing it in on anyone who wishes to help you. That's rude. – m_goldberg Aug 22 '13 at 15:34
  • @m_goldberg I've added the necessary code in the last line? Is that not enough? The warnings and NotebookObject will not look good in SE! – HyperGroups Aug 22 '13 at 15:38
  • @m_goldberg Here, I've made such mistakes, so sad. http://mathematica.stackexchange.com/questions/30900/how-can-i-convert-an-input-cell-to-text-cell – HyperGroups Aug 22 '13 at 15:39
  • @m_goldberg well, is the question not so clear? I'm confused by the downvotes... – HyperGroups Aug 22 '13 at 15:46
  • Thanks for adding the code in markdown. I evaluated it on my system using V9.0.1 on OS X. I do not get the error you show. Instead I get Export::noelem: MathOutput\[RightArrow]GIF is not a valid set of export elements for the HTML format. This indicates you can't export a Manipulate as a GIF. – m_goldberg Aug 22 '13 at 15:48
  • I've retracted my down vote. It was for not inserting the code as markdown. – m_goldberg Aug 22 '13 at 15:50
  • @m_goldberg thanks and also for testing, Maybe next time I should put my markdown codes in the beginning of the question...haha – HyperGroups Aug 22 '13 at 15:51
  • @m_Goldberg "MathOutput"->"GIF" is listed as an option in the HTML doc page, though. – Sjoerd C. de Vries Aug 22 '13 at 16:02
  • Export of HTML files seems to be thoroughly broken in V9.0.1 on OS X. Even something as simple as Export[ FileNameJoin[{$HomeDirectory, "Desktop", test.html"}], Plot[Sin[t], {t, -6, 6}]] produces a bad HTML file. – m_goldberg Aug 22 '13 at 18:03
  • @m_goldberg Works OK on my Mac and v9 (after quoting the file name). – cormullion Aug 22 '13 at 18:50

2 Answers2

2

In version 7 this line appears to work correctly:

Export["test.html", EvaluationNotebook[], "MathOutput" -> "GIF", "CSS" -> "None"]

I think the problem is that \[RightArrow] is not an option and you need \[Rule] or ->.

Mr.Wizard
  • 271,378
  • 34
  • 587
  • 1,371
1

I think: if you type \[RightArrow] it converts to hex code 2192; if you type "->" and let Mathematica convert it for you, it converts to hex code f522.

two arrows

Or, as the manual says:

\[RightArrow] - Not the same as \[Rule]

cormullion
  • 24,243
  • 4
  • 64
  • 133