zoukankan      html  css  js  c++  java
  • VSCODE导出PDF的数学公式

    1. 找到配置文件template.html

    比如windows下的路径:

    C:\Users\njhx02\.vscode\extensions\yzane.markdown-pdf-1.4.4\template

    2. 增加以下配置,红色的两行

    <!DOCTYPE html>
    <html>
    <head>
    <title>{{{title}}}</title>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    {{{style}}}
    {{{mermaid}}}
    </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>

    3. 即可。

    上善若水,水利万物而不争。
  • 相关阅读:
    [面试题]什么是面向对象编程
    面向对象编程的新手理解
    Object of type type is not JSON serializable
    STL---map
    STL---llist
    Div标签使用inline-block有间距
    STL---vector
    KMP算法
    算法06
    算法05
  • 原文地址:https://www.cnblogs.com/yoyotl/p/15608388.html
Copyright © 2011-2022 走看看