
Estoy preparando mi tesis en LYX. El texto está en ruso, pero hay muchos símbolos y fórmulas químicas en inglés. Ahora trabajo con la clase estándar de "artículo extendido". Necesito hacer una ToC similar a este ejemplo (las reglas para el estilo de tesis son bastante estrictas):
Entonces necesito usar algunos comandos especiales para cambiar los títulos y la numeración de las secciones. Pero no estoy familiarizado con este "ajuste". ¿Hay algún comando útil o algún paquete que pueda ayudar fácilmente?
Código en el archivo .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}
El comando "\cftchappresnum" no funcionó por algún motivo; lo puse en el comentario en el ejemplo anterior.
Respuesta1
Como no ha proporcionado un MWE, no sé cómo agregó su primera y posterior entrada sin numerar al ToC. No leo ruso; lo siguiente está en inglés y espero que seas más multilingüe que yo.
El tocloft
paquete puede resultar de alguna ayuda.
% 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}
No sé cómo hacer que la segunda línea de un título esté en el margen izquierdo. El estilo tipográfico normal es que los títulos estén alineados como un bloque.