Fentaniao / Liquid

A nice theme designed for Typora in Windows 11.
GNU General Public License v3.0
135 stars 37 forks source link

Export to PDF #15

Open skaviouz opened 1 year ago

skaviouz commented 1 year ago

A picture says 1k words

bug

Bug

this theme's headers can't be viewed from Sumatra PDF when you export to PDF, the ink font is okay, but it's the headers

control group

markdown file:

# H1

## h2

### h3

#### h4

##### h5

###### h6

regular text

+

Tests

I tried to output this theme to PNG output, the image outputs correctly. I tried to output the document with default theme, pdf opens as intended. I tried to output the document with another 3rd party theme "Purple", pdf opens as intended.

observations

the pdf has issues with Sumatra PDF, but can be viewed with Chrome.

Workaround

manually choose another theme explicitly for pdf output Preferences > Export > PDF as you can see in the screen shot above.

Conclusion

Pandoc is working, but I don't know if this is a bug with Sumatra PDF or this theme, because 2 themes I tested out functions normally. I am making the assumption all the other non-dark themes do work and this is a bug with Liquid and not Typora or Pandoc.

github-actions[bot] commented 1 year ago

Hello, @skaviouz! Thank you very much for your issue, I will deal with these problems soon.

Fentaniao commented 1 year ago

Your conclusion is right. My initial supposition is that some features used by Liquid don't be fully supported by some softwares, such as transparent. I am busy for recent months, but I will investigate this bug and solve it in the several days.

Fentaniao commented 1 year ago

This problem almost drive me mad.

I feel sorry that I can't solve it, at least for now. I will go on finding ways to solve. Before that, this issue will keep open.

I don't know what causes this problem exactly, but I guess this is the problem maybe both because of the export function of Typora and some feature not supported by Sumatra PDF.

Here are some clues:

Before this problem is solved. I advice you to use print rather than export function. PDF document print by Typora with Liquid theme works well in Sumatra PDF. Another advise is that use the other themes or PDF software.

Thank you for your issue, especially for your well-organized writing.

Anyone who has idea, plz contact me.