Kenward Vaughan wrote:
On Mon, Nov 28, 2005 at 11:52:08AM +0100, Helge Hafting wrote:
Paul Johnson wrote:
What is the best advice now for LyX users who want paragraphs shaped
like this
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
But we want to control both the indentation of the lines 2-3 as well
as the negative indentation of line 1.
...
Have you tried using the "verse" paragraph type instead of "standard"?
It looks like your example above. Perhaps a bit counterintuitive when you
aren't writing poetry, but it has a hanging indent and is very simple to
use.
The big problem was paragraph positioning. Verse has margins that are
too big.
\parindent=-3em pushes the first line back into the margin and does
not indent the rest of the paragraph.
I found the magic bullet. After hours and hours of stumbling around the
Internet, I found ERT
\leftskip=3em
to push the whole paragraph in . Then
\parindent=-3em
works to pull back the first line. This is a good solution, EXCEPT if
you are doing this to the first paragraph of a section. As another
poster noted, LyX (and LaTeX) are stubborn about that one.
The Verse environment is a better approach, the only problem is margins
are too big. But ERT \leftskip fixes it:
\leftskip=-3em
Man, this one was hard to find. Here is where I got this idea:
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/TeTeX-HOWTO.html
I worry that using the verse environment might be dangerous because some
layouts might have fancy fonts or nonsense for verses.
For lists, see if the paragraph type "labeling" might be useful. Here
the indent
is adjustable thorugh paragraph settings.
If you really want a negative indent (first line of paragraph stick into
the margin)
try setting the document to use indented text and put \parindent=-2em
in the document preamble. (Or in an ERT box in the first paragraph you want
to be this way. In this case, make sure there is a space after the
command.)
The \parindent works fine for the 1st line, but not the 1st paragraph,
which is stubborn in its insistence about being non-indented (at least,
after a heading of some sort).
Yes, This is true.
:(
Kenward
--
Paul E. Johnson email: [EMAIL PROTECTED]
Dept. of Political Science http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66044-3177 FAX: (785) 864-5700