retext icon indicating copy to clipboard operation
retext copied to clipboard

Custom stylesheet not being used?

Open kg4zow opened this issue 2 years ago • 1 comments

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"?

kg4zow avatar Jul 30 '23 00:07 kg4zow

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.

mitya57 avatar Aug 06 '23 13:08 mitya57