General ⇒ Line break directly after paragraph title
Line break directly after paragraph title
I would like something like a \subsubsubsection but without the numbering, is there a way?
By the way I'm using the article layout!
Thanks, Niklas.
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
Line break directly after paragraph title
Code: Select all
\documentclass{article}
\makeatletter
\renewcommand\paragraph{%
\@startsection{paragraph}{4}{0mm}%
{-\baselineskip}%
{.5\baselineskip}%
{\normalfont\normalsize\bfseries}}
\makeatother
\begin{document}
\paragraph{A paragraph}
some text text tetx
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
Line break directly after paragraph title
gmedina's solution is working well! I had just one small thought while reading it: instead of a multiple of \baselineskip I would prefer a length with glue, because LaTeX can stretch and shrink that slightly (like with the other sectioning commands) to improve the page layout. One may see no difference, but in some cases one might. Similar to the source in article.cls I would write:
Code: Select all
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
Stefan
Re: Line break directly after paragraph title
I would really be lost writing in Latex without an internet connection and your help, thanks!
/Niklas