
Estou preparando minha tese no LYX. Anteriormente, fiz uma pergunta sobre a classe de artigo, mas descobri que seria melhor usar a classe de relatório. Eu uso um pacote tocloft e o código é o seguinte:
\documentclass[14pt]{extreport}
\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[english, russian]{babel}
%\usepackage[T1,T2A]{fontenc}
\usepackage{tocloft}
\addcontentsline{toc}{chapter}{Введение}
\renewcommand{\cfttoctitlefont}{\hfil\Large\bfseries}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftchappresnum} {Глава }
\setlength{\cftchapnumwidth}{5em}
\setlength{\cftsecnumwidth}{3em}
\renewcommand{\headrulewidth}{0}
\makeatother
\usepackage[style=gost-numeric,bibencoding=utf8, sorting=none]{biblatex}
\addbibresource{0C__Users_1_Documents_My_diss_All_bib.bib}
\begin{document}
\lhead{}
\rhead{}
\chead{\thepage}
\cfoot{}
\begin{center}
{\large{}Титульная}\vspace{28pt}
\par\end{center}
\noindent \begin{center}
Специальность 01.04.11 -- физика магнитных явлений
\par\end{center}
\newpage{}
\tableofcontents
\clearpage
\newpage{}
\chapter*{{\large{}Введение }}
\section*{{\normalsize{}Цели диссертационной работы}}
\section*{{\normalsize{}Апробация работы} }
Основные результаты диссертационной..
\newpage{}
\chapter{{\large{}Литературный обзор}}
\vspace{42pt}
\section{{\normalsize{}Природа обменного взаимодействия}}
\section{{\normalsize{}Обменные взаимодействия в соединениях РЗМ с Fe, Ni,
Mn}}
\section{{\normalsize{}Кристаллическая структура...}}
\newpage{}
\chapter{{\large{}Технология приготовления и аттестация образцов }}
\vspace{42pt}
\section{{\normalsize{}Микроструктура }}
\section{{\normalsize{}Методика измерения магнитокалорического эффекта в малых
полях и больших полях}}
\section{{\normalsize{}Измерение магнитной восприимчивости}}
\newpage{}
\chapter{{\large{}Результаты}}
\vspace{42pt}
\section{{\normalsize{}Гигантская объёмная ... }}
\vspace{42pt}
\section{{\normalsize{}Магнитные свойства...}}
\vspace{42pt}
\newpage{}
\chapter{{\large{}Выводы}}
\newpage{}
\chapter*{{\large{}Литература}}
\addcontentsline{toc}{chapter}{Литература}
\nocite{*}
\printbibliography
\end{document}
Há 2 pontos que ainda não parecem como deveriam. Primeiro: o cabeçalho do ToC não está centralizado. No entanto, usei um comando \renewcommand{\cfttoctitlefont} que deve fornecer centralização.
E preciso que o nome do capítulo ('Глава ') seja seguido por pontos, assim como o nome da seção.
Como posso editá-los?
Responder1
Por favor, useexemplos de trabalho mínimos (MWE)para simplificar a solução de problemas.
Em primeiro lugar, você está no caminho certo ao centralizar o título do sumário. Adicionar este comando ao preâmbulo deve produzir a saída desejada.
\renewcommand{\cfttoctitlefont}{\hfill}
\renewcommand{\cftaftertoctitle}{\hfill}
Em segundo lugar, você pode gerar pontos iniciais após as entradas da seção no índice adicionando o seguinte comando ao seu preâmbulo.
\renewcommand{\cftchapdotsep}{\cftdotsep}
Juntando tudo em um MWE.
\documentclass{extreport}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{1}
\usepackage{tocloft}
\addtocontents{toc}{\protect\thispagestyle{fancy}}
% centre toc title
\renewcommand{\cfttoctitlefont}{\hfill\Large}
\renewcommand{\cftaftertoctitle}{\hfill}
% add leading dots to chapters in TOC
\renewcommand{\cftchapdotsep}{\cftdotsep}
\begin{document}
\tableofcontents
\chapter{First}
\section{Some Section}
\chapter{Second}
\section{Another Section}
\end{document}