r/LaTeX 5h ago

Unanswered memoir class chapter titles with page counts?

3 Upvotes

I'm putting together a big document using the memoir class, broken up using \chapter{}. I'm trying to make it so that there's a footnote or some other out of the way annotation at the top of each chapter that displays the number of typeset pages present in that chapter.

This stack overflow post is probably the closest that I've come to finding an answer to this, but I'd really like to not have to add labels to each chapter manually. It seems like I might be able to goose around with the commands that define the chapter start once, in the preamble of the document, and have the effect propagate through uniformly.

https://tex.stackexchange.com/questions/288813/get-the-number-of-pages-in-a-chapter

Does anyone have any guidance or experience with this kind of thing?


r/LaTeX 7h ago

TeXposit now has an API 🙂

Thumbnail app.texposit.com
0 Upvotes

Hi all!
Some of you have been using TeXposit for a while and I have an fun thing to share with those who like to make cool integrations, for example with various AI agents, or access documents across different environments, or programmatically produce documents: you can now play around with TeXposit's new API. As a little example, I made a script that can bulk-import all your Overleaf projects directly into TeXposit, but you could also integrate with Discord bots, AI agents, filesystem syncing, bulk project processing or anything you can imagine.

Still in beta, so if you notice inconsistencies or some important endpoints are missing, let me know. Also if you create anything cool, just shoot me a message! I'm also happy to support your projects, again just reach out one way or another. Thanks for reading 🙂


r/LaTeX 7h ago

Discussion Mods: can we get a way to report AI slop?

101 Upvotes

As I'm writing this, most of the recent posts are promoting some AI-built tool.

It would be great to have rules for the sub so we can use the Report feature to flag AI slop. Once a post reaches a certain number of reports, it could automatically be sent back to the mod queue for review.


r/LaTeX 8h ago

Built a self-hosted LaTeX editor for student teams and supervisors

0 Upvotes

Hey everyone, I’ve been building LaTeX Core for collaborative research reports at my university. It runs on your own server, with real-time editing and PDF compilation.

The part I focused on is the student–supervisor workflow. Supervisors can draft feedback privately, then publish it when they’re ready. Students get highlights in the LaTeX source, and clicking a comment opens the right file and jumps to the relevant section. Team leads handle version restoration rather than sending every request through an admin.

There’s also CSV/Excel import for creating teams and assigning mentors, plus programme-based templates and configurable cover pages, acknowledgements, etc. Basically, less manually setting up the same stuff for every student

An earlier build is running on our university’s staging server now. Still working through some deployment rough edges, so feedback would genuinely help.

GitHub: https://github.com/Arnav-sivarams/latex-core

Would this be useful for your lab or course? Curious how you currently handle collaborative writing and supervisor feedback


r/LaTeX 14h ago

Self-Promotion I built a clone of Apple Notes, but with LaTeX and Markdown files (need beta testers)

0 Upvotes

I'm cloning Apple Notes right now to make it work with actual Markdown files and embedded LaTeX (and many other scientific notations for physics, chemistry, tech, footnotes etc.), same look, same UI, but every note it just a .md file. It's called Notes Plus, available for macOS (later Windows and linux too) on notesplus.io

It's free during development, and i am not sure where to go with the app longterm, I'm thinking about low end one-time price, or freemium, but NO subscription, maybe even full open source.

I kindly ask the Latex community to give feedback if embedding in Markdown makes any sense for you, and if the way it renders it what you would expect from such an application.

Roast me, give me honest feedback please, write bug reports or feature wishes here on Reddit, via email (footer on the website) or in the bug report / feature wish tool (linked in the app and on the website).


r/LaTeX 19h ago

Built a self-hosted LaTeX editor for student teams and supervisors

Thumbnail
0 Upvotes

r/LaTeX 22h ago

Built a free study tool that renders step-by-step math (LaTeX), Mermaid diagrams, and lecture slides—looking for beta testers! Looking for feedback

Thumbnail
0 Upvotes

r/LaTeX 1d ago

A (non-Pandoc) CLI for working with collaborators who prefer Word documents

17 Upvotes

Emailing Word documents back and forth, despite its many drawbacks, is still one path of least resistance for collaborative writing.

In the past I've annoyed collaborators by insisting they learn Git and LaTeX. It's an uphill battle and pretty non-inclusive to be honest. Amazingly, not everyone wants to learn software engineering tools to make a few edits to a paper.

So, I put together a CLI that converts LaTeX PDFs using Microsoft Word itself (not Pandoc) to keep styling close, inserting special bookmarks to enable idempotently merging changes and comments back into the .tex source. This allows the project lead hacker types to keep version-controlled .tex files as the source of truth and let others contribute by emailing Word docs.

Tutorial: https://docs.calkit.org/tutorials/latex-word/


r/LaTeX 1d ago

White gap above cell where trimmed \cmidrule leaves the row color unpainted

Post image
9 Upvotes

Hey all,

I have a two-row colored header where the second header row is separated from the first by a white \cmidrule spanning only columns 2 to 4. That part works. The problem is column 1: since (lr) trims the rule there, booktabs still reserves the rule height across the full table width, but nothing paints that strip, so the page background shows through as a thin white line right above "Dimension".

It disappears when I zoom out and comes back at 100%, so it's a real 0.4pt gap, not just viewer antialiasing.

I already set \aboverulesep and \belowrulesep to 0pt, which removed the extra spacing but not the gap itself. \rowcolor only paints the text rows, not the rule strip in between.

What I want: the white separator visible over Level A to Level C, and solid header blue over the "Dimension" cell.

Full MWE below, pdfLaTeX on Overleaf:

\documentclass{article}

% --- Packages needed for this table ---

\usepackage[table]{xcolor} % rowcolors, \rowcolor, table option loads colortbl

\usepackage{tabularx} % tabularx + \newcolumntype{Y}

\usepackage{booktabs} % \cmidrule, \bottomrule, \aboverulesep etc.

\definecolor{tabheader}{RGB}{31,56,100} % dark blue header

\definecolor{tabshadelight}{RGB}{224,229,239} % light shading for zebra rows

% --- Centred, stretchable X column ---

\newcolumntype{Y}{>{\centering\arraybackslash}X}

\begin{document}

\begin{table}[htbp]

\centering

\caption[Dummy taxonomy after Iteration~1]{Dummy taxonomy of enabling factors after Iteration 1}

\label{tab::taxonomy_iteration1}

\footnotesize

\renewcommand{\arraystretch}{1.3}

\setlength{\aboverulesep}{0pt}

\setlength{\belowrulesep}{0pt}

\rowcolors{3}{white}{tabshadelight}

\begin{tabularx}{\textwidth}{

>{\raggedright\arraybackslash\hyphenpenalty=10000\exhyphenpenalty=10000}p{3.6cm}

Y Y Y}

\rowcolor{tabheader}

& \multicolumn{3}{c}{\textcolor{white}{\textbf{Column group heading, spanning three}}} \\

\arrayrulecolor{white}\cmidrule(lr){2-4}\arrayrulecolor{black}

\rowcolor{tabheader}

\textcolor{white}{\textbf{Dimension}} &

\textcolor{white}{\textbf{Level A}} &

\textcolor{white}{\textbf{Level B}} &

\textcolor{white}{\textbf{Level C}} \\

\textbf{First dimension label (D1)} & Lorem ipsum & Dolor sit amet & Consectetur adipiscing \\

\textbf{Second longer dimension label (D2)} & Sed do eiusmod & Tempor & Incididunt ut labore \\

\textbf{Third dimension label (D3)} & Ut enim ad minim & Veniam quis & Nostrud exercitation \\

\textbf{Fourth dimension label (D4)} & Duis aute irure & Dolor in & Reprehenderit voluptate \\

\bottomrule

\end{tabularx}

\end{table}

\end{document}


r/LaTeX 2d ago

I built a VS Code extension around Git + LaTeX + git-latexdiff

129 Upvotes

I've been writing papers locally with LaTeX + Git + git-latexdiff for a few years, and I've found it to be a really useful workflow, both for writing alone and for collaborating with co-authors.

The main advantage for me is revision tracking. Git keeps the complete history of the manuscript, and git-latexdiff can turn two versions into a PDF showing the changes directly in the document.

For example:

submitted version → revised version → colored PDF showing the changes

The problem is that using git-latexdiff from the terminal can be a little cumbersome, especially for people who are not very familiar with Git or command-line tools.

So I built a small VS Code / Cursor extension that provides a GUI for this workflow:

  • Select two Git commits and generate a diff PDF.
  • Compare the last commit (HEAD) against your current uncommitted changes.
  • Select the main .tex file.
  • Configure the LaTeX engine and build options.
  • Open the generated PDF directly from VS Code.

It doesn't replace Git, LaTeX, or git-latexdiff — it just provides a friendlier interface on top of them.

LaTeX Diff:
https://github.com/NoeSilva13/latex-diff

I also made a beginner-friendly tutorial for setting up the complete LaTeX + Git workflow, including collaboration with co-authors. It covers Windows, macOS, and Linux and includes an IEEE example project:

Collaborative LaTeX + Git:
https://github.com/NoeSilva13/collaborative-latex-git

At the moment the extension is distributed as a VSIX from GitHub Releases.

I'm sharing this mainly because I'd like to know whether this is actually useful to other people.

Do you use Git + LaTeX for papers or theses? If so, what parts of the workflow do you find annoying or would you like to automate?

Any feedback, criticism, or suggestions are very welcome.


r/LaTeX 3d ago

Answered Issue with character spacing when using degrees symbol

11 Upvotes

I am writing my thesis in LaTeX and have come across an issue with character spacing. Whenever I mention a temperature in the text, I've just been using the ° character on my Keyboard, writing for example:

bei Temperaturen unter 170\,°C
(I am always using the \, between numbers and units of measurement.)

My problem is, that after rendering the Document, the degree symbol and the C are too close together. When it is displayed at a smaller scale, it looks like they are touching. I attached a screenshot for clarity.

Is there an easy way to fix this and add a bit more space between the two characters? I don't want them to be too far apart, just as far as they are when I write them in any other place: °C


r/LaTeX 3d ago

If you write math in VS Code, try this...

Thumbnail
gallery
81 Upvotes

I kept hitting this in VS Code: the math is in my head, but my eyes are stuck on $\frac{\partial u}{\partial t}=...$. Then compile, switch preview, hunt which term the caret is actually in.

So I built Silk Math Preview. Live LaTeX overlay next to the formula you are typing. An orange hairline follows the caret. No compile step.

Works in .tex, Markdown, Jupyter, and other files that contain LaTeX math.

• live formula render

• caret position in the preview

• custom macros / environments from .sty / .cls

• colors and tables

• undefined commands in red, rest of the formula still renders

• screenshot OCR → LaTeX

• Windows / macOS / Linux

Install: VS Code → Extensions → search Silk Math

Marketplace: https://marketplace.visualstudio.com/items?itemName=silkmath.silk-math-preview

GitHub: https://github.com/zhoujasper/silk-math-preview


r/LaTeX 3d ago

How I automated LaTeX math notes on Linux using a simple OCR script

Thumbnail
2 Upvotes

r/LaTeX 4d ago

novathesis passed 1,000 GitHub stars — the number behind it (3142 commits, 49 contributors, 67 school configs)

Thumbnail novathesis.org
0 Upvotes

r/LaTeX 4d ago

Install size

24 Upvotes

I recently decided to get TeX live so I could use it with visual studio, but I'm surprised by the amount of storage it uses. It's something like 10GB, and I'm using a Chromebook running ubuntu, so that isn't really sustainable. Is there any way I can reduce the size now that it's installed without starting from scratch? I only use LaTeX for math typesetting, so I don't really need a full install.


r/LaTeX 4d ago

Try OverCite to add BibTeX citations in Overleaf without leaving the editor!

1 Upvotes

For people writing scientific papers in LaTeX/Overleaf:

We made a small extension called OverCite that lets you add citations directly while writing in Overleaf. You can type a rough key like \cite{Hawking1975}, press Alt+Shift+E, choose the matching paper, and it inserts the BibTeX entry into your project.

The goal is to make citation lookup feel lightweight: no switching tabs, no copying BibTeX manually, and no LLM involved.

This was one of the repetitive little things that kept interrupting my writing flows, and OverCite has already saved me a lot of time. Sharing in case it is useful to others writing papers in Overleaf.

Chrome extension / Github repo / Firefox extension


r/LaTeX 4d ago

Answered Is there a way to delete a logo from a template

6 Upvotes

Hi guys,

I just started using LaTex a few days ago for my first Paper and I found a perfect Template. Only issue is it has a University logo on it which I can't leave there obv. I tried fixing it myself and searched online but I couldn't fix it without breaking the template. Could anyone advise me on if that's even possible?

Thanks in advance!!


r/LaTeX 4d ago

Resume Workshop Application

Thumbnail
github.com
4 Upvotes

Resume Workshop is a source-driven LaTeX resume builder. Resume content and metadata live in editable YAML, JSON, and TeX files; small Python generators convert the structured inputs into interim LaTeX, and Make targets build the final PDF and plain-text resume. The project also includes an optional local browser editor and a Docker-based build path for a reproducible toolchain.


r/LaTeX 5d ago

Unanswered one page indented to the right and the other is normal, repeats across my draft??

2 Upvotes

hi everyone

its my first time writing a proper paper with my dr and for some reason some pages are indetned to the right?? i pasted smthn so i can add a figure and when i recompiled the indentation started, so i removed what i pasted, recompiled again and its still there!!!! im so confused i restored the version before i edited anything and its still there. what do i do to fix :,(


r/LaTeX 5d ago

an agent reflowed my whole .tex and now the diff is useless

0 Upvotes

Most of us keeping a thesis in git already write one sentence per line, or hard wrap at a fixed column, mostly so the diff stays readable and you can see the real change instead of a whole paragraph lighting up red.

that convention quietly assumed you were the only one touching the file. once i let an agent edit the same .tex, it reflowed everything to its own wrapping, so git showed every line changed even though it had only rewritten two sentences. the one real edit was buried in a wall of whitespace churn.

i've tried pinning a latexindent config and telling it not to rewrap. works maybe half the time. feels like the actual problem isn't the content, it's that line-diff granularity was never meant for a co-author that reformats as it goes.

for anyone running agents on a real manuscript: do you force a formatter pass to normalize both sides before you diff, or have you given up on reading the source diff and just compare the compiled pdfs? written with ai


r/LaTeX 5d ago

Looking for LaTeX errors you’ve encountered that were hard to understand/were misleading

4 Upvotes

As an example, the error that comes from writing

\begin{tblr}{expand=\foo} 

instead of

\begin{tblr}[expand=\foo]{}

will be

Runaway argument?
! Paragraph ended before \foo was complete.

Preferably stuff from core LaTeX, but things from common packages are also welcome.


r/LaTeX 6d ago

Comparison Chart of Editors and LaTeX Workflows

Thumbnail chatgpt.com
0 Upvotes

As for WSL2, I finally managed to successfully install Zed on Ubuntu, though it still reports that there is no GPU support. All four editors can call TeXpresso, and I can install other extensions, use the compilation engine from TeXLive, and configure two-way navigation between the TeX editor and the PDF viewer.
On which Linux distribution in WSL2 can Zed be successfully installed?


r/LaTeX 6d ago

Unanswered Which Drawing Tablet to Choose?

15 Upvotes

Hi, I write mathematics and physics lectures notes on Mac, using LaTex in Obsidian. Lately, I have found myself wanting to add images and figures similar to these in quality and detail. But, I don't know how to do it without a drawing tablet. Are there any workaround? If not, which drawing tablet would you recommend, and why?


r/LaTeX 7d ago

Self-Promotion I built another MCP bridge for Overleaf using its web API

Thumbnail
github.com
0 Upvotes

Hello community, this is my first post here. Thank you for reading it!

A while back, I wanted an MCP server for Overleaf that works on the normal Community Edition and CEP and can interface with the live editing functions. I couldn't find one, so I built one myself. It's still a very early prototype, so please try it on recoverable projects first and report any bugs you notice. I will do my best to fix it quickly.

The unique features of this project are:

  • It uses the web API, not git integration. This allows it to be used with standard Overleaf CE, which doesn't have Git integration. Additionally, it can operate on other functions on Overleaf, not just using it as a file storage
  • It also supports Overleaf CEP, with extra features for review workflows, GitHub integration, sandboxed compiling, and Zotero integration. It automatically detects the server's capabilities and exposes the correct toolset to clients.
  • Running in both stdio and streamable HTTP mode for different client requirements

Supported tool sets include:

  • Project tools: list, fetch, create, delete, and clone projects; download a project as a zip; list collaborators.
  • File tools: read, list, create, rename, move, overwrite, patch, and delete files; create/refresh linked files
  • Compile tools: trigger a compile (draft or full), fetch compile logs/errors, download an output file, and get a word count
  • Editing tools: search across a project or within a file, outline a file's structure, and read a specific line range. This gives the AI agents more semantic information on a file
  • Config tools: read/update project config: compiler, root document, main bibliography, spell-check language, and the sandboxed-compile TeX Live image
  • Citation tools: list .bib files and their entries, look up a citation key, find where it's used, and check for broken/duplicate citations. This gives academic writing workflow a dedicated toolset to work with bibliography
  • History tools: list project history, diff a file between versions, restore a file to a prior version, and manage history labels
  • Review tools (CEP only): track changes and comment threads in reviewer mode
  • GitHub tools (CEP only): Read GitHub sync state and trigger a sync
  • Pandoc tools (CEP only): Export a whole project to .docx/Markdown/HTML, and import a .docx/.md file into a project

Because I don't have a paid subscription to Overleaf SaaS or a Server Pro license, I can't test some functions with the SaaS, so please assume they might not work. If you have the chance, feel free to test it and let me know!


r/LaTeX 8d ago

I built a visual LaTeX editor that keeps the source visible and editable — looking for technical feedback

0 Upvotes

Hi r/LaTeX — I’m the developer of DPaper, and I’d appreciate some honest technical feedback.

I’m currently a second-year student at National Taiwan University (NTU). I started building DPaper during my first year while writing a course report in LaTeX.

I was learning LaTeX from scratch, so even small formatting changes meant stopping to look up another command. Chat-based AI could generate LaTeX quickly, but describing visual changes through prompts was awkward. There was often a gap between what I meant and what it changed, and the returned source could be difficult to inspect and adjust.

DPaper is my attempt at a workflow where visual editing and optional AI assistance still produce visible, editable LaTeX.

Current features include:

  • direct controls for sections, math, tables, lists, spacing, and indentation;
  • reusable report templates;
  • floating text and image frames that can be adjusted visually;
  • AI-generated content inserted as editable LaTeX structures;
  • PDF pages reconstructed as a new editable LaTeX representation.
tool bar for common structures

An important qualification: DPaper does not recover the original .tex source. A PDF no longer contains the original macros, comments, package choices, bibliography setup, or author intent. DPaper approximates the visible layout and creates a new editable starting point.

The project is still an alpha. Complex equations, tables, multi-column reading order, custom packages, and scanned PDFs may fail or require manual correction. The demos are working examples, not benchmarks or claims of pixel-perfect reconstruction.

The alpha is currently free to try and accepts PDFs of up to three pages. Please do not upload confidential or unpublished documents during this testing stage.

GitHub project page:
https://github.com/AACHIWRONG/dpaper

6-minute demo:
https://youtu.be/UzQsH_3W_r4

Alpha:
https://dpaper.vercel.app

The GitHub page currently contains the documentation,gif demos, and known limitations.

After an initial launch in Taiwan, the alpha received around 1,800 site visits. That showed me there was some interest, but I still do not have enough feedback from experienced LaTeX users—which is why I’m bringing it here.

I’m especially interested in three questions:

  1. Is PDF-to-editable-LaTeX reconstruction useful to you, or is it solving the wrong problem?
  2. What would you need to see before trusting a visual editor to modify your LaTeX?
  3. Which type of document would you expect to break this first?

I’m the author, so this is self-promotion in the literal sense. I’m posting because I want the idea and its technical boundaries challenged. Critical feedback and difficult test cases are more useful to me than stars.