- Is there any way to make first line of subsection title be aligned with \parident and second line -- aligned to the left?
- I need to make different spacing between title, subtitle and subsubtitle: a. Spacing between section title and subsection title -- 8mm; b. Spacing between any title and text -- 15mm; c. Spacing between text and subsection title --- 1,5 linespacing.
Tried to do this way, but it doesn't give right results:
\documentclass{article}
\usepackage{titlesec}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\titleformat{\section}{\normalfont\fontsize{16}{15}\bfseries\filcenter}{\thesection}{1em}{}
\titleformat{\subsection}{\normalfont\fontsize{14}{15}\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\normalfont\fontsize{14}{15}}{\thesubsubsection}{1em}{}
\titlespacing{\section}{}{10mm}{10mm}
\titlespacing{\subsection}{\parindent}{25mm}{15mm}
\titlespacing{\subsubsection}{\parindent}{25mm}{15mm}
\begin{document}
\section{For three years, car mechanic Paen Long stayed up long after his wife went to bed each night, spending countless hours watching videos on YouTube}
\subsection{For three years, car mechanic Paen Long stayed up long after his wife went to bed each night, spending countless hours watching videos on YouTube}
\subsubsection{For three years, car mechanic Paen Long stayed up long after his wife went to bed each night, spending countless hours watching videos on YouTube}
For three years, car mechanic Paen Long stayed up long after his wife went to bed each night, spending countless hours watching videos on YouTube.
\end{document}
UPD. After system upgrade (including texlive upgrade) there is no text in titles if I use \titleformat.
\titleformat{\subsection}[block]{\normalfont\fontsize{14}{15}\bfseries}{\thesubsection}{1em}{}
does the job for the first point. For the second (which is not very clear, I confess) try to with the option[largestsep]
/[aftersep]
(the latter is the default).