HaCkED By KaSpEr511

* +_+ KaSpEr Was Here +_+ *

 Contact O.K: UzI@Hotmail.Com  

 

 

New Installation : Latex on Blogger/Blogspot

October 9th, 2009


This is the updated procedure of how to install latex on your Blogger.

What’s New?

How To Install

Use the instruction here, but in step one copy and use instead the following script.

<script src="http://latexonblogger.googlegroups.com/web/mathtex3.js?hl=en&amp;gda=R9ZVlD4AAABbAsbN4i7hi2ZFNZpVWCi9LFztQtuc529xoR6FBh351sAOXLBpscdVgFPClVlUxUzjsKXVs-X7bdXZc5buSfmx" type="text/javascript"></script>
<script type="text/javascript">window.mathPreamble =
 '\\newcommand{\\RR}{\\mathbb{R}}\\usepackage[usenames]{color}\\color{} \\gammacorrection{1.3}\\png \\normal ';replaceMath( document.body );</script>
 
<center>
<a href="http://www.watchmath.com">
<img alt="" src="http://www.watchmath.com/images/formula.png" width="100"></a>
<br>
<a href="http://watchmath.com/vlog/?p=1244">
Install LaTeX?</a></center>

Usage

Customization

Modify

window.mathPreamble =
 '\\newcommand{\\RR}{\\mathbb{R}}\\usepackage[usenames]{color}\\color{} \\gammacorrection{1}\\png \\normal ';

in the script above. All extra command will be written inside the quotation marks.

Demo?

Visit http://www.watchmath.blogspot.com

Reblog this post [with Zemanta]

Categories: Latex, Latex On Blogger

Tags: , , , , , , Leave a comment

