TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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

Style "Plain Layout"
    Align Left
share|improve this answer
How do I apply this in Lyx? – hkBattousai Mar 25 '13 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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.