TeXpresso
Live preview of LaTeX document using TeXpresso. Use alongside the LaTeX extension.
Language servers
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for TeXpresso. The extension's id is texpresso.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
TeXpresso extension for Zed
[!WARNING] Linux/Mac only (non windows) for now. Will revisit WSL2 as a possibility in the future.
https://github.com/user-attachments/assets/477093ea-d44d-4bad-b3da-814a33c859c2
Use this alongside the LaTeX extension for Zed, but disable the build-on-save in settings:
{
"lsp": {
"texlab": {
"settings": {
"texlab": {
"build": {
"onSave": false
}
}
}
}
}
}
Setup
- Build TeXpresso from this branch: https://github.com/lnay/texpresso/tree/utf-8
- Install this repo as a dev extension in Zed, or from the extensions tab when available (maybe soon)
- Add to your settings.json file (global
~/.config/zed/settings.jsonor workspaceWORKSPACE/.zed/settings.json):
{
"lsp": {
"texpresso-lsp": {
"initialization_options": {
"root_tex": "path/to/main/tex/file", // relative to workspace root, defaults to main.tex
"texpresso_path": "path/to/texpresso/binary" // omissable if TeXpresso is in PATH
// ^ this path must be to an executable called "texpresso" which must be in the same dir as the executable "texpresso-tonic"
},
"settings": {
"preview_follow_cursor": false, // default true, makes preview constantly follow the position of the cursor
}
}
}
}