1. 如何给blog设置密码?
  2. VS code 解决markdown pdf插件无法正确显示数学公式问题
    解决办法:进入扩展插件的template.html文件

mac位置是:

plaintext
1
/Users/username/.vscode/extensions/yzane.markdown-pdf-1.4.4/template/template.html

windows位置是:

plaintext
1
C://Users/username/.vscode/extensions/yzane.markdown-pdf-1.4.4/template/template.html

加两行代码到末尾:

html
1
2
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: {inlineMath: [['$', '$']]}, messageStyle: "none" });</script>

加入后:

html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<title>{{{title}}}</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
{{{style}}}
<script>
{{{mermaid}}}
</script>
</head>
<body>
<script>
mermaid.initialize({
startOnLoad: true,
theme: document.body.classList.contains('vscode-dark') || document.body.classList.contains('vscode-high-contrast')
? 'dark'
: 'default'
});
</script>
{{{content}}}
</body>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: {inlineMath: [['$', '$']]}, messageStyle: "none" });</script>
</html>

然后导出pdf即可正确编译数学公式。

  1. texlive.iso文件安装方式
    打开powershell,输入:
    powershell
    1
    Mount-DiskImage -ImagePath "E:\windows_10_1607.iso"
    运行批处理命令install-tl-windows.bat
    使用如下命令即可弹出已挂载的 ISO:
    powershell
    1
    Dismount-DiskImage -ImagePath "E:\windows_10_1607.iso"