In the layout/module file format of LyX, is there any method to produce a paragraph style, that renders and exports like
\paragraph{title}
content...
The purpose would be to create layouts, where \paragraph
s look as they would in the printed document.
I am aware, that a Style Paragraph
exists by default, but I am specifically looking for making the interface more WYSIWYG-like, in order to improve visual clarity. When deeply nested elements occur, especially beyond secnumdepth
, it is hard to tell for the formatting if an element is on a higher or lower nesting level. (Added as clarification after Torbjørn's answer)
LyX "Style" definitions have an option
LabelType manual
A style
Style CustomParagraph
Category Sectioning
LabelType manual
LatexType command
LatexName paragraphx
LabelFont
Series bold
EndFont
LeftDelim "<br/>"
RightDelim "<br/>"
Preamble
\newcommand\paragraphx[1][]{\paragraph{#1}}
EndPreamble
End
would render the words until the first space bold (non-breaking spaces can be used to render multiple words bold), and export as
\paragraphx[{title}]{
content...
}
While this works, it is ugly. I much rather would have the style exported as
\paragraph{title}
content...
and avoid the auxiliary command \paragraphx[]{}
.