1
$\begingroup$

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,

$\endgroup$
10
  • 2
    $\begingroup$ 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. $\endgroup$
    – m_goldberg
    Commented Aug 22, 2013 at 15:34
  • $\begingroup$ @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! $\endgroup$ Commented Aug 22, 2013 at 15:38
  • $\begingroup$ @m_goldberg Here, I've made such mistakes, so sad. mathematica.stackexchange.com/questions/30900/… $\endgroup$ Commented Aug 22, 2013 at 15:39
  • $\begingroup$ @m_goldberg well, is the question not so clear? I'm confused by the downvotes... $\endgroup$ Commented Aug 22, 2013 at 15:46
  • $\begingroup$ 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. $\endgroup$
    – m_goldberg
    Commented Aug 22, 2013 at 15:48

2 Answers 2

2
$\begingroup$

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

$\endgroup$
1
  • $\begingroup$ Works OK for me, Mac OS X running Mathematica v 9.0.1. $\endgroup$
    – cormullion
    Commented Aug 22, 2013 at 18:48
1
$\begingroup$

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]

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.