Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

PDF viewer in VSCode does not refresh instantly #518

Open
l8l opened this issue Oct 5, 2024 · 1 comment
Open

PDF viewer in VSCode does not refresh instantly #518

l8l opened this issue Oct 5, 2024 · 1 comment

Comments

@l8l
Copy link

l8l commented Oct 5, 2024

  • Component:
    • VSCode Extension
  • Extension version: v0.13.0
  • LSP version:
  • OS version and name: Arch Linux, most recent version
  • I am on the latest stable version of the extension/LSP.
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

I just started to use typst and have come across 3 problems, that I don't know how to solve:

  1. When saving a .typ file, especially one that contains equations, and displaying the exported pdf on the right by clicking on the corresponding tiny two-page-key-button on the upper right of the typ file, the vscode-pdf viewer does not refresh instantly when typing. Only when scrolling the document, the change is made. A friend of mine has the same issue on a different (Windows) machine.
  2. It is not possible, or not clear to me how to click on some line or symbol in the pdf viewer to let the cursor jump automatically to the corresponding place in the typ file, and vice versa, which is a standard LaTeX feature.
  3. When including multiple files into a main file, the onPinnedMainSave option works but everytime I open the vscode folder, in which the main file and the other files are, I have to enter "STR + SHIFT + P" and "typst set current file to main" again, before the option works, i.e. Typst LSP does not seem to remember the pinned file.

EDIT: I tried uninstalling the Typst LSP extension and installing Tinymist Typst and noticed that none of those problems exist in Tinymist Typst. I am now confused about why there are two plugins and not just one? And which one is one supposed to use? Typst LSP seems to have more downloads and seems to be the "official" version but Tinymist Typst seems to work better (and in particular solves all 3 issues that I had) and when installing it, it conflicts with Typst LSP ? Are there plans for fusing those two into one and if not, why not? Thanks a lot!

In any case, I want to emphasize that typst seems to be really great and want to thank you for the great development! I have been looking for a more efficient LaTeX alternative for so long.

@PhyX-Meow
Copy link

Maybe helpful: Try use the pdf view from latex-workshop extension. That one supports refresh on filechange.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants