How to achieve a simple <p> element with LyXHTML
ehud.behar at protonmail.com
ehud.behar at protonmail.com
Sat Jul 9 18:59:53 UTC 2022
I am trying to remove the html attributes assigned by LyXHTML to the Standard text inserted in the editor.
LyX's default is to render Standard as
<div class="standard" id='magicparlabel-15'>This is text inserted in Standard</div>
together with
p.standard {
text-align: left;
}
appearing in the header.
What I want is to get the simple html code
<p>This is text inserted in Standard</p>
In order to do that I am writing my Style in a layout file. What I have at the moment is the following:
(I copied the first rows from stdclass.inc)
Style Standard
Category MainText
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
HTMLAttr " "
End
After a lot of trial and error, using the last line I eliminated the "div class="standard"" from the p element but still LyX assigns to it an id="some number" which I want to eliminate too.
Any idea about it would be very welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220709/cf4e10c8/attachment-0001.html>
More information about the lyx-users
mailing list