change xml info when exporting to LyXHTML
Steve Litt
slitt at troubleshooters.com
Mon Jul 11 06:02:33 UTC 2022
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).
>
>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.
>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
More information about the lyx-users
mailing list