0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VSCodeのMarkdown PDFでLaTeXを使えるようにする

Posted at

Markdownファイルの末尾か、template.html{{{content}}}の直後(または次の行に)このコードを追加してください。template.htmlは、Windowsの場合はC:/Users/<USER_NAME>/.vscode/extensions/yzane.markdown-pdf-1.4.4/template/template.htmlにあります。

    <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>

余談

プルリクエストは出ていますが、記事執筆時点ではまだマージされていません。数式が長くてはみ出してしまう場合は、こちらを参考にしてください。

参考文献

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?