shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.46k stars 173 forks source link

Style of exported pdf by using PhantomJS #52

Open Geliv opened 7 years ago

Geliv commented 7 years ago

This extension is just so powerful and great! Thank you so much. But, I just encountered some small problems when export the md file to pdf.

PS: should the figure be aligned centered by default? Many thanks.

shd101wyy commented 7 years ago

How did you generate PDF? using prince?

On Wed, Sep 6, 2017 at 1:40 AM Geliv notifications@github.com wrote:

This extension is just so powerful and great! Thank you so much. But, I just encountered some small problems when export the md file to pdf .

PS: should the figure be aligned centered by default? Many thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/52, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0gf5J2Cmk9GwBAB-J7dU8xZi7L95Hmks5sfj5vgaJpZM4PN6OF .

Geliv commented 7 years ago

What's the problem by using PhantomJS? I just googled prince, it's not free? and expansive...

shd101wyy commented 7 years ago

PhantomJS doesn't work well with math sometimes. So I would like to recommend you to click "open in browser" (open in chrome), then print the HTML as PDF.

On Wed, Sep 6, 2017 at 1:46 AM Geliv notifications@github.com wrote:

What's the problem by using PhantomJS? I just googled prince, it's not free? and expansive...

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/52#issuecomment-327391000, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0gf34tNhaDeL590mMLzgY4F4ezeGy9ks5sfj_bgaJpZM4PN6OF .

shd101wyy commented 7 years ago

As for the styling, you can check the documentation website.

On Wed, Sep 6, 2017 at 1:48 AM Yiyi Wang yiyi.wang@runtimeverification.com wrote:

PhantomJS doesn't work well with math sometimes. So I would like to recommend you to click "open in browser" (open in chrome), then print the HTML as PDF.

On Wed, Sep 6, 2017 at 1:46 AM Geliv notifications@github.com wrote:

What's the problem by using PhantomJS? I just googled prince, it's not free? and expansive...

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/52#issuecomment-327391000, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0gf34tNhaDeL590mMLzgY4F4ezeGy9ks5sfj_bgaJpZM4PN6OF .

Geliv commented 7 years ago

Chrome works very nice! Thank you for your quick reply.

shd101wyy commented 7 years ago

Btw, if you are using Mac, then you can install prince by command "brew install prince". Besides, prince is free for noncommercial use. However, prince also doesn't work well with math and diagrams sometimes. So I often open the in browser then print as PDF.

On Wed, Sep 6, 2017 at 1:48 AM Yiyi Wang yiyi.wang@runtimeverification.com wrote:

As for the styling, you can check the documentation website.

On Wed, Sep 6, 2017 at 1:48 AM Yiyi Wang < yiyi.wang@runtimeverification.com> wrote:

PhantomJS doesn't work well with math sometimes. So I would like to recommend you to click "open in browser" (open in chrome), then print the HTML as PDF.

On Wed, Sep 6, 2017 at 1:46 AM Geliv notifications@github.com wrote:

What's the problem by using PhantomJS? I just googled prince, it's not free? and expansive...

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/52#issuecomment-327391000, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0gf34tNhaDeL590mMLzgY4F4ezeGy9ks5sfj_bgaJpZM4PN6OF .

Geliv commented 7 years ago

I see, then chrome exporting is the best. 🙂