vscode markdown preview enhanced css font

vscode markdown preview enhanced css font,第1张

主题CSS

C:\Users\Username\.vscode\extensions\shd101wyy.markdown-preview-enhanced-x.x.x\node_modules\@shd101wyy\mume\styles\preview_theme

推荐vs.css

推荐修改

  • 字体 Fira Code
  • 注释 取消斜体
代码块主题CSS

C:\Users\Username\.vscode\extensions\shd101wyy.markdown-preview-enhanced-x.x.x\node_modules\@shd101wyy\mume\styles\prism_theme

推荐修改
按键 ctrl+shift+P
输入 Markdown Preview Enhanced: Customize CSS

.markdown-preview.markdown-preview {
    p,td,th,li {font-family : Fira Math, Microsoft YaHei}
    h1,h2,h3,h4,h5,h6 {font-family : Fira Sans, Microsoft YaHei}
    kbd,pre,code {font-family : Fira Code, Microsoft YaHei}
    kbd { display: inline-block; box-shadow: 1px 1px 1px 1px #808080; }
    table, th, td {  border: 1px solid black; }
    blockquote {
        margin-top: 0px; margin-bottom: 0px; margin-left: 0px;
        padding-left: 9px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px;
        border-left: 9px solid #008080;
        background-color: #f7f7f7;
    }
    .katex {
        font-size: 1.1em;
        text-indent: 0;
        text-rendering: auto;
    }

}

请先安装以下字体:
Fira Math, Fira Sans, Fira Code, Microsoft YaHei

KaTex字体

C:\Users\Username\.vscode\extensions\shd101wyy.markdown-preview-enhanced-x.x.x\node_modules\@shd101wyy\mume\dependencies\katex\fonts

看惯了Computer Modern, 可以试试比较清秀的Times风格字体.

MathJax-master\es5\output\chtml\fonts\woff-v2令人失望, 仍然是Computer Modern.

可以试试看 C:\Users\Username\anaconda3\pkgs\notebook-...\site-packages\notebook\static\components\MathJax\fonts\HTML-CSS\STIX-Web\woff, 指路 bilibili.com/read/cv9868646
个人感觉效果不好.


LaTex资源

无版权MathTimePro2
static.latexstudio.net/wp-content/uploads/2013/02/MathTimePro2-fonts.zip

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/915909.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-16
下一篇 2022-05-16

发表评论

登录后才能评论

评论列表(0条)

保存