LyXleft justify in editor

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
hroberts
Posts: 1
Joined: Thu Oct 16, 2008 5:43 pm

left justify in editor

Post by hroberts »

Is there a way to make paragraphs in the editor left justify (ragged right) by default? I can do it for individual paragraphs, but that obviously doesn't scale well.

Thanks!

-hal

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Maksi
Posts: 52
Joined: Sun Mar 16, 2008 12:12 pm

left justify in editor

Post by Maksi »

That is not really the point of LaTeX but sometimes needed. However, it is no problem.

Solution 1:

Code: Select all

\begin{flushleft}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Code: Select all

\end{flushleft}
What you see in code brackets here needs to be in ERT in LyX.

Solution 2:
Use the ragged2e-package and load it in your Preamble (LyX -> Document -> Settings -> LaTeX Preamble). Then follow the instructions of the package documentation. Whenever you need to fill in LaTeX code in the text use ERT.


Thanks to Stefan for his advice.
A Humanities user of LaTeX :)
Post Reply