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

Custom stylesheet not being used? #630

Open
kg4zow opened this issue Jul 30, 2023 · 1 comment
Open

Custom stylesheet not being used? #630

kg4zow opened this issue Jul 30, 2023 · 1 comment

Comments

@kg4zow
Copy link

kg4zow commented Jul 30, 2023

Using ReText 8.0.0 under Debian 12.1 (installed from a Debian repo).

I use a custom stylesheet, maybe 25 lines long, which adds horizontal lines above H1, H2, and H3 elements, to serve as a visual separation between sections when somebody reads a rendered file. I've noticed that ReText apparently only uses the custom stylesheet for "Export to HTML", however I'm used to also seeing them when I'm working on a file (using "MacDown" for macOS), and I need the custom stylesheet to be used when exporting to PDF.

The only related setting I could find in the GUI is the button to select the stylesheet file - I don't see anything like "use stylesheet for live preview".

Am I missing something here?

If not, how hard would it be to use the custom stylesheet for Live Preview and "Export to PDF"?

@mitya57
Copy link
Member

mitya57 commented Aug 6, 2023

ReText does use the stylesheet for preview and export to PDF.

If it doesn't work, try enabling the WebEngine renderer (requires python3-pyqt6.qtwebengine Debian package). The standard renderer only supports a subset of CSS, while Qt WebEngine supports everything as a normal browser supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants