LaTeX实时预览偶尔无法识别自定义宏
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13k
- Forks
- 1.3k
- Avg merge
- 14h 3m
- Merged PRs (30d)
- 3
Description
OS Version (操作系统): Windows
VNote Version (Help - About VNote - Version: )(VNote版本): 2.7.2
Symptoms (表现):
如果在前文的LaTeX块内使用\newcommand定义了自定义的宏并在后文使用,一部分实时预览偶尔会无法识别并显示为红色,阅读模式下偶尔也会有该问题,重新打开文件时尤为明显。

如图,在前文定义了\BigO宏,然而在后文的预览当中偶尔会无法识别。其他的宏在后文渲染正常。
然而如果此时把\BigO{n^2}改为\BigO{n^3},则正常渲染,可能是缓存没更新?
How to Repro (如何复现):
定义LaTeX宏并在后文使用。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in VNote 2.7.2 on Windows with a LaTeX block that defines a custom macro before using it later, then compare live preview and reading mode after reopening the file. Trace the preview's macro recognition and cache refresh paths; done means the custom macro renders consistently without requiring a text change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, latex
- Domain
- desktop-dev, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100