# Why I cannot use the option “MathOutput”?

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.

"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,

-
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. mathematica.stackexchange.com/questions/30900/… –  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

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 ->.

-
Works OK for me, Mac OS X running Mathematica v 9.0.1. –  cormullion Aug 22 '13 at 18:48

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.

Or, as the manual says:

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

-
cormullion, are you on-line right now, and you you have a few minutes? –  Mr.Wizard Sep 7 '13 at 8:57
@Mr.Wizard I'm on an iPad at the moment... –  cormullion Sep 7 '13 at 9:00
Okay. I needed someone to run some code. Thanks for replying. –  Mr.Wizard Sep 7 '13 at 9:01