Markdown-preview-enhanced: PDF through PhantomJS renders equations always in KaTeX

Created on 19 Aug 2016  路  9Comments  路  Source: shd101wyy/markdown-preview-enhanced

When I try to export to PDF, my equations are rendered in KaTeX, giving me errors (due to symbols not supported). This happens even when I selected MathJax for them in Preview. Gets automatically switched to KaTeX for the print.

Is there a way of creating PDFs through PhantomJS with the equations rendered in MathJax? I cant use KaTex since it still doesnt support some of the symbols I use.

I would prefer so since the PDF file size is around 6x smaller than the other PDF engine.

Thanks and congrats!

All 9 comments

Hi @carlomontec , thanks for your reply.
I will solve this problem when I have time.
Thanks

I will release a new version this weekend :)

@shd101wyy Thanks a lot!! And again thanks for your development, it is very helpful!!

@carlomontec Done ;)
Cheers!

I will close this issue if the update works and you don't have any other problems.

Hello @shd101wyy , unfortunately I still see the issue. Now Im using 0.8.3 and when I select mathJax, the PDF through PhantomJS does not render the equations. I attach files as output examples. Thank you!

input:
`# Example MJ vs KT

  • $\lambda_{n,i}$ , $ \vec{\lambda}_{pre,t,i} $ done, we use DFT to determine the required harmonic components.
  • ==$\lambda_{n,i}$ , $ \boldsymbol{\lambda}_{pre,t,i} $ done, we use DFT to determine the required harmonic components.==`

test_Adobe_MJ.pdf
testJS_K.pdf
testJS_MJax.pdf

Oh I see
I will try to solve this problem as soon as possible.
Sorry for the trouble :(

Hi @carlomontec ,

Right now it could export mathjax file, however the bar above lambda seems not to be rendered correctly...

screen shot 2016-09-04 at 11 07 00 pm

I don't really know what caused the problem. I will notice you once I find a solution.

Besides, pandoc is now supported, you can have a look if you want to use pandoc instead.

Sorry for the trouble :(

Hi @shd101wyy Indeed is a weird bug. Thanks again for your great work. I will also try to track down whats going on and keep you updated. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AdamBear-Me picture AdamBear-Me  路  5Comments

abhayghatpande picture abhayghatpande  路  5Comments

adamaltmejd picture adamaltmejd  路  5Comments

StefanoCecere picture StefanoCecere  路  5Comments

saeidamiri1 picture saeidamiri1  路  3Comments