On  7.04.08, G. Milde wrote:
> Dear LyX-Users,
> Attach: /home/milde/.lyx/layouts/leftalign.inc

> As LyX's linebreaking algorithm does not include hyphenation of longer
> words, some very large inter-word spaces frequently occure (especially in
> languages with many long words as e.g. German).

> Readability can be improved by setting the paragraph alignment 
> in the LyX window to "left".

I converted the implementation to a "module" that can be added to a
document layout in 1.6.

Left-align of "Standard" paragraphs is still commented out, as it
prevents the indentation to be shown in LyX.

> Is there a way to retain paragraph indentation
> (with Document>Settings>Text format>"Paragraph Separation by indent")?

Günter
#\DeclareLyXModule{leftalign}
#DescriptionBegin
#Left align text (instead of block align; on screen).
#DescriptionEnd

#Author: Günter Milde <[EMAIL PROTECTED]>

# Left align instead of block align (on screen)
# ---------------------------------------------

# As LyX's linebreaking algorithm does not include hyphenation of longer
# words, some very large inter-word spaces frequently occure (especially in
# languages with many long words as, e.g., German).

# Readability can be improved by setting the paragraph alignment 
# in the LyX window to "left".
# This does not influence the appearance of the printout.

# Drawbacks: 
#
# * the Edit>Paragraph Settings dialog will display "default (left)"
#   even if the default alignment of the class is "block".
#
# * Paragraph indentation is supressed (therefore currently commented out).


# Style Standard
#       Align                 Left
# End

#stdlists
Style Itemize
        Align                 Left
End

Style Description
        Align                 Left
End

Style Enumeration
        Align                 Left
End

Style List
        Align                 Left
End

Style Quotation
        Align                 Left
End

Style Quote
        Align                 Left
End

# stdsections
Style Part
        Align                 Left
End

Style Chapter
        Align                 Left
End


Style Section
        Align                 Left
End

Style Subsection
        Align                 Left
End

Style Subsubsection
        Align                 Left
End

Reply via email to