TheNetAdmin / zjuthesis

Zhejiang University Graduation Thesis LaTeX Template
https://thenetadmin.github.io/zjuthesis
MIT License
2.49k stars 597 forks source link

Update zjuthesis.tex #395

Closed beef-potato closed 2 months ago

beef-potato commented 3 months ago

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

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

beef-potato commented 3 months ago

:< 没过check, 原issue: https://github.com/James-Yu/LaTeX-Workshop/issues/2314

TheNetAdmin commented 3 months ago

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

https://github.com/TheNetAdmin/zjuthesis/blob/0464c71837748cc4ca0ef57aeb5d0bee4b75ef2b/config/path.tex#L2

beef-potato commented 3 months ago

过check了,:>

TheNetAdmin commented 2 months ago

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

beef-potato commented 2 months ago

https://github.com/James-Yu/LaTeX-Workshop/issues/4218#issuecomment-2031077689

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

beef-potato commented 2 months ago

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