Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Thursday, June 12, 2014

mathjax test & Demo

MathJax setup in Blogger:
http://mytechmemo.blogspot.com.au/2012/02/how-to-write-math-formulas-in-blogger.html

MathJax Examples

Note:
  1. I had to hunt for the "HTML/Javascript" gadget, down the list aways.
  2. I ended up putting the gadget in as a footer.
  3. You'll have to add that gadget to all blogs you want it to work for.
  4. Preview and Edit mode don't compute the TeX. You need to save the doc, then view the post.
  5. In compose "Options", "Line Breaks", I'm using 'Press "Enter" for line breaks.
  6. The "MyTechMemo" author doesn't use the exact code he suggests, though it works for me. His actual gadget is:
Powered by <a href="http://www.mathjax.org/docs/1.1/start.html">MathJax</a>

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
Alternate Hub Config in gadget, replace just first line.
MathJax.Hub.Config({
        TeX: { equationNumbers: { autoNumber: "AMS" } },
         tex2jax: {
                    inlineMath: [ ['$','$'], ["\\(","\\)"] ],
                   displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
                   processEscapes: true }
   });

Using "all", numbers all equations.
"AMS" numbers only specified equations.
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: { equationNumbers: {autoNumber: "all"} }
});
</script>

Tuesday, February 27, 2007

Finally - a working expandable summary, but not happy

Not happy with blogspot "help" :-( 

In a previous post I wrote of my frustrating experience wasting many hours of my time following (precisely) the instructions on blogspot "help"....
Last night I wasted another 4-5 hours and got something working.

It's really simple - blogspot just can't do it.
And there's a post on the Blogger forums that says this...

The help instructions are confusing - they run together instructions for two different types of templates (old and 'layout'), without letting you know how to tell which you've got, nor that you have to 'expand widgets' and with an error in the so called working code... And when you finally get to the end of their example so it parses - it can't be made to work. There is a bug that's been reported to them and they're not fixing...

The really annonying part of the help page - that you cannot send them a message! I'd like to wring their necks... They ask "was this helpful" ? Doesn't matter how ofter you hit 'No', you've got no way to tell 'em what's going on.

Finally found a Blogger forum post that pointed to 'hackoshpere' - in amongst a whole slew of people having exactly the same problems as myself over 6-9 months.

What I don't like about the solution:

It relies on a javascript file pulled of someone elses site. It's a big security hole...

And Google with all their resources, could easily fix this.
I wonder what their business objectives are with 'blogspot'??

NOTE: These URL's are not links.

You have to copy and paste them to use them. That's so you know where they go :-)

Javascript:
http://www.anniyalogam.com/widgets/hackosphere.js

Hackosphere notes:
http://hackosphere.blogspot.com/2006/09/expandable-posts-with-peekaboo-view.html
http://www.anniyalogam.com/widgets/peekabooposts.html