Hi,
> Is your document hosted at
https://github.com/pbiering/ipv6calc/tree/4.3.0/doc?
Yes, here already the one edited with LyX 2.4 and
> (I bet the XSLT file you mention is the one in this repo?)
Yes, this is used.
> I see that this LyX document has raw DocBook, which I didn't expect at
> all. I'll see what I can do; I thought ERTs would have survived as
> comments, at least.
>
> (By the way, LyX 2.4 now only supports DocBook 5 instead of DocBook 4,
> you might need to update parts of your toolchain.)
The "toolchain" is "generate.sh" in same directory.
The one worked with LyX 2.3 is here:
https://github.com/pbiering/ipv6calc/tree/4.2.2/doc
Thank you for digging into.
Regards,
Peter
Am 06.02.25 um 04:00 schrieb Thibaut Cuvelier:
On Wed, 5 Feb 2025 at 05:42, Peter Bieringer <p...@bieringer.de
<mailto:p...@bieringer.de>> wrote:
Hi,
see for more details: https://latex.org/forum/viewtopic.php?t=36140
<https://latex.org/forum/viewtopic.php?t=36140>
where "milka" replied that this looks like a bug.
I had to update to newer LyX version and it looks like the "DocBook 5"
export causes some troubles on my side.
Before: LyX Doc -> DocBook export to SGML -> conversion to html
Now: LyX Doc -> DocBook export to XML-> conversion to html
The embedded code (\begin_layout Plain Layout...) in the document
contained since long time relate to info/revision and so on did not
proper survive but is required for the box
https://www.deepspace6.net/projects/ipv6calc.html <https://
www.deepspace6.net/projects/ipv6calc.html>
Old set worked at least with 2.3.7
https://github.com/pbiering/ipv6calc/tree/4.2.2/doc <https://
github.com/pbiering/ipv6calc/tree/4.2.2/doc>
New set need some tweaks for 2.4.2.1
https://github.com/pbiering/ipv6calc/blob/4.3.0/doc/ <https://
github.com/pbiering/ipv6calc/blob/4.3.0/doc/>
Tweak#1: require to add in front of
\begin_layout Right Address
pb at bieringer dot de
\end_layout
that leads at least to that the "Plain Layout" section survives the XML
export at least as comment - otherwise it will not occur in XML export
at all
=> see https://latex.org/forum/viewtopic.php?t=36140 <https://
latex.org/forum/viewtopic.php?t=36140>
Run export:
lyx --export docbook5 ipv6calc.lyx
Tweak#2: using Perl to reactivate the content
=> see https://latex.org/forum/viewtopic.php?t=36140 <https://
latex.org/forum/viewtopic.php?t=36140>
Then the conversion to HTML is proper working and the revision history
box appears in HTML.
Run conversion:
xsltproc -o ipv6calc.html db2xhtml-ipv6calc.xsl ipv6calc.xml
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel