Skip to content
Sam-FicPublic
forked from cvfosammmm/Setzer

About

GNOME HIG redesign of Setzer — a full-featured LaTeX editor for Linux, Windows and macOS · fork of cvfosammmm/Setzer

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

NeoSetzer

NeoSetzer

简体中文


Simple yet full-featured LaTeX editor for Linux, Windows, and macOS, adhering to the GNOME HIG.

This is a fork of Setzer by cvfosammmm. The original project site is https://www.cvfosammmm.org/setzer/, licensed under GPL-3.0-or-later.

Screenshot

Feedback on design, code architecture, bugs, and feature requests is welcome through this repository's issue tracker.

The application has been redesigned based on the original project to comply with the GNOME HIG—offering a modern and visually polished interface.

The UI/UX design has been thoroughly optimized; I hope you’ll appreciate the meticulous details I’ve crafted :)

Features

NeoSetzer keeps Setzer's familiar edit–build–preview workflow while adding a modern GNOME interface and a large set of authoring, diagnostic, and AI-assisted tools. Features that depend on external programs (PhiTeX, chktex, Git, an AI agent CLI) are optional and degrade gracefully when the tool is not installed.

What this fork adds beyond upstream Setzer

Area Highlights
Interface Full GNOME HIG redesign on GTK 4 / libadwaita, native Adwaita
Command discovery Built-in Command Palette (Ctrl+.) with fuzzy search, categories, keywords, and recent commands
AI assistance AI annotations on source selections or PDF regions, AI Fix for build errors, an embedded agent terminal, adapters for opencode / claude / codex / gemini / aider / pi / codebuddy, and a PDF diff of AI edits
Live compilation PhiTeX fast incremental compilation with live preview, and precise SyncTeX in both directions
Live preview TikZ snippet preview, math preview on hover, PDF search, text selection, magnifier toolbar, independent preview window, and external-change monitoring
Git Gutter change marks, a Changes / Commits sidebar, stage / commit / push actions, and file diffs
Structured authoring Document Wizard, user document templates, Insert Table with CSV/TSV import, matrix dialog, image insertion, bibliography manager and formatting, Preamble Assistant
Editing Multi-cursor and column selection, code folding, sticky scroll, snippets, smart quotes, automatic braces for sub/superscripts, list continuation, bracket completion, bookmarks, spell checking with a managed word list
Typst Edit, build and preview .typ documents with the external typst CLI; syntax highlighting, structure outline, live diagnostics, hover and go-to-definition through an optional Tinymist language server

Platform Support

NeoSetzer runs on Linux, Windows, and macOS from a single codebase. No platform fork or separate build is required.

Platform Status Runtime stack
Linux (Ubuntu 26.04+, Debian 14+, Fedora, Arch, ...) Fully supported System GTK4 + libadwaita 1.9+
Windows 10/11 (x86_64) Supported via MSYS2 Portable MSYS2 UCRT64 GTK4 stack
macOS Apple Silicon (ARM64) Supported Self-contained .app release package
WSL (Windows Subsystem for Linux) Supported as Linux app Linux distribution inside WSL

Installation

  1. Windows portable zip — setzer_<version>_windows_x64.zip in the GitHub Releases of this fork. Extract anywhere and run ucrt64\bin\setzer.bat; no MSYS2 or installer needed. See Using the portable zip.
  2. Debian/Ubuntu package — Prebuilt .deb packages are published in the GitHub Releases of this fork. Check there for the latest build. The package name is neosetzer (it replaces the upstream setzer package from the Debian repositories); the installed command stays setzer.
  3. macOS Apple Silicon application — Download setzer_<version>_macos_arm64.zip, extract NeoSetzer.app, and see macOS packaging notes for the current Gatekeeper and signing status.
  4. Build from source (see below) — works on any Linux distribution or Windows (via MSYS2) with the dependencies available.

Not on Flathub. This fork is distributed from the GitHub Releases of this repository only.

Running NeoSetzer on Debian/Ubuntu

NeoSetzer is developed and tested on Ubuntu.

Supported distributions: The prebuilt .deb requires GTK 4.10+, libadwaita 1.9+ (GNOME 50 or newer; the app also uses Adw.ToggleGroup, Adw.Spinner, Adw.ShortcutsDialog and Adw.Sidebar) and Python 3.10+; these constraints are declared in its Depends, so it targets Ubuntu 26.04 or newer and Debian 14 (forky) or newer. Older releases do not satisfy the constraints: apt refuses the install (e.g. Ubuntu 24.04 ships libadwaita 1.5, Ubuntu 25.10 ships 1.8), and building from source does not help either (the GI bindings above are resolved at import time). Upgrade the system instead.

gir1.2-webkit-6.0 and gir1.2-vte-3.91 are optional dependencies (Recommends). WebKit powers the help panel's embedded browser and Typst web preview: without it, help pages open in the system browser, while the Typst preview shows a missing-dependency notice. VTE powers the embedded AI agent terminal: without it, AI sending falls back to an external terminal plus the clipboard. The app starts normally without either.

  1. Run the following command to install prerequisite packages:

    # Run in a Linux terminal
    apt-get install meson ninja-build python3-gi gir1.2-gtk-4.0 gir1.2-gtksource-5 gir1.2-pango-1.0 gir1.2-poppler-0.18 gettext python3-cairo python3-gi-cairo gir1.2-adw-1 python3-numpy gir1.2-xdp-1.0

    Optional WebKit/VTE integration:

    apt-get install gir1.2-webkit-6.0 gir1.2-vte-3.91

    Note: gir1.2-xdp-1.0 (the libportal GIR) is only used for Linux/Flatpak detection. Windows does not use these apt package names; WebKit/VTE remain optional there and degrade according to whether their GI bindings are available (see below).

  2. Clone the NeoSetzer repository from GitHub:

    # Run in a Linux terminal
    git clone https://github.com/Sam-Fic/NeoSetzer.git
  3. Change into the NeoSetzer folder:

    # Run in a Linux terminal
    cd NeoSetzer
  4. Run meson:

    # Run in a Linux terminal
    meson setup builddir

    Note: Some distributions may not include systemwide installations of Python modules which aren't installed from distribution packages. In this case, you want to install NeoSetzer in your home directory with meson setup builddir --prefix=~/.local.

  5. Install NeoSetzer with:

    # Run in a Linux terminal
    ninja install -C builddir

    Or run it locally:

    # Run in a Linux terminal
    ./scripts/dev/setzer.dev

Running NeoSetzer on Windows

NeoSetzer supports Windows natively. The GTK4 runtime stack is provided by MSYS2 (the only reliable source of up-to-date GTK4 / libadwaita / GtkSourceView 5 / Poppler binaries on Windows).

There are two ways to get it running:

  • Portable zip — the easy way, no MSYS2 required. See directly below.
  • Build from source — for development or if you want to modify NeoSetzer. See Step 1 onwards.

Using the portable zip

setzer_<version>_windows_x64.zip is a self-contained build (~128 MB, ~349 MB extracted) that bundles Python, GTK4 and every other runtime dependency. Nothing needs to be installed and nothing is written to the registry.

  1. Download setzer_<version>_windows_x64.zip from the GitHub Releases page.

  2. Extract it anywhere you like — a USB stick, D:\Apps\NeoSetzer, your desktop. There is no fixed installation path.

    Right-click → "Extract All…" in File Explorer works. So does PowerShell:

    Expand-Archive setzer_74_windows_x64.zip -DestinationPath D:\Apps\NeoSetzer
  3. Run ucrt64\bin\setzer.bat inside the extracted folder — double-click it in File Explorer, or call it from cmd / PowerShell.

    PowerShell note: run it without quotes, or prefix it with the call operator (& "…\setzer.bat"). A bare quoted path is treated as a string and only echoed, not executed.

  4. To pin it to the taskbar or Start menu, create a shortcut to setzer.bat (right-click → "Send to" → "Desktop (create shortcut)").

To uninstall, just delete the folder. Your settings live in %LOCALAPPDATA%\setzer (i.e. C:\Users\<you>\AppData\Local\setzer) and are kept across versions — remove that folder too if you want a completely clean state.

Do I still need MSYS2? No. Everything is bundled. Do not add the extracted ucrt64\bin to your system PATH — if you also have MSYS2 installed, the two GTK4 stacks can shadow each other and cause hard-to-diagnose DLL errors.

LaTeX is still a separate install. The zip contains the editor, not a LaTeX distribution — see "Installing a LaTeX distribution on Windows" below.

Build from source (Windows)

To build from source on Windows, install MSYS2, then follow the dependency installation and build steps in docs/packaging/windows.md.

Building your documents from within the app

To build your documents from within the app you have to install a LaTeX interpreter. For example if you want to build with XeLaTeX, on Ubuntu this can be installed like so: apt-get install texlive-xetex

To specify a build command open the "Preferences" dialog and choose the command you want to use under "LaTeX Interpreter".

It is recommended to use the new fast compiler PhiTeX—this application has been adapted for it.

Typst documents

Typst support uses the official typst command-line compiler. Install it from https://github.com/typst/typst/releases (or your distribution's package manager) and make sure it is on PATH; a custom path can be set in Preferences → Build system → Typst. Open or create a .typ file, then build it with the same build button as LaTeX. The PDF is written next to the source file (for export and printing), while the preview panel embeds Tinymist's own live web preview in a WebKit view — clicking text in the preview jumps to the corresponding line in the editor.

The preview and the optional language features (completion, hover, go-to-definition and live diagnostics) are provided by the Tinymist language server. Install tinymist, keep it on PATH (or set its path in Preferences), and leave “Use Tinymist language server” enabled. Without it, Typst documents still build and the compile errors from the typst command are shown in the editor and build log; the preview panel asks for Tinymist.

Packaging

Debian/Ubuntu (.deb)

See docs/packaging/debian.md for the Debian package and release workflow.

Windows (portable zip / installer)

See docs/packaging/windows.md for the Windows portable-package workflow, and docs/packaging/macos.md for the macOS application-package workflow.

Getting in touch

Development and discussion for this fork take place on GitHub at https://github.com/Sam-Fic/NeoSetzer. For the original upstream project, see https://github.com/cvfosammmm/setzer.

Acknowledgements

NeoSetzer draws some inspiration from other LaTeX editors. For example the symbols in the sidebar are mostly the same as in LaTeXila, the autocomplete suggestions are mostly the same as in Texmaker. Syntax highlighting schemes are based on the Tango scheme in GtkSourceView and the Gnome Builder Scheme.

Icons: Icon Library

UI Design Reference: GNOME Text Editor

Reference Project for AI Annotations Feature: Papilot

Fast LaTeX Compiler: PhiTeX

Typst Compiler: Typst

License

NeoSetzer is licensed under GPL version 3 or later. See the COPYING file for details.

About

GNOME HIG redesign of Setzer — a full-featured LaTeX editor for Linux, Windows and macOS · fork of cvfosammmm/Setzer

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages