Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear what the styles.css is for? #11

Closed
advename opened this issue Apr 8, 2020 · 3 comments
Closed

Unclear what the styles.css is for? #11

advename opened this issue Apr 8, 2020 · 3 comments
Assignees

Comments

@advename
Copy link

advename commented Apr 8, 2020

First of all - THANK YOU for this awesome package! I've been trying to convert md to pdf in a pretty way and failed miserably because Pandoc simply works better going the latex way than html.


Now, you have the styles.css file in the project, but css is only supported via html. What is the purpose of this file then? Or how would you use it?

@wikiti wikiti self-assigned this Apr 8, 2020
@wikiti
Copy link
Owner

wikiti commented Apr 8, 2020

Hi @advename

First of all - THANK YOU for this awesome package! I've been trying to convert md to pdf in a pretty way and failed miserably because Pandoc simply works better going the latex way than html.

You're welcome!

Now, you have the styles.css file in the project, but css is only supported via html. What is the purpose of this file then? Or how would you use it?

That's a good question. I've been looking around, and looks like it's not supported on PDF (Latex based) nor DOCX files. On this template, it could only be used on EPUB and HTML formats right now.

I think this may be addressed in two different ways:

  • Stop using PDF's Xelatex engine, and start using html2pdf to convert it automatically to PDF/DOCX (supported by Pandoc). Unfortunately, this won't work for DOCX files.
  • Update this template to include a new folder, templates, to include format-independant styles or templates. It could include some basic/pretty templates.

What do you think about the second one?

@advename
Copy link
Author

advename commented Apr 9, 2020

Yes, that's what i also thought. I really wish to use CSS in my final product, but the Latex conversion is much better IMHO.

I think Ill have to use the HTML approach, thanks again tho!

@wikiti
Copy link
Owner

wikiti commented Oct 17, 2020

I've already implemented templates support, so I'm closing this issue. Please, feel free to comment in this one o create a new one in case something is not working properly.

@wikiti wikiti closed this as completed Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants