Most of this past week has been spent reformatting the AP-1 section of this site. I hadn't intended to, was just going to add some updates and shuffle some sections around to match the updated syllabus from College Board. However, this quickly turned into a nightmare job as the weebly editor was slowing down to the point of being unusable. After a long chat with the people at weebly, it was determined that the large pages of equations were the problem. This was partly discovered as the older pages which I had included the equations using Codecogs were the cranky ones, while the Mathjax ones that I have been doing since last Easter were running well. So, ended up dividing the AP-1 pages into smaller sub-pages and re-writing ALL of the equations.
So, what are the two methods:
CodeCogs
This is a website, www.codecogs.com, that you can use to create an equation and then gives you a HTML code that you can embed into your webpage. The equations look pretty good, if a little bit fuzzy. It turns out that it works by calling up the website, coding the equation to form a .gif image file and then downloads it into the editor. So the equation is actually an image that is uploaded to codecogs, and downloaded every time I edit the page. My website user's browsers just then downloads it as an image file along with everything else. It had been working well, but I suspect that as the codecogs server was being overwhelmed, it ran slow. It also highlighted the fundamental inefficiencies of the system. Not to mention that in order to look right I had had to add invisible dividers above and below each equation. As the CodeCogs system somehow didn't work on the blog pages when I was writing about Black Holes, I hunted for another method, which is far better.
So, what are the two methods:
CodeCogs
This is a website, www.codecogs.com, that you can use to create an equation and then gives you a HTML code that you can embed into your webpage. The equations look pretty good, if a little bit fuzzy. It turns out that it works by calling up the website, coding the equation to form a .gif image file and then downloads it into the editor. So the equation is actually an image that is uploaded to codecogs, and downloaded every time I edit the page. My website user's browsers just then downloads it as an image file along with everything else. It had been working well, but I suspect that as the codecogs server was being overwhelmed, it ran slow. It also highlighted the fundamental inefficiencies of the system. Not to mention that in order to look right I had had to add invisible dividers above and below each equation. As the CodeCogs system somehow didn't work on the blog pages when I was writing about Black Holes, I hunted for another method, which is far better.
MathJax
To use this system I had to install the free app into my weebly editor - which took maybe 2 minutes. Took me a bit longer to get the hang of using it though. The advantage is that the equations are far easier to include, the text block are not broken up, no dividers are required and the equations look far sharper when viewed on the final webpage. A disadvantage is that it is not possible to see what the equation actually looks like in the editor. The code that MathJax uses is not exactly the same as that from CodeCogs, but the differences are small. Which is a good thing as CodeCogs is probably the easiest way to figure out the LaTex code!
To use this system I had to install the free app into my weebly editor - which took maybe 2 minutes. Took me a bit longer to get the hang of using it though. The advantage is that the equations are far easier to include, the text block are not broken up, no dividers are required and the equations look far sharper when viewed on the final webpage. A disadvantage is that it is not possible to see what the equation actually looks like in the editor. The code that MathJax uses is not exactly the same as that from CodeCogs, but the differences are small. Which is a good thing as CodeCogs is probably the easiest way to figure out the LaTex code!
This page renders really nicely when the user opens the page on their browser:
WORD
So, all this work got me thinking whether there was a more efficient way to include equations into a WORD document. And it turns out that there is! Using the included Equation Editor has always been a bit painful and slow, although the equations look nice when it is finished. Turns out that if you open an equation editor box in WORD as normal, you can just type in the LaTex code directly and press ENTER when you have finished, which then compiles the equation. A lot quicker and less fiddly than the graphical method. This does not work on POWERPOINT though, so stuck with the normal method.
So, all this work got me thinking whether there was a more efficient way to include equations into a WORD document. And it turns out that there is! Using the included Equation Editor has always been a bit painful and slow, although the equations look nice when it is finished. Turns out that if you open an equation editor box in WORD as normal, you can just type in the LaTex code directly and press ENTER when you have finished, which then compiles the equation. A lot quicker and less fiddly than the graphical method. This does not work on POWERPOINT though, so stuck with the normal method.
GoogleDocs
This is somewhat harder. The built-in equation editor is very clunky, basic and doesn't produce good results, although given the advantages or sharing documents and that it is free is not a dealbreaker. There are some third party apps that you can "ADD ON" so be able to insert LaTex code to produce better looking equations but they are not easy to use and say unhelpful things like "require access to your google account"....
Top tip for using google docs built-in editor, use the TAB key to jump from one area to another. Especially useful as it is next to impossible to see the boxes.
This is somewhat harder. The built-in equation editor is very clunky, basic and doesn't produce good results, although given the advantages or sharing documents and that it is free is not a dealbreaker. There are some third party apps that you can "ADD ON" so be able to insert LaTex code to produce better looking equations but they are not easy to use and say unhelpful things like "require access to your google account"....
Top tip for using google docs built-in editor, use the TAB key to jump from one area to another. Especially useful as it is next to impossible to see the boxes.