How to Add Whitespace to Lyx?

It is a sad day but I find myself needing to indent (or at least add whitespace) to a document in Lyx.

In particular, I have to write a formal proof, but I also have to indent it in a specific way based on the preferences of the prof.

I know Lyx is designed so you don't use whitespace, and that I would be better off perhaps using another program, but I really rely on Lyx's functionality for mathematical and logical symbols.

• There are many types of whitespace - vertical, horizontal, indentation, ... Please provide some context in the form of an example. – Werner Jan 28 '15 at 4:55
• I am looking for indentation. – Zelzy Jan 28 '15 at 4:58
• Again, there are so many options here, so it's truly impossible to help you in an effective manner. Perhaps you can just try to insert an ERT with \indent, or with \hspace{\parindent}, or with \hspace{15pt}, or... – Werner Jan 28 '15 at 5:01
• I don't know how to insert those into a Lyx document. Do I insert in Tex Code with cntrl-L? – Zelzy Jan 28 '15 at 5:19
• @Peter in LyX look at Document > Settings > Text Layout. There are options for indentation and spacing, at the document level. For more fine-grained spacing (e.g. one time spacing), put the cursor where you want to add space and go to Insert > Formatting, then choose "Horizaontal space" or "vertical space". – scottkosty Jan 28 '15 at 5:28

The way to do so in Lyx is go to Document > Configuration > Text Layout and set the paragraph indent and paragraph vertical spacing. The first menu should allow you to insert in the source preamble settings like \setlength{\parindent}{2cm}.
Another option is go to Document > Configuration > LaTeX preamble and insert directly some like \setlength{\parindent}{1em} o their raw TeX equivalent \parindent0pt.
You can add extra indents Ctrl+L\indent or via Insert>Format add special spaces like \, \, or ~. Note that these spaces could be ignored also in the first paragrah, but you can insert in ERT boxes many other spaces like \quad,\hspace{3cm} or even \mbox{~~~~~} that are not ignored in any paragraph.