LyXParagraph is ignored in output PDF file.

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
D0X
Posts: 4
Joined: Sun Dec 16, 2007 9:41 pm

Paragraph is ignored in output PDF file.

Post by D0X »

HI

I use Lyx 1.5.2 and I want insert a paragraph. I use a standard "Paragraph" env in a classical left list in lyx. In lyx the paragraph is visualized correctly but if I build a PDF the paragraph is ignored! The paragraph neither appears in the document (blank line!) nor in Table Of Content!!!

You have some suggestion?

Bye

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

D0X
Posts: 4
Joined: Sun Dec 16, 2007 9:41 pm

Re: Paragraph is ignored in output PDF file.

Post by D0X »

any idea?!?
User avatar
Alex B.
Posts: 12
Joined: Wed Feb 14, 2007 5:00 am

Paragraph is ignored in output PDF file.

Post by Alex B. »

I guess the "paragraph" you inserted wasn't the kind of paragraph you were thinking of but an environment. Just hit "Return" for a new "ordinary" paragraph.

From the Lyx User's Guide, chapter 3.3 Paragraph Environments:
The paragraph environments correspond to the various begin{environment} ... end{environment} command sequences in an ordinary LATEX file. A paragraph environment is, simply, a "container'' for a paragraph which gives that paragraph certain properties. This can include a particular style of font, different margins, a numbering scheme, labels, and so on [...] To choose a new paragraph environment, use the pull-down box on the left end of the toolbar.[...]

Note that hitting Return will typically create a new paragraph using the Standard paragraph environment.


But why should a paragraph be part of the TOC?
D0X
Posts: 4
Joined: Sun Dec 16, 2007 9:41 pm

Re: Paragraph is ignored in output PDF file.

Post by D0X »

HI

My situation is: I have a subsubsection, for example, 2.1.2. I insert a paragraph and automatically Lyx generate a 2.1.2.1 paragraph. This is OK. Now I want that this paragraph (2.1.2.1) appears in the pdf document. Instead this don't exist in the document (blank line...) and so don't appears in TOC. In "Numbering & TOC" option the "Numbering" and "List in TOC" have a maximum value...So Paragraph must appears in TOC...
User avatar
Alex B.
Posts: 12
Joined: Wed Feb 14, 2007 5:00 am

Re: Paragraph is ignored in output PDF file.

Post by Alex B. »

I understand... If your document class is "article", just add the following lines to your document's preamble (the User's Guide should help if you don't know how to do this):

\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}

and use the "paragraph" entry from the menu similar to "subsubsection" to include 4 levels in the TOC. For the "book" class, "5" instead of "4" in the preamble should be appropriate because of the additional "chapter" environment.

This should work for both the DVI and PDF output. What you see in LyX, e.g. no numbering of the "paragraph", is completely irrelevant.
D0X
Posts: 4
Joined: Sun Dec 16, 2007 9:41 pm

Re: Paragraph is ignored in output PDF file.

Post by D0X »

HI!

TNX for your help. :D


Immediately did not work well, however, I have set as the "default document", deleted and reinserted the paragrah and now appears to be working...

TNX!

Best regards
Post Reply