Il 11/07/22 08:02, Steve Litt ha scritto:
Lorenzo Bertini said on Mon, 11 Jul 2022 04:00:56 +0200



LyX has two (three?) ways of inserting custom stuff in the <head> of a
LyXHTML document, like for example CSS:

1. if you write your own layout file, or use the convenient "local
layout" section in the document settings (so you don't have to bother
with files), LyX will put in the <head> all the relevant CSS.

2. you can put "AddToHTMLPreamble" in a local layout to have custom
snippets added to the <head>; beware it will be put BEFORE any layout
generated CSS, so anything hardcoded by the layout will override your
custom rules; in this case you will have to edit the specific layout
(a couple lines in the local layout, nothing daunting). This is
documented in the "Customization" tutorial.

Sounds like a misunderstanding of the "cascading" part of Cascading
Style Sheets (CSS).

Eh, I might, but this is what I observe. Cross checking is welcome.



3(?). Some time ago I asked on lyx-devel for a "preamble tab" in
document settings, but for LyXHTML instead of LaTeX. This would put
everything inside it AFTER everything in the head so it would have the
last words on everything. The patch I made is in
https://www.lyx.org/trac/ticket/12061.

18 months ago. Well, you did your part.

I posted the patch on lyx-devel way before (its been years) but it's nobody's fault it never make it through. Its a workaround at best, and not something wanted by everybody (me included, it feels against LyX's way of doing things). Richard originally asked for it to be posted, but then had no time to follow up. Nobody is at fault here.


If you think something LyX puts in the preamble is outdated or
hardcoding too much, feel free to report it on the bug tracker
https://www.lyx.org/trac/wiki/BugTrackerHome. I'm reporting everything
I find about LyXHTML but I always feel like I'm the only one using it

Ixnay on bugtrackers. I'm not going to learn 30 different bugtrackers,
when they consistently ask the wrong questions and aren't responded to
anyway. I'd rather code around this stuff myself.


SteveT

Steve Litt
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm

This is very far from my experience with bug trackers; to me they all ask the same (right) questions, there's nothing new to learn, and I get answers most of the time. I'm sorry if circumstances led you to believe this.

Lorenzo
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to