4
$\begingroup$

The \[DirectedEdge] character doesn't appear when I save a notebook as HTML.

Here's the notebook, which saves itself to HTML:

enter image description here

Here's the HTML:

enter image description here

In the HTML, the \[DirectedEdge] is encoded as , which unicodelookup.com doesn't recognize , but which Mathematica does:

FromCharacterCode[62421] // CharacterName
(* DirectedEdge *)

I have also tried adding the option "CSS" -> "mma.css" to the Export command.

$\endgroup$
  • 2
    $\begingroup$ You need to link in the fonts somehow, which means linking in WRIs style sheet where they’re defined. I just always programmatically post-process, personally. $\endgroup$ – b3m2a1 Oct 22 '18 at 16:17
  • $\begingroup$ @b3m2a1, thanks. Can you explain? Do I need to link a MMA style sheet into my MMA notebook, or do you mean copying some CSS from a WRI CSS stylesheet into the CSS file generated after I "save as HTML"? Could you briefly describe how you post-process it? $\endgroup$ – ConvexMartian Oct 23 '18 at 3:52
  • $\begingroup$ The latter. I just use string replace to insert into the generated file. I think I posted about this on meta somewhere... $\endgroup$ – b3m2a1 Oct 23 '18 at 4:07
  • $\begingroup$ Thanks. In your SE post here you link to your MMA tutorial that uses the \[Wolf] character by linking to a WRI CSS file special-styles.css and using the prettify JavaScript. $\endgroup$ – ConvexMartian Oct 23 '18 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.