vscode-markdown-pdf icon indicating copy to clipboard operation
vscode-markdown-pdf copied to clipboard

Cant display math formula incorrect

Open dongshen opened this issue 3 years ago • 5 comments

i can display md file in preview correct for math formula, like $OUT(X)$ = $\bigcup \atop v\in X$ ${u: (v,u)\in E}$, but after i convert to pdf, still the same string in pdf file

dongshen avatar Feb 19 '21 14:02 dongshen

See this issue. You may add those same two lines into the html template itself to enable latex for all documents. The path to it is %user%/.vscode/extensions/yzane.markdown-pdf/template/template.html

AntonC9018 avatar Mar 06 '21 08:03 AntonC9018

any sol?

ahmadmustafaanis avatar Dec 25 '21 16:12 ahmadmustafaanis

Hi, I tried the solution mentioned by AntonC9018 https://github.com/yzane/vscode-markdown-pdf/issues/151 Thank you AntonC9018! It does render the display math with double dollar signs $$ some formular$$. However, when export md to pdf, it still doesn't render inline math for me for those in between SINGLE DOLLAR SIGNS $. Does anyone have an idea?

luoluo-L avatar Sep 12 '22 03:09 luoluo-L

insert

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

at the top of your md file

najtin avatar Oct 30 '22 19:10 najtin

thank you! @najtin

yanhuacuo avatar Aug 30 '23 00:08 yanhuacuo