
r/LaTeX

A C++23 hobby TeX engine I've been working on
I was reflecting on some of the recent posts to this subreddit -- the rise of vibe-coded overleaf clones, the crisis of faith post, questions that periodically come up about when and why latex is slow -- and was inspired to share a hobby project I've been working on for a while.
The tl;dr is that I've been working on a new TeX engine, built around the twin ideas of (a) trying to preserve the amazing legacy of TeX (i.e., the engine must be "TeX" in Knuth's sense of passing the trip test) and (b) thinking seriously about the demands of modern document authoring. I think LuaTeX is amazing (I use it every day!), and I simultaneously believe it is worth questioning the boundary between what lives in the macro layer versus what is handled by the engine itself.
To explore this, I've been developing a C++23 version of TeX82 that maintains strict TeX compatibility, while also natively using modern fonts, generating accessible pdfs, outputting directly to html, and doing at least some parts of document compilation in parallel. This engine is not quite ready for release -- out of respect for the existing ecosystem and Knuth's legacy of stability, I want to avoid rushing something out that causes fragmentation -- but I thought it might be a good time to start this kind of conversation.
I'd be interested to hear everyone's thoughts in the comments. I put together a short technical demo showing the parallel compilation and HTML output in action (link).
I made a speed-typing game for math, and I type it in my own shorthand to beat the clock (it outputs LaTeX)
I've been building a faster way to type math: a tolerant shorthand that resolves into LaTeX as you go. To stress-test it, I turned it into a game. An equation appears, you race to reproduce it.
https://i.redd.it/pat2cmc4h0bh1.gif
What you see me typing is the shorthand, not raw LaTeX. It commits to LaTeX under the hood, so the output is the real thing and the input takes fewer keystrokes.
My own times: integrals land around 6-7 seconds, limits a bit more once the \to, the bounds and a \frac stack up (7-8s). That's about handwriting speed, except the output compiles.
Here's where I need you. If you're fluent in raw LaTeX, how long does an integral or a limit take you from memory? That's the comparison I can't run myself, and it's the one that tells me whether this shorthand is worth anything.
It comes from MathCursor (a VS Code plugin); the game runs in the browser, so you can try it without installing anything: https://game.mathcursor.com
Yes, this overlaps with snippet setups (UltiSnips and friends). The difference I'm chasing is tolerance and disambiguation instead of fixed expansions, so fast, slightly-off typing still resolves to the structure I meant. Curious whether that's worthwhile, or whether good snippets already cover it. Roast welcome.
I made a free, local, offline, Typora-like visual and source editor for LaTeX
Hi r/LaTeX
You might know me from the TikZ and Visual LaTeX editor posts I made before.
Anyways, thank you so much to everyone who gave me valuable feedback, especially to the ones who spent their time interviewing with me.
I took the feedback and I made this.
Here are the features:
- Completely local and completely free (it does not require cloud hosting fees)
- Built for LaTeX specifically (rename, references, intellisense, spell check)
- Compile and PDF viewer
- Visual LaTeX editor (edit source or edit visually)
So why? What is the reason, and why should you use this over other visual editors?
- Very minimalist and designed for LaTeX
- Visual editing for tables with cell merging, aligned environments, etc.
- Visual editing for .bib files
- Edit LaTeX directly or visually
- Texpile combines both the Overleaf visual editor philosophy and the LyX philosophy. Texpile's visual editor is way more aggressive than Overleaf's (see the 3rd image for a comparison of 2 of the same document, Overleaf is on right)
- This better visual experience is achieved by using a parser to turn LaTeX code into an AST and making assumptions about macros. For most cases it works extremely well, and on some rough documents it will leave the code it can't analyze as it is.
Okay so a bit about myself.
Around 4 years ago I started Texpile as a fun project, initially named QuickQuill. The original idea was to make it easier for me to take math notes. It was offline, and I found LaTeX perfect for generating export PDFs. Over the next few years I added more features to get it on par with LaTeX features. And as part of my school's startup competition 8 month ago, I made the original offline idea into a SaaS and started posting here. It was only a few months ago that I took another fresh look at this project and realized I made way too much bloat. So here I am, and I hereby promise the desktop version will be local, no subscriptions, and free.
The app is not live yet as I am making a few finishing touches on it. So here I would like to ask you a few questions (since getting code signatured verified is quite a fortune):
Would you use the desktop app?
Is there anything you would like to see in the app?
Would you care if it is open source (licensed under AGPL) vs freeware? There are a lot of issues with open source now with AI agents everywhere.
Linking my GitHub for credibility: https://github.com/nullpointerexceptionkek
I am looking for published papers to use as reference/style guides.
Hello, some background info first (tl;dr below this paragraph): I am a Physics student (small chance I may choose to switch to purely math, I at least want to minor in math if possible) just finishing up my first year of college. I am starting Calc 4 over the summer (It's a quarterly school, so I think the more accurate thing to say would be multivariable calculus...? For clarification: last quarter's calc course began with sequences and series and wrapped up with calculus on vector-valued functions. The first lecture of this quarter introduced functions of several variables and partial derivatives.) I have am yet to take a linear algebra or differential equations course (although we brushed on these in Calc 2 with some basics- slope fields, Euler's method, easy separable equations). I will be taking both of those next year starting in Fall. I also have not actually had a physics course in college yet, as I will be taking the ones which require calculus prereqs. I will also be starting those in the Fall.
tl;dr: I am just starting multivariable calculus, and have not (yet) learned any linear algebra.
I want to start reading published mathematics papers, but I don't even know where to start to find papers to read. I am totally open to learning new things/fields/subjects. However, I need to at least find a jumping off point that I will actually be able to understand, and sources that are free (I have access to my college's online library, though, so I may be able to read things which typically aren't free if I can access them through that). Can anyone offer recommendations/guidance for me to find what I am looking for? If more info would help, I have two main motivators - see below.
I think math is cool, and I like learning about it lol.
I have written up almost all of my projects for calculus using LaTeX. I began by going into my first document completely blind, and have learned as I went along. I have learned a lot and I am fairly comfortable with it by now, but I would like to learn how to present ideas, structure/format/edit my documents, and overall just hone my skills to write the way a real mathematician would write a paper. I want a better understanding from the little things (like when to/when not to number equations, typical conventions for page numbering/title pages/section and subsection numbering conventions, etc.) to the bigger things (like overall structure of my writing/prose, when should I be adding more detailed explanation/when is it acceptable or preferable to omit detailed explanation, etc.), and I think the best way to get a feel for these things will be by actually reading papers that hold up to the standard for publication. I know that publication standard writing is not actually necessary for these projects (I'm pretty sure I'm the only student who has even typed them up at all), but this is a personal goal of mine.
Thanks in advance for any advice!
Made a free iOS app to open and read raw Markdown (.md) files on iPhone/iPad — handy for peeking at Logseq pages outside the app
Logseq stores everything as plain .md files, but if you ever open one of those files directly on iOS (from Files, iCloud, Dropbox, a backup, etc.) you just get raw text. I built a small viewer to read them rendered on a phone.
Md Preview:
• Renders GitHub-Flavored Markdown — headings, tables, task lists, footnotes
• Code blocks with syntax highlighting, plus LaTeX math and Mermaid diagrams
• Opens .md / .markdown / .mdx / .rmd / .qmd from Files or the Share Sheet
• 100% on-device — no account, no uploads, no ads, no subscriptions
Free on the App Store: https://apps.apple.com/app/id6760341080
Details: https://markdown.cybergame.ai/
Not a Logseq replacement at all — just a quick way to read loose .md files when you're away from the desktop app. Curious how you all read your graph on the go.
What frustrates you most about Overleaf/LaTeX workflows?
Hi everyone,
I’m a CS PhD student exploring how researchers currently write papers in LaTeX, especially with tools like Overleaf, VS Code, ChatGPT/Claude, Zotero, Git, etc.
Please fill this short 2–3 minute survey about LaTeX workflows, AI usage, collaboration, citations, formatting, and general pain points: https://forms.gle/n6bmsN7S1trdgv95A
I’m not trying to sell anything, just collecting feedback from people who actually write papers/reports/theses in LaTeX. I’d also love comments here: what is the one thing about your current LaTeX workflow that annoys you the most?
Thanks for your time!
What are biggest slowdowns in LaTeX (compilation speed)
The benchmark posted recently got me thinking. Although kids these days don’t know how good they have it (LaTeX runs used to take minutes, not seconds), modern typesetting engines like Typst are faster due to (presumably) shedding a lot of historical baggage.
If we assume no change to the actually page layout algorithms in LaTeX (there are good reasons they will always require multiple passes), what are the main areas for potential improvement in the future?
* the monolithic texmf structure? File lookup is cached so shouldn’t be *too* slow, but I remember in the past when installing minimal TeX Live installations they seemed to be snappier. Do we need to cull unneeded files from texmf?
* many file I/O operations? I remember compilation speeds improving significantly when we switched to SSDs everywhere. Should third party packages try harder to use docstrip to bundle their code into single files only? Should there be a dynamic caching step so if the preamble doesn’t change it can be loaded from a precompiled dump? Images can be slow to load, are there steps in this process that could be multithreaded? (I.e., LaTeX only needs to know the size, it’s only the PDF embedding that requires the full content.)
* the TeX machinery itself? Switching from TeX code entirely isn’t feasible in the short term but is there something the engine can do to make the macro expansion language more efficient? A better hashmap? Some kind of JIT system that attempts to “compile” TeX code before executing it?
To compile or not to compile
Hi guys,
I'm currently trying to upload a revised paper to CAIE. There's two options: revised manuscript (unmarked, editable source) and revised manuscript (marked up).
And no matter what I do, the .Tex for the unmarked won't compile, while the marked one compiles no problem.
Is this a journal error? Or an understanding error on my part? The only difference between the .Tex files is the markup in-text.
I made a free TikZ library for papers (icons + editable architecture templates)
I write papers in LaTeX and dread making the conceptual figures — architectures, pipelines, system diagrams. Hand-writing TikZ is slow; AI generated diagrams are hard to edit and had to get vector quality.
OpenTikZ is the "Flaticon for academic TikZ" — conceptual/overview figures (system block diagrams, neural-network architectures, pipelines, flowcharts) for your papers. Four ways to use it:
- Use icons — grab a single icon, no AI needed: copy its .tex (or download SVG/PNG) and \input it.
- Edit a template — tell the agent the change; it edits the template and verifies it compiles.
- PNG → TikZ — hand the agent a figure image; get editable TikZ back.
- Describe → TikZ — describe a figure in words; the agent drafts it from the library.
Content is CC0 (use it in any paper, no attribution); tooling is MIT.
Gallery: https://opentikz.org
Source: https://github.com/opentikz/opentikz
It's early (30+ figures so far), so I'd really value feedback~
Why is Context (Luametatex) so underrated?
I love Context. Here’s why.
I used LaTeX for a long time. I’ve come to appreciate it and tried to master it.
But when I discovered Context a few years ago, I was blown away by how simple and flexible it is, how detailed it is, and (at least in my opinion) how much better it is than LaTeX.
I highly recommend checking it out and giving it a try. There are so many reasons to prefer it—if only because:
- it takes just two lines to harness the full power of the language (starttext and stoptext), with no packages and no long, inconsistent settings.
- Everything is defined and configured in exactly the same way.
- The complete Metapost language for drawing is fundamentally included, and TikZ is easy to implement.
And I haven’t even mentioned XML and filtering options yet.
The math typesetting is far superior to anything LaTeX could ever offer. Also, before I forget: Lua is fully integrated.
Let me be clear: I see no reason whatsoever—other than “it’s the industry standard”—why one wouldn’t use Context instead of LaTeX (which, in my opinion, is clearly outdated once you’ve tried Context).
TeXLive 2026 update on LaTeX build systems benchmark
Three years ago I created a benchmark comparing LaTeX build systems on an IEEE conference template using pdflatex, BibTeX + makeglossaries. I've now updated it with fresh numbers on TeXLive 2026.
What's new in 2026
llmk— clean minimal config, but it placed last at 5.62 s, roughly doublelatexrun.max_combo— precompiled preamble + dvi path + draftmode on early passes + -interaction=batchmode. New fastest at 2.23 s: 20% faster than the naive baseline, 40% faster than latexmk.
TL;DR rankings
| Winner | Category |
|---|---|
max_combo |
Raw build speed (2.23 s) |
latexrun |
Cleanest stdout |
latexrun + ramdisk + precompiled preamble |
Overall (Eurovision scoring) |
https://blog.martisak.se/latex-build-systems-comparison/
#LaTeX #AcademicWriting #ResearchTools #ReproducibleResearch
Font package, and disabling feature in main document
Hi,
We packaged a font so it can be reusable in different documents (see below).
Is it the right way to do it? Comments welcome. The package is then used by simply adding
\usepackage{ourfont}. We tried to look at various font packages but it seems to vary much between implementations...In a document (so without modifying the package), we want to disable ligatures for non-italic, or maybe just disable the Discretionary ones, tbd. Again, what is the right way to do this?
This font (legally) comes from Adobe and is split into several .otf files for weight/style/optical sizes, hence the complexity of the loading...
This is first way we do this, and fontspec seems to offer many solutions. All comments welcome.
Thanks.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ourfont}[2026-06-28]
\RequirePackage{fontspec}
\setmainfont{OurFont}[
NFSSFamily = OurFont,
Numbers = {OldStyle,Proportional},
Ligatures = {Common,Discretionary},
UprightFeatures = {
Font = *,
SizeFeatures = {
{Size = -8.9, Font = *-Capt},
{Size = 9.0-14.9, Font = *},
{Size = 15.0-22.9, Font = *-Subh},
{Size = 23.0-, Font = *-Disp},
},
},
ItalicFeatures = {
Font = *-It,
SizeFeatures = {
{Size = -8.9, Font = *-ItCapt},
{Size = 9.0-14.9, Font = *-It},
{Size = 15.0-22.9, Font = *-ItSubh},
{Size = 23.0-, Font = *-ItDisp},
},
},
BoldFeatures = {
Font = *-Bd,
SizeFeatures = {
{Size = -8.9, Font = *-BdCapt},
{Size = 9.0-14.9, Font = *-Bd},
{Size = 15.0-22.9, Font = *-BdSubh},
{Size = 23.0-, Font = *-BdDisp},
},
},
BoldItalicFeatures = {
Font = *-BdIt,
SizeFeatures = {
{Size = -8.9, Font = *-BdItCapt},
{Size = 9.0-14.9, Font = *-BdIt},
{Size = 15.0-22.9, Font = *-BdItSubh},
{Size = 23.0-, Font = *-BdItDisp},
},
},
FontFace = {l}{n}{
Font = *-LtDisp,
},
FontFace = {l}{it}{
Font = *-LtItDisp,
},
FontFace = {sb}{n}{
Font = *-Smbd,
SizeFeatures = {
{Size = -8.9, Font = *-SmbdCapt},
{Size = 9.0-14.9, Font = *-Smbd},
{Size = 15.0-22.9, Font = *-SmbdSubh},
{Size = 23.0-, Font = *-SmbdDisp},
},
},
FontFace = {sb}{it}{
Font = *-SmbdIt,
SizeFeatures = {
{Size = -8.9, Font = *-SmbdItCapt},
{Size = 9.0-14.9, Font = *-SmbdIt},
{Size = 15.0-22.9, Font = *-SmbdItSubh},
{Size = 23.0-, Font = *-SmbdItDisp},
},
},
]
\def\rmdefault{OurFont}
\renewcommand{\familydefault}{\rmdefault}
I got so annoyed fighting with LaTeX and references that I built an open-source toolkit to automate the research paper workflow. Hope it saves someone a weekend.
Hey everyone,
Like a lot of you, I realized I was spending 20% of my time actually doing research and 80% of my time fighting with LaTeX errors, managing .bib files, tracking down lost citations, and trying to format my drafts.
Over time, I started building workflows to automate and streamline every single phase of the process. It eventually turned into a massive personal library of 40+ specific skills, scripts, and workflows covering the entire research paper lifecycle.
I just made the whole GitHub repository public so anyone can use it.
Here is the repo: https://github.com/ShaishavMaisuria/research-paper-lifecycle-skills
It covers 40+ areas, but the main highlights include:
- The Setup: Clean, pre-configured directory structures so you never have to set up a
refs.bib, figure folder, or main.texfile from scratch again. - The Execution: Automation scripts and workflows for literature reviews, gathering citation metadata, and structuring your drafts.
- The Formatting (No more LaTeX crashes): GitHub Actions that automatically compile your files into a clean PDF every single time you push a commit.
I built this to solve my own headaches, but figured there are probably a lot of people stuck inside writing papers this weekend who could use a cheat code.
It is completely free and open-source. Feel free to use it for your next paper, fork it, or modify it for your specific field. If you think I missed a skill or have ideas for what I should add next, let me know in the comments or drop an issue in the repo!
Back to writing.
Thanks
LaTeX for Lawyers
Hello all, a long time back I posted here asking for input into creating some document templates that I could use in my legal practice. While I appreciated the feedback I didn't have the time to get my LaTeX up to the level to implement what I wanted.
Enter Claude Code...
Thanks to claude and some direction from me I now have a small and growing set of templates that I use for my legal practice. If you're interested they're here:
https://github.com/mferrare/mflp-latex-public
I couple things I want to say.
I came across LaTeX when I was a Unix admin at a university here. 20 years later I went to law school and I decided to write my papers in LaTeX on the back of how enthusiastic the (Physics) postgrad students were during my admin days. Turns out that Will Hardy had written an Australian Legal Citation style which I forked and modified for my use. I didn't look back! Writing my student papers in LaTeX was a breeze and Bibtex especially was great. I saved days compared to other students who were trying to manage their citations manually (this is in 2011).
Anyway, ever since I've always wanted to try LaTeX in legal practice. I just started my own practice this year and so now's the chance. Thanks to Claude Code I could do way more quickly what would have taken me months manually and now I have this small set of styles. I don't know why but for some reason my mind is clearer when writing documents in VS code instead of Word (or LibreOffice in my case). I think it's the lack of clutter and the lack of the need to futz around with styles and formatting.
So, thanks Claude Code!
All that said, I'd be interested in your feedback. Claude's been transformative for me, mainly because I can now write in hours what would have taken me weeks in the past. I'd be interested to know from 'real' LaTeX people how it went and any suggestions for improvements would be most welcome.
Also, if there are any other lawyers using LaTeX leave a comment! I'm almost certain I'd be the only lawyer in my state that uses it, maybe even in my country.
Chemfig help
How do i vertically adjust the arrow position in order to go from A to B?
\documentclass{article}
\usepackage{mhchem}
\usepackage{chemfig}
\setchemfig{atom sep = 2em}
\usepackage{geometry}
\geometry{left=2cm, right=2cm, top=2cm, bottom=2cm}
\begin{document}
\section{}
\schemestart
2 \chemfig{CH_3-CH(-[6]Br)-CH_2-CH_3} \+ \ce{2Na}
\arrow{->}
\chemfig{CH_3-CH_2-CH(-[6]CH_3)-CH(-[6]CH_3)-CH_2-CH_3}
\+ \ce{2NaBr}
\schemestop
\section{}
\schemestart
\chemfig{CH_3-CH_2-CH_3} \+ \ce{Br2}
\arrow{->[h$\nu$]}
\chemfig{@{c1}CH_3-CH(-[6]Br)-CH_3} \+ \ce{HBr}
\schemestop
\end{document}
I'm a high-school aeronautics teacher and I went down a LaTeX rabbit hole — ended up building an elegant notes theme. Sharing it.
I teach Aircraft Structures at a technical high school, and I write all my course material in LaTeX. What started as "let me tweak the colors a bit" turned into a full drop-in theme over a few weekends.
It's called Skywrite. The idea: technical notes that are actually pleasant to read. A cool blue-grey "drafting table" palette, colour-coded callout boxes (definition / theorem / proof / example / intuition / warning…) each with its own hand-drawn TikZ icon, a monograph-style cover, part dividers that open like book chapters with a big Garamond chapter number, and a matching pgfplots style so the graphs don't clash.
A few things I'm oddly proud of:
- Works on pdfLaTeX, XeLaTeX and LuaLaTeX — it detects the engine and loads fonts accordingly, so no "wrong compiler" headaches.
- Light and dark modes, five accent colours, Italian/English labels.
- A
paper=whiteoption for when you actually have to print and want to spare the toner. - One self-indulgent detail: an automatic coffee-stain on the first section. Because of course.
One .sty file, a worked example, and a guide. Drop it next to your .tex, set one line, compile.
Repo (MIT licensed): https://github.com/braucci/skywrite
Happy to hear feedback — especially the rough edges. First time sharing something like this.
How to track changes latex
Is there a something like githubs track changes between versions but for instance can realize that there is absolutely zero difference in the latex output of what is below?
I found a tool that converts LaTeX math into realistic handwritten notes — great for studying and physical notebooks
Hey r/LaTeX,
Been using LaTeX for my university math notes for a while now, and I recently ran into a problem: I love the precision of typeset math, but my professors sometimes expect handwritten submissions, and my actual handwriting when copying equations is... rough.
I stumbled across aipen.ink and it's been genuinely useful. You paste in text or math (including LaTeX-style expressions), and it generates realistic handwritten output you can export as PDF or SVG. The math rendering looks like actual pen-on-paper notation, not some ugly font substitution.
A few things I liked:
- PDF/SVG exprot means you can embed the handwritten output back into other documents
- It handles math symbols surprisingly well — fractions, integrals, Greek letters
- Custom fonts let you pick a style that matches your own handwriting somewhat
It's not a replacement for actual LaTeX typesetting, but for situations where you need the look of handwritten notes from clean LaTeX source, it fills a weird gap.
Link: aipen.ink
Anyone else found creative ways to bridge the gap between LaTeX documents and handwritten stuff? Curious if people are doing this for exam prep, physical notebooks, or something else entirely.
Should I learn a newer, LaTeX-like program?
Lurking around this sub I have heard that latex is very old and slow for big projects, so I was wondering if there was another program that was more likely to be used in future industry that I should learn? If possible I would like to be able to code it within an IDE so I am not tied to a website or subscriptions. Thanks!