我正在用 LYX 准备我的论文。文本是俄语的,但英文中有很多符号和化学公式。现在我使用“扩展文章”类,标准。我需要制作一个类似于此示例的目录(论文样式规则非常严格):
所以我需要使用一些特殊命令来更改章节标题和编号。但我不熟悉这种“微调”。有什么有用的命令或一些可以轻松提供帮助的软件包吗?
.tex 文件中的代码:
\documentclass[14pt]{extarticle}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[LGR,T1,T2A]{fontenc}
\usepackage[koi8-r]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2.5cm,rmargin=1.1cm,headheight=17pt}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{1}
\usepackage{float}
\usepackage{units}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{stmaryrd}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{esint}
\usepackage{subscript}
\onehalfspacing
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\newcommand*\LyXZeroWidthSpace{\hspace{0pt}}
\DeclareRobustCommand{\greektext}{%
\fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
\ProvideTextCommand{\~}{LGR}[1]{\char126#1}
\DeclareRobustCommand{\cyrtext}{%
\fontencoding{T2A}\selectfont\def\encodingdefault{T2A}}
\DeclareRobustCommand{\textcyr}[1]{\leavevmode{\cyrtext #1}}
\newcommand{\lyxmathsym}[1]{\ifmmode\begingroup\def\b@ld{bold}
\text{\ifx\math@version\b@ld\bfseries\fi#1}\endgroup\else#1\fi}
\ProvideTextCommandDefault{\guillemotleft}{%
{\usefont{U}{lasy}{m}{n}\char'50\kern-.15em\char'50}%
\penalty10000\hskip0pt\relax%
}
\ProvideTextCommandDefault{\guillemotright}{%
\penalty10000\hskip0pt%
{\usefont{U}{lasy}{m}{n}\char'51\kern-.15em\char'51}%
}
\DeclareTextSymbolDefault{\textquotedbl}{T1}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[koi8-r]{inputenc}
\usepackage{mathtext}
\usepackage{titlesec}
%\usepackage[bibencoding=utf8]{biblatex}
\usepackage[english, russian]{babel}
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\hfil\Large\bfseries}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftsecpresnum}{Sect }
%\renewcommand{\cftchappresnum}{Chapter }
\setlength{\cftsecnumwidth}{6em}
\renewcommand{\headrulewidth}{0}
%\renewcommand \thepart {\arabic\part}
\makeatother
\usepackage[style=gost-numeric,bibencoding=utf8, sorting=none]{biblatex}
\addbibresource{0C__Users_1_Documents_My_diss_All_bib.bib}
\begin{document}
\rhead{}
\chead{\thepage}
\cfoot{}
\begin{center}
{\large{}Титульная}\newpage{}
\par\end{center}
\tableofcontents
\clearpage
\newpage{}
\part*{{\large{}Введение }}
\section*{{\normalsize{}Цели диссертационной работы}}
\section*{{\normalsize{}Апробация работы} }
Основные результаты диссертационной работы были представлены в виде ..
\newpage{}
\part{{\normalsize{}Литературный обзор}}
\vspace{42pt}
\section{{\normalsize{}Природа обменного взаимодействия}}
\vspace{42pt}
\section{{\normalsize{}Обменные взаимодействия в соединениях РЗМ с Fe, Ni,
Mn}}
\vspace{42pt}
В интерметаллических соединениях РЗМ с 3d переходными металлами..
\newpage{}
\part{{\normalsize{}Технология приготовления и аттестация образцов }}
\vspace{42pt}
\section{{\normalsize{}Микроструктура }}
\section{{\normalsize{}Измерение температуры Кюри и намагниченности }}
\section{{\normalsize{}Методика измерения ... }}
\vspace{42pt}
\newpage{}
\part{{\normalsize{}Результаты}}
\vspace{42pt}
\section{{\normalsize{}Гигантская ... }}
\section{{\normalsize{}Магнитные свойства..}}
\newpage{}
\part{Выводы}
\section*{\newpage Литература}
\nocite{*}
\printbibliography
\end{document}
命令“\cftchappresnum”由于某种原因不起作用 - 我已将其放在上面示例中的注释中。
答案1
由于您没有提供 MWE,我不知道您如何将第一个以及后来的未编号条目添加到目录中。我不懂俄语;以下内容是英文,我希望您比我更精通多种语言。
该tocloft
包可能会有些帮助。
% tocrussianprob.tex SE 561296
\documentclass{article}
\usepackage{tocloft}
% centering the ToC title
\renewcommand{\cfttoctitlefont}{\hfil\Large\bfseries}
\renewcommand{\cftaftertoctitle}{\hfill}
% put section before section entries
\renewcommand{\cftsecpresnum}{Section }
\setlength{\cftsecnumwidth}{5em} % need more space for Section + num
\begin{document}
\tableofcontents
\clearpage
\section{First section}
\subsection{A subsection}
\subsubsection{A sub-subsection}
\section{Second section}
\subsection{A subsection with a very long title, I hope it's over one line in the ToC}
\end{document}
我不知道如何让标题的第二行位于左边距。正常的印刷样式是将标题作为一个块对齐。