
我正在 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}
我不知道如何使標題的第二行位於左邊距。正常的印刷風格是將標題作為一個區塊對齊。