Closed Devin-Yeung closed 4 weeks ago
You need to pin the main file so that the entry file doesn't change when you switch files.
Hint: typst-preview supports to pin it when you start to preview some file. https://github.com/Enter-tainer/typst-preview/blob/main/addons/vscode/package.json#L224
You need to pin the main file so that the entry file doesn't change when you switch files.
This works for me, thank you! Btw, I am curious about how can I achieve this if I use other editors (e.g Zed / neovim) which does not support typst-preview. Does tinymist provide any option to pin the main file?
You need to pin the main file so that the entry file doesn't change when you switch files.
This works for me, thank you! Btw, I am curious about how can I achieve this if I use other editors (e.g Zed / neovim) which does not support typst-preview. Does tinymist provide any option to pin the main file?
No common best model currently, they can set an entry file by configuration globally or in workspace, https://github.com/Myriad-Dreamin/tinymist/tree/main/editors/vscode#passing-extra-cli-arguments. VSCode and neovim users can also invoke pin commands, but this doesn't work if clients don't have well support to lsp commands, like helix or zed. https://github.com/Myriad-Dreamin/tinymist/tree/main/editors/vscode#working-with-multiple-file-projects
Thank you for your time answering this, I think I can mark this issue as solved
Describe the bug
Tinymist fail to identify the bib items when multiple files involves. For example, if
#bibliography("ref.bib")
is inmain.typ
andcontent.typ
is#include
bymain.typ
, the bib items are only available inmain.typ
but not available incontent.typ
.Package/Software version:
VSCode version(Help -> About):
tinymist extension version:
v0.11.10
. Get it bytinymist --version
in terminal.Additional context
Here are the steps to reproduce the bug:
directory structure:
Source code for
ref.bib
Source code for
main.typ
Source code for
content.typ