Wednesday, 6 March 2019

CodeCogs

I noticed that Google Docs was using CodeCogs to render LaTeX into image gifs. CodeCogs at https://www.codecogs.com/latex/eqneditor.php provides an interface whereby LaTeX code can be generated quite easily together with an image of what the code would produce if rendered properly (and therefore to be used when the code can't be rendered properly). Here is the interface:

Figure 1: interface that meets the user on CodeCogs

The code can be copied into a document that interprets the LaTeX code and the result is as shown here --> \( \int_{0}^{1}x^3 dx=\bigg [\frac{x^4}{4} \bigg]_0^1\).

The image produced on the site can be simply dragged and dropped:


Alternatively, the HTML code can be inserted into the web page and the image called up from CodeCogs. The result is the same except for the pop up text box that appears when you hover over the image:



These sorts of services are useful for those who lack confidence in creating LaTeX code but there are limitations to what can be produced. There's no substitute for being able to code directly. One site that provides this facility is Overleaf, an online LaTeX editor. Projects that are created can be stored on the site and printed out if desired. The free plan only allows for solo use, no collaborators. There are paid plans that allow for collaboration and provided additional features such as synching with Dropbox and GitHub, full document history, track changes etc. Of course, if you're using a Mac like me, you can download the free program TeXShop to your computer and simply work from there, no online access required. Questions can be posed and solutions hopefully provided on StackExchange.

No comments:

Post a Comment