Skip to content

Conversation

@lnay
Copy link
Contributor

@lnay lnay commented Apr 24, 2025

This is an extension to be used alongside the LaTeX one, providing a (very new) language server which only deals with live preview of a LaTeX document using TeXpresso, while texlab (from other extension) will provide all the other language server capabilities (go-to-definition, completions, snippets...). TeXpresso is a very experimental project but pulls off something not seen anywhere else in the LaTeX world with the preview updating smoothly with every keystroke. This particular project (LSP and zed integration) was prompted by a user request in the LaTeX extension and since then I have personally found it incredibly compelling.

Demo showing live preview and inverse-search (clicking on parts of preview to move cursor in editor:

Screencast.From.2025-04-24.02-36-31.mp4

@leanhdung1994
Copy link

TeXpresso currently could not handle the problem of multi-pass, so cross-references and citations will be displayed as ?. A simple solution has been proposed. Could you please implement this feature? In this way, there is a button that has the following two effects:

  1. The command latexmk -xelatex" is triggered such that the resulted intermediate files will be kept. The command can be configured/changed in the setting of the extension.
  2. The internal state of TeXpresso is refreshed. The above intermediated files will be used by TeXpresso. The cross-references and citations will be resolved correctly.

Thank you very much for your consideration.

@lnay
Copy link
Contributor Author

lnay commented Apr 25, 2025

I've made a note of this here: lnay/texpresso-lsp#1

@notpeter notpeter merged commit 641610a into zed-industries:main Apr 29, 2025
3 checks passed
@notpeter
Copy link
Contributor

That looks cool! Thanks for sharing.

lucascompython pushed a commit to lucascompython/extensions that referenced this pull request Oct 3, 2025
This is an extension to be used alongside the LaTeX one, providing a
(very new) language server which only deals with live preview of a LaTeX
document using [TeXpresso](https://github.com/let-def/texpresso), while
`texlab` (from other extension) will provide all the other language
server capabilities (go-to-definition, completions, snippets...).
TeXpresso is a very experimental project but pulls off something not
seen anywhere else in the LaTeX world with the preview updating smoothly
with every keystroke. This particular project (LSP and zed integration)
was prompted by a [user request in the LaTeX
extension](rzukic/zed-latex#85) and since then
I have personally found it incredibly compelling.

*Demo showing live preview and inverse-search (clicking on parts of
preview to move cursor in editor:*


https://github.com/user-attachments/assets/e3fd9773-c396-419b-8a12-c3925cdd28a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants