Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zjuthesis.tex #395

Closed
wants to merge 3 commits into from
Closed

Conversation

beef-potato
Copy link

add \addbibresource{body\ref.bib} in zjuthesis.tex, it can support cite suggestion of vscode

这个和path里的语句有些冗余,但是可以改善vscode+latex workshop用户的写作体验,或许加在readme里也行?
zjuthesis

add `\addbibresource{body\ref.bib}` in zjuthesis.tex, it can support cite suggestion of vscode
@beef-potato
Copy link
Author

:<
没过check,
原issue: James-Yu/LaTeX-Workshop#2314

@TheNetAdmin
Copy link
Owner

报错说这个应该写在\begin{document}之前,尝试改到这里是否能通过check呢

\bibliography{body/ref.bib}

把 \addbibresource 提到 \begin{document}之前
@beef-potato
Copy link
Author

过check了,:>

@TheNetAdmin
Copy link
Owner

我有点好奇如果把这一行加在 zjuthesis/config/path.tex 里,是否还能正常使用 cite 提示呢?如果可以的话我倾向于将其放在子文件里。

@beef-potato
Copy link
Author

beef-potato commented Apr 18, 2024

James-Yu/LaTeX-Workshop#4218 (comment)

这里作者说了 \addbibresourse{} 只会在main.tex文件里查找。另一个方案是添加环境变量,然后修改settings.json latex-workshop.latex.bibDirs,还得加绝对路径。

@beef-potato
Copy link
Author

感觉更多的是 latexWorkshop里的问题了,没必要修改这个仓库的代码。想要那个特性只能手动在zjuthesis.tex加代码, 环境变量的方法在大量bib文件存在的时候感觉会有其他问题。
要不关了吧

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

Successfully merging this pull request may close these issues.

2 participants