I have a document with article class. Here's the minimal example:

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\textclass article
\use_default_options true
        Type                  listing
        GuiName               Listing
        Placement             tbp
        Extension             lol
        NumberWithin          none
        Style                 ruled
        ListName              "List of Listings"
        IsPredefined          false
        UsesFloatPkg          true
        RefPrefix             lst



\begin_layout Section
Good Lorem ipsum

\begin_layout Standard
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 In venenatis varius mauris in ullamcorper.

\begin_layout Standard
Integer eget lectus in nisi aliquet euismod.

\begin_layout Subsection
A dirtree (the cause)

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\begin_layout Plain Layout

.1 Lorem ipsum.


\begin_layout Plain Layout




\begin_layout Section
Bad Lorem ipsum

\begin_layout Standard
Aliquam vitae mauris erat, in vehicula est.

\begin_layout Standard
Pellentesque ut justo quis lorem egestas consectetur non non felis.

\begin_layout Standard
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 Curabitur a odio eget enim feugiat congue.


When I export the document to PDF (I'm using XeTeX and Freetype Fonts, btw) paragraphs are not indented or otherwise separated in PDF output, although in LyX everything shows as it should (all paragraphs indented except the first in a section). I tried switching from indentation to vertical space but to no avail - LyX shows everything correctly, but output PDF is unchanged. It's worth mentioning I don't use anything fancy as paragraphs, just plain Standard.

Apparently the problem goes away if I remove the dirtree ERT, but I really need it (or some alternative - please suggest).

What am I missing here? Any ideas?

Version info:

❯❯ xetex -version
XeTeX using libpoppler 3.1415926-2.4-0.9998 (TeX Live 2012/TeX Live for opensuse.org)
kpathsea version 6.1.0
❯❯ zypper if lyx|grep Version
❯❯ zypper if texlive-dirtree|grep Version
Version: 2012.
  • 1
    the document fragment you show has no code relating to paragraph layout. You need to give us at least some clues. Preferably a complete small document starting \documentclass and ending \end{document} that shows non-indented paragraphs. May 7 '13 at 20:10
  • Please post both a .tex and .lyx minimal example. See here for details: wiki.lyx.org/FAQ/MinimalExample
    – scottkosty
    May 7 '13 at 21:19
  • 1
    @DavidCarlisle, scottkosty, I did reduce my file to a minimal example and edited the post. While doing that I also became aware of the apparent cause of the problem - a dirtree ERT, - solution still needed, though. I'm very new to LyX and (La)TeX, so please suggest further improvements to the post, if needed.
    – Czar
    May 7 '13 at 23:12
  • 1
    Welcome to TeX.SX! - For me, there are indented paragraphs (similar to the LyX presentation) when using XeTeX. What version of XeTeX and package "dirtree" do you use? (on a shell you might check this with xetex -version and, for TeXLive, tlmgr info dirtree) I have XeTeX 3.1415926-2.4-0.9998 and "dirtree" 0.32.
    – e-birk
    May 8 '13 at 7:47
  • @e-birk, I've added versions. I don't have tlmgr and ❯❯ cnf tlmgr shows nothing, so I used zypper info to get the versions.
    – Czar
    May 8 '13 at 11:53

Using scientific poking method I've found a workaround - if I wrap dirtree into a framebox:

_dirtree is here_

paragraphs work again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.