问题描述
我通常使用 VScode 使用 Latex Workshop 扩展编写 Latex。
在编写 tex 文件时,对于文档的普通文本部分,我发现阅读诸如 Verdana 之类的非代码字体要容易得多。然而,在编写方程和数学环境时,我发现像 Consolas 这样的字体的代码更容易。
我通常只坚持使用 Verdana,但我很想知道 VSCode 是否可以根据代码块使用不同的字体?像这样,
\begin{document}
\section{Introduction}
So in the text part of the Latex document,I'd like VSCode to use a font such as Verdana.
\section{Some maths}
\begin{equation}
But in a math environment,such as equation,I'd like a code-like font,something like Consolas
\end{equation}
And then back to Verdana.
\end{document}
我不知道这是否可行,但 Latex Workshop 已经根据您是在数学环境还是普通文本中以不同方式突出显示文本。那么有没有办法改变字体呢?
提前致谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)