LyX displays text in ERT layouts block aligned, and there is no "align" parameter for the inset layouts (such parameter exists for styles, and may take values such as Left, Block...).

I don't find it useful in any way to have ERT text displayed block-aligned in LyX, it's even inconvenient while editing and less readable, so I'm wondering is there any way I could change it to left-align?

2 Answers 2


I got the answer from LyX mailing list. It's by redefining the Plain Layout as follows:

Style "Plain Layout"
    Align Left
  • How do I apply this in Lyx? Commented Mar 25, 2013 at 14:48

I have the following in my preambles and custom layouts:

InsetLayout ERT
    Align Left   # For readibility onscreen, regardless of justification in document

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .