I have a problem with the setting of section title styles.
I have quite long titles and they often go beyond the width of the text. I also want to prevent word wraps in the title.
Now it seems like this Could you help me to limit title width and prevent word wraps?
My header is:
Code: Select all
\documentclass[10pt]{extreport}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{mathtext}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{graphicx}
\usepackage{indentfirst} % Красная строка
\graphicspath{{./img/}}
\usepackage{section}
\setlength{\secindent}{\parindent}
\setlength{\subindent}{\parindent}
\usepackage[figurename=Рисунок.]{caption}
% for figures: caption label is italic, the caption text is bold / italic
\captionsetup[figure]{labelfont=it,textfont={it}}
\renewcommand{\figurename}{Рисунок}
\RequirePackage{caption}
\DeclareCaptionLabelSeparator{defffis}{ }
\captionsetup{justification=centering,labelsep=defffis}
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\usepackage{geometry}
\geometry{
a5paper,
left=10mm,
top=15mm,
right=10mm,
bottom=20mm,
}
\usepackage{tocloft}
\cftsetindents{section}{1em}{3em}
\cftsetindents{subsection}{2em}{3em}
\renewcommand\cfttoctitlefont{\hfill\Large\bfseries}
\renewcommand\cftaftertoctitle{\hfill\mbox{}}
\setcounter{tocdepth}{2}