Anyone know if this includes TikZ?
Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
21–30 of 32 posts
Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#22I love this use of wasm! I never really got the hang of LaTeX but I've really enjoyed Typst the past few years and even made a few books with it. Have you ever tried that or have thought on it?
Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#23I copy-pasted a random LaTeX doc from many years ago (I made sure I wrote it before 2020 so it did not use any new features not in TeX Live 2020), and upon compilation I got the error Font OT1/cmr/m/n/10.95=cmr10 at 10.95pt not loadable: Bad metric (TFM) file. on line 13017. The document had only 200 lines so this must be from a package. It was really not clear where the error was coming from. I guessed that it was c…
The TFM error usually means a font file wasn't available. However, the service worker validates the downloads before caching, so any error pages or empty bodies get rejected (which makes posoned cache unlikely), but a stale state may still be possible.
Hard refresh bypasses the service worker, I patched around that last month but apparently not well enough.
Also, better error logs and reporting is already on my ToDo-list, sorry for that.
Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#24Ctrl+S brings up the browser save as but also saves the document and recompiles. Ctrl+Enter puts in a new line and recompiles.
Can click compile of course, but that's not efficient.
Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#25Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#26Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#27I copy-pasted a random LaTeX doc from many years ago (I made sure I wrote it before 2020 so it did not use any new features not in TeX Live 2020), and upon compilation I got the error Font OT1/cmr/m/n/10.95=cmr10 at 10.95pt not loadable: Bad metric (TFM) file. on line 13017. The document had only 200 lines so this must be from a package. It was really not clear where the error was coming from. I guessed that it was c…
Can't tell much from those two lines, but if you open an issue with the document, or just provide the full compile log, I could dig into it. The TFM error usually means a font file wasn't available. However, the service worker validates the downloads before caching, so any error pages or empty bodies get rejected (which makes posoned cache unlikely), but a stale state may still be possible. Hard refresh bypasses the…
Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#28Great to see a FOSS version!
Re: Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
#29Usability to see changes live is a bit weird. Ctrl+S brings up the browser save as but also saves the document and recompiles. Ctrl+Enter puts in a new line and recompiles. Can click compile of course, but that's not efficient.
It compiles on its own a second after you stop typing, and there's also an "Auto" button next to "Compile" if you prefer to press Ctrl+Enter yourself.