\tableofcontents
我怎样才能使用普通字体制作章节和标题,就像小节一样?
\documentclass[floatsubsection,equationsubsection,14pt,nocolumnsxix]{eskdtext}
\usepackage{graphicx}
\usepackage{mathtext}
\usepackage[russian]{babel}
\usepackage[T1,T2A]{fontenc}
\usepackage[cp1251]{inputenc}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{pscyr}
\usepackage{array}
\usepackage{multirow}
\usepackage{eskdtotal}
\usepackage{enumitem}
\setlist{nolistsep}
\usepackage{titlesec}
\titleformat*{\section}{\bf}
\titleformat*{\subsection}{\bf}
\titlespacing*{\section}{0pt}{8mm}{8mm}
\titlespacing*{\subsection}{0pt}{15mm}{15mm}
\parindent=1,25cm
\setlength\emergencystretch{\hsize}\hbadness=10000
\linespread{1.25}
\ESKDsectStyle{section}{\normalsize}
\ESKDsectStyle{subsection}{\normalsize}
\ESKDsectStyle{subsubsection}{\normalsize}
\begin{document}
\section*{\hspace{1.25cm}Annotation}
\addcontentsline{toc}{section}{\hspace{22pt}Annotation}
\clearpage
\tableofcontents
\newpage
\section*{\hspace{1.25cm}Introduction}
\addcontentsline{toc}{section}{\hspace{22pt}Introduction}
\end{document}
答案1
由于eskdtext
文档类似乎是建立在extarticle
文档类之上的(而文档类又是从该类report
派生而来的),您可以尝试在序言中添加以下说明:
\usepackage[titles]{tocloft}
\renewcommand{\cftsecfont}{\mdseries}
\renewcommand{\cftsecpagefont}{\mdseries}