layout with Parindent not working

Richard Kimberly Heck rikiheck at gmail.com
Tue Aug 11 18:54:06 UTC 2026


On 8/10/26 8:32 PM, ken rector wrote:
> Hi Riki,
>
> Thanks for your help.  You can probably tell that I'm new at this and 
> I've used chatgpt for help.
>
> I think the parIndent, Parskip and BottomSep only affect the edit 
> window so I nopped them.

Yes, though they can be helpful in giving visual clues.

> I think {} indicates title text string.

No, that is just nothing. Braces just bunch things. That bunches 
nothing, so it's nothing.

In an environment, you define two things: What happens before it starts, 
and what happens after it. What you want, I think, is:

Preamble

   \newenvironment{grammertitle}

       {\setlength{\parindent}{0pt}\vspace{1\baselineskip}}

       {\vspace{4\baselineskip}}

EndPreamble

The first line (stuff in paired braces) sets no indent and then says: 
Skip a line's worth of vertical space. The the contents of the 
environment (what you type in LyX) will appear. After that, there will 
be another skip of 4 lines.

In general, we have:

\newenvironment{newenvname}
     {STUFF THAT HAPPENS BEFORE}
     {STUFF THAT HAPPENS AFTER}

As Ehud suggested, if that all seems new, then I'd suggest something 
like this:

https://www.learnlatex.org/en/
https://latexguide.org/contents/

LaTeX is not that hard, but it does take some getting used to.

Riki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260811/691edecd/attachment.htm>


More information about the lyx-users mailing list