<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Viscous</title>
    <description>The latest articles on DEV Community by Viscous (@viscous).</description>
    <link>https://dev.to/viscous</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4236755%2F4d28bfbf-2364-472b-8699-95c556493a1c.png</url>
      <title>DEV Community: Viscous</title>
      <link>https://dev.to/viscous</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/viscous"/>
    <language>en</language>
    <item>
      <title>I built a free LaTeX equation editor with Astro, React and KaTeX</title>
      <dc:creator>Viscous</dc:creator>
      <pubDate>Tue, 10 Nov 2026 10:10:31 +0000</pubDate>
      <link>https://dev.to/viscous/i-built-a-free-latex-equation-editor-with-astro-react-and-katex-21jp</link>
      <guid>https://dev.to/viscous/i-built-a-free-latex-equation-editor-with-astro-react-and-katex-21jp</guid>
      <description>&lt;p&gt;I was tired of compiling a whole LaTeX document just to check one fraction. So I built Latex Equation Editor. It's free, runs in the browser, and needs no login.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Type LaTeX code or edit the rendered math directly&lt;/li&gt;
&lt;li&gt;Both stay in sync&lt;/li&gt;
&lt;li&gt;Live preview with clear error messages&lt;/li&gt;
&lt;li&gt;Copy as LaTeX, MathML, KaTeX HTML, PNG or SVG&lt;/li&gt;
&lt;li&gt;Saves your equations in the browser only&lt;/li&gt;
&lt;li&gt;14 languages&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Astro&lt;/strong&gt; for the content pages (fast static HTML)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React&lt;/strong&gt; for the editor, symbol palette and library&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KaTeX&lt;/strong&gt; to render the math&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MathLive&lt;/strong&gt; for the visual editing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CodeMirror&lt;/strong&gt; for the code panel with autocomplete&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS&lt;/strong&gt; for styling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IndexedDB&lt;/strong&gt; for the local library&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Things I learned
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Lazy loading the editor.&lt;/strong&gt; The editor is the heaviest part. The page loads first and the editor fills in a moment later. First load stays quick, even on slow phones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exporting images in the browser.&lt;/strong&gt; KaTeX renders to HTML, so I wrap it in an SVG, embed the fonts, and draw it to a canvas for PNG. You can set scale, color and background.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keeping code and visual editor in sync.&lt;/strong&gt; MathLive and CodeMirror both own the equation. I had to be careful about which one updates the other, or the cursor jumps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Translating symbol names.&lt;/strong&gt; All 14 languages translate the symbol names too, so people can search in their own language.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Latex Equation Editor: &lt;a href="https://latexequationeditor.com/" rel="noopener noreferrer"&gt;https://latexequationeditor.com/&lt;/a&gt; is live and free.&lt;/p&gt;

&lt;p&gt;What would you add? I read every comment.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>latex</category>
    </item>
  </channel>
</rss>