Comments Feed49 Comments

  1. maxime

    Sounds like big improvements. Thank you!

    The problem is that it doesn’t work anymore at all, whether with the new or the old code…

    Cheers,
    Maxime.

  2. xelnx

    Yes it does not work anymore. Please help to restore the old service.

  3. Dan M

    Definitely down… hope you are able to restore this soon. :(

  4. Barbarel

    My blog is destroyed

  5. watchmath

    Hi, the mathtex public server that I used for my script in is unavailable now. I replaced by a new mathtex server, but it seems the latex package [usenames]{color} is not supported. But at least for the old installation, the math should be work. I try to find the best public mathtex server at the moment.

  6. Jiuning

    I tried your method but it does not work. You can check my blog site.

    http://jiuning.blogspot.com/

    Why is that? 3x.

  7. THE CLONE WARS « PSYCHEDELIC GEOMETRY

    [...] tired of rewritting the same posts again and again due to the problems with the external services that work with blogger, so I decided to make some changes in order to [...]

  8. Philipp

    Is this script working again? Tried it on my site but no success. Wondering if it’s an error in my HTML template or if it’s just down.
    Cheers,
    Philipp

  9. Paul Titze

    My blog is on Blogger and this is just what I was looking for however is this working for anyone? I’ve also found in Google Docs has an Equation editor and also found Google’s online chart maker allows LaTeX commands:

    http://chart.apis.google.com/chart?cht=tx&chl=\LaTeX

    Cheers, Paul.

  10. Philipp

    This script is actually _WORKING_!
    Some caveats: Don’t use the script on googlegroups.com, it has the wrong mathtex server in it. Use http://watchmath.com/cgi-bin/mathtex3.js instead. Also, the two … blocks do not belong into the header but in the of the HTML file. I uploaded a barebones HTML file demonstrating the usage here.

  11. Philipp

    I lied. the http://www.cyberroadie.org/cgi-bin/mathtex.cgi? server does work as well. Use either script on googlegroups or wathmath.com but make sure to copy the script tags into the body of the HTML file, as in the previous post.

  12. Paul Titze

    Of got it working in my blogsite, posted a few examples in my latest post, good stuff.

    Cheers, Paul.

  13. watchmath

    Thanks to inform me about this. I did made a request to the cyberroadie.org owner to make his public mathtex running again. I didn’t check his reply in his own blog. But glad to know it works again since his server is my favorite.

  14. Paul Titze

    The LaTeX script twasn’t working today (Sunday), was working the past week OK. Can we get something more stable?

    Cheers, Paul.

  15. watchmath

    Yes, the mathtex server in cyberroadie.org is down again. Try the instruction here .
    The mathtex server for this sctipt is more reliable but less flexible (it doesn’t support \newcommand ). Good luck!

  16. Paul Titze

    Ok the equations are back up again however I’ve reverted to the script in the link you gave (the old one).

    Cheers, Paul.

  17. watchmath

    The owner of the cyberroadie.org emailed me. He said his mathtex server was down because he moved his server to a new server and said everything should be smooth from now on. Up to you you, you can use my old script or my new one.
    Cheers

  18. oxolodonian

    HI, it seems that the code with ” ‘ ” character doesnt works (due to conflict meaning with html ) for example doesnt give me what i want.

  19. watchmath

    You can use $\prime$ to get the same thing.
    For example when you type $f^\prime (t)$ you get .

  20. Akash Kumar

    Hello There,

    I have some difficulty writing on my blog.

    See the last paragraph here http://akash-student-theory-cs.blogspot.com/2009/12/lattice-based-cryptography-getting.html

  21. watchmath

    Hi, thank you for visiting my blog.
    I checked the last paragraph as you suggested. From my browser (Firefox) I can see correctly the written in . Can you tell me what was the browser that you used?

  22. Akash Kumar

    Hello watchmath,

    Its working fine. Actually it was a problem with the blog “template”. Tobe precise it was the template called scribe.

    Thanks again.

    And great work….you have done a great service to the human race. I mean it.

  23. Armando Martinez

    I have a problem which may have been overlooked by Blogger, inherent in the fact that you can write a post in plain HTML code or in the Blogger editor. In writing formulas with math symbols there is a thorny issue with the symbols that stand for “bigger than” (>) and “less than”. When writing a post, if we put a statement like:

    “for P<i then x = 4"

    then when the Blogger editor parses the statement it will interpret the "P<i" string as actually opening up an HTML tag of italic characters (italics are specified in HTML with the tags and ), and since there are many other opening tags, it is virtually impossible to use the bigger than or less than symbols as math symbols in a Blogger entry. Perhaps there may be some trick to tell the Blogger editor not to interpret the symbols as part of opening or closing HTML tags, something like adding a double backwards slash that will not show up on the main entry. If someone knows about this, I would appreciate it if he/she could tell me how to do it. And if it cannot be done, perhaps someone should tell Blogger about this issue so that they fix it or provide some turnaround to avoid the the symbols from being interpreted as HTML tags when in fact one expects them to be interpreted as plain symbols with no HTML meaning ascribed to them.

  24. ateixeira

    Once again here I am bothering you ;)

    But after asking you why this doesn’t support the \displaystyle command (for instance ) I’ve come across this other post of yours.

    I’m getting a little difficulty understanding this: “New script, adapting the preference of either using \textstyle of \displaystyle as the default mode”. How do I make \displaystyle being the default mode?

    I’m asking you this because as I already said I’m using another script together with yours an first I get a .tex file that gets converted to an .html file to which I copy and paste into my blogger editor. So the two dollar signs code to get an inline displaystyle gets into some conflicts.

    Once again thanks for all the work.

  25. ateixeira

    Try giving spaces everytime you use . For instance don’t write ab. You should write a b. This gets the trick done for me.

    And if you really want to save some real time while getting equations to your blog I suggest using this other script: http://lucatrevisan.wordpress.com/latex-to-wordpress/ it converts a .tex file into a .html file ready to be used in wordpress.com

    I made a few changes on that python script and now it also works in blogger, so if you are interested just go to my blog and download it.

    And remember that even if you use latex2blogger you have to write a < b in your original .tex file.

    Take care

  26. Armando Martinez

    Thankks for the tip. Unfortunately, simply adding blank spaces into the HTML code in Blogger doesn’t work because when you switch from the normal editor mode to the HTML editor mode back and forth, the HTML code is parsed and the blank spaces are ignored. And the parsing is done automatically even after simply uploading an image to the entry in Blogger. You can check this for yourself by creating an entry with lines of code such as the following (using the normal editor mode, not the HTML mode):

    ———-

    Math equations (non-LaTeX)in Blogger using bigger than and less than symbols: If x < i then the value of the wave function oscillates in such a way that for m 5 for the probability distribution when h < a in the limits of the boundary conditions.

    ———–

    At the very least, it is unlikely the symbols will be printed when the entry is actually seen in a Mozilla Firefox browser, but then this seems to be more of an issue with Blogger where these two symbols seem to have been reserved for the HTML functions. Indeed, even if you are not doing any math at all in an entry, using liberally the symbols may wreak havoc on the work being posted. (I have tried to use the Unicode simbols instead of the ordinary ASCII , but Blogger defeats this attempt and still manages to grab those two symbols for HTML interpretation of its HTML code even if you don’t go into HTML editing mode, and this will show up after the work is posted online).

  27. Armando Martinez

    Guess what! It seems that even this WatchMath.com comments posting editor bombs when trying to get a less than or bigger than symbol printed. I found it out when the reply I posted got misinterpreted, a section that had a “less than” symbol followed by “for the probability distribution when h “less than” a in the limits of the boundary conditions…”. What would have been an italics directiv (a minus symbol followed by a letter i) did not get misinterpreted, the less than symbol managed to get printed followed by the letter i. But if you notice, even in your reply when you probably tried to print a “less than” b, everything got printed boldface afterwards, which I don’t believe was the original intention. Blogger is even worse in this respect. However, I still believe that Blogger has a combination of symbols reserved for immediate use prior to the “less than” and “bigger than” symbols to prevent them from being grabbed for HTML interpretation. If they do, it may be one of their best guarded secrets. Perhaps someone here at WatchMath can discover that well-guarded Blogger secret, if it exists at all.

  28. ateixeira

    Just go to my blog. If you download the package I made available everything works fine as long as you put the spaces in the original .tex file.

    I changed this script a little bit (http://lucatrevisan.wordpress.com/latex-to-wordpress/) in order for it to work on blogger.

    If you are used to writting in LateX I think this will work fine just for you. You get to write your posts in LateX and hence to save a copy of them, you save a lot of time, and the final result is very reader friendly.

  29. watchmath

    I forgot what I meant by that :) .
    The default step up of mathtex software (not the mathtex script) is in display style mode. The command $$\LaTeX $$ will produce everything in display style.
    The mathtex.js script put the \textstyle command at the beginning of every math symbols written using the command $\latex$. So then when you put a display style command it won’t change anything. For example if you write say $a^2$, the script change it into $\textstyle{a^2}$. So then if you write something like $a+\displaystyle \frac{a}{b}$, the script will change it into $\textstyle{a+\displaystyle \frac{a}{b}}$ which resulted in is still written in textstyle mode.

  30. watchmath

    I type “for then ” in the comment of http://www.watchmath.blogspot.com without problem.

  31. watchmath

    But yes if you don’t the put the math inside dollars, the less than i notation will interpret it as the italic tag.

  32. watchmath

    I see the problem now. When I posted on the comment it works fine but it gives me problem when I post the notation on an article.
    In this case I can’t help you because that is how blogger works, it will right away check if it has an html tag.

    The solution I guess is to be aware of that problem and avoid using or or other predefined html tag.

    ======
    (updated)
    I found something, you can get away with your problem by writing < using \textless and writing > using \textgreater. You can see how it works on http://www.watchmath.blogspot.com.

  33. ateixeira

    Oh I see.In that case is it possible to change the default of mathtex to \displaystyle in any place of the java script you provided?

  34. watchmath

    Yes.
    I believe that the older mathtex.js script is using the \displaystyle as the default mode.

  35. ateixeira

    In that case I’ll give a try. Thanks for all your help.

  36. Alan

    Hello, I’m having a issue with the latex script. Actually, this is the first time that, istead of latex equations I got a blank box with red text saying: “(4)Can’t mkdir cgi-bin/tempnam/ work diretory: check permissions. See mathtex.html#message4″. How can I fix this? Thanks

  37. watchmath

    Yes, it seems that the mathtex server in cyberroadie is stop working. I’ll take a look into this later.

  38. Alan

    I appreciate your effort. Thanks for the answer.

  39. Florence

    Hello Alan

    I had the same problem as you. It is now resolved. So, I changed the slashes (\) in dollars ($) when I was writing LateX and I used Firefox instead of Internet Explorer and Google Chrome.

    Good luck

  40. Insérer des équations mathématiques dans un blog

    [...] au site “Les inclassables mathématiques” pour le tuyau, ainsi qu’au site watchmath.com (en anglais) pour le code [...]

  41. Dan

    Hi, I’ve been trying to use your script for some time now on http://dihedralsoup.blogspot.com/ and I’m having a few issues when testing between browsers. I seem to have no problems in Firefox, but Chrome and IE7 things don’t work as expected. In Chrome, when the page initially loads the rendering of the LaTeX is very inconsistent – that is that sometimes all of the images render and sometimes none of the images render. In Chrome, though, it seems to always render just fine if I refresh the page. Then in IE7 only the very first instance of LaTeX on a page will render and the rest of them won’t. Any insight would be excellent, thanks!

  42. David

    Hello WatchMath,

    Thank you to have a look and post a comment in my blog : http://lesmathematiquesausecondaire.blogspot.com/2010/03/comment-utiliser-les-regles-de-calculs.html#comments

    May I ask you if you know more details about what it works or not with Blogger and Latex ?

    You see I wrote two posts about solutions I find about “tabular” codes, but if you can give me a link where someone has already fixed this questions, I will be gratefull. No problem if it’s in english…

    If not, I will continue to post with my weak math’s production on my blog. I hope it will help others, even it is in french ?

    My question in the moment is to introduce \multicolumn and \multirow codes in Blogger, and it is not too easy. But I progress …

    Regards.

    a French math’s teacher

  43. Giniu

    I have some issues with this, the http://latexonblogger.googlegroups.com/web/mathtex3.js or http://latexonblogger.googlegroups.com/web/mathtex4.js are constantly changing, each time there is new “key”, my page stops working. Is there some other, reliable but also stable place where I can link to mathtex*.js? If latexonblogger would have google code page, it should not change url of published files, and no key should be needed, so you could make project for it there? Thanks in advance for answers!

  44. swagat

    I could not get the script working on my blog. I followed the steps. Is there anything I missed out? It just prints the latex on the post.

  45. Robert Duval

    Do you need to have latex installed in the server?

  46. JuanPi

    Hi,
    Thanks a lot for your code!
    I have use it in my blog, but every time write an inline equation, either with $, I get a newline. Could you tell me how to solve this issue. Take a look
    http://lavidasegunjuanpi.blogspot.com/2010/06/blinn-phong-halfway-vector-and.html (click on the English version)

    It may be that there is a conflict with the Javascript I am using to hide and show the divs in different languages?

    Thanks!
    JPi

  47. Yann

    Hi,
    Thanks a lot for this very useful plugin. However, like some of other bloggers, it doesn’t seem to be working, unfortunately, despite having followed the installation steps one by one… Is there still an issue with the server the plugin is hosted on, or does the malfunction come from my side?
    Thanks a lot for your help!
    All the best,
    Yann. ;o)

  48. Akash Kumar

    Hello WatchMath,

    Thanks for it was you who once helped me setup latex on my blog.

    It seems that the mathtex3.js server is also down. If you see this message and find the time (and patience) to again let me know the remedy to this solution, please let me know the same.

    My blog’s life hangs in balance :(

    Best Regards
    -Akash

  49. Akash Kumar

    Hello WatchMath,

    Thanks to you for it was you who once helped me setup latex on my blog.

    It seems that the mathtex3.js server is also down. If you see this message and find the time (and patience) to again let me know the remedy to this solution, please let me know the same.

    My blog’s life hangs in balance :(

    Best Regards
    -Akash

Leave a comment

Feed

http://watchmath.com/vlog / New Installation : Latex on Blogger/Blogspot