LyXText after numeration "paragraph"

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Tu154
Posts: 5
Joined: Fri Jun 03, 2011 3:58 pm

Text after numeration "paragraph"

Post by Tu154 »

Hello,

I write my thesis in Lyx and use the article (Koma-Script) class.

When I use the numeration "paragrph", the text in this chapter starts behind in the same line.
How can I change this to normal style, what means the text begins one line under the numeration?

Thank you in advance,
Domser

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Text after numeration "paragraph"

Post by Stefan Kottwitz »

Hi Domser,

welcome to the board!

The package titlesec is very useful for customizing headings. Here, for just one heading type, you could redefine \paragraph to be similar to the original \subsection command of the class. Just place this code in your document preamble, adjust the lengths if desired:

Code: Select all

\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  {-3.25ex\@plus -1ex \@minus -.2ex}%
  {1.5ex \@plus .2ex}%
  {\ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax
    \setlength{\parfillskip}{\z@ plus 1fil}\fi
    \raggedsection\normalfont\sectfont\nobreak\size@paragraph}%
  }%
}
\makeatother
Stefan
LaTeX.org admin
Tu154
Posts: 5
Joined: Fri Jun 03, 2011 3:58 pm

Re: Text after numeration "paragraph"

Post by Tu154 »

Hi Stefan,

thanks a lot for your help! it works! (:

Best regards,
Domser
Post Reply