Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[14pt,twoside]{extreport} % two-side book with 12pt font
- \usepackage[nottoc]{tocbibind} % bibliography in ToC
- \usepackage[a4paper, % book with reduced margins, a4
- lmargin=2.5cm,rmargin=2cm, % set left and right margins
- tmargin=2.5cm, % set top margin
- bmargin=2cm, % set bottom margin
- marginpar=1cm, % set margin notes width
- marginparsep=0.5cm, % set notes to paragraph separation width
- headheight=17pt]{geometry} % set head height
- \usepackage{type1ec} % use postscript cm-fonts
- \usepackage[T2A]{fontenc} % internal font encoding
- \usepackage[utf8]{inputenc} % input encoding
- \usepackage{caption} % caption control
- \usepackage[english,russian]{babel} % localization
- \usepackage{indentfirst} % first indent
- \usepackage[Sonny]{fncychap} % fancy chapters
- \usepackage{fancyhdr} % fancy headers
- \usepackage{color} % define some colors
- \usepackage{subfig} % subfigures
- \usepackage{graphicx} % graphics
- \usepackage{setspace} % line spacing
- \usepackage{multirow}
- \usepackage{array}
- \usepackage{tabu}
- \usepackage[perpage]{footmisc}
- \usepackage{ragged2e} % alignment for tables
- \usepackage{tikz} % TikZ grapher
- \usepackage{pgfplots} % plotting with PGF
- \usepackage{calc} % calculates windth of string
- \usepackage{xparse} % document commands for subfigure enumeration
- \usepackage{lipsum} % dummy text generator
- \usepackage[unicode=true,
- colorlinks=true,
- linkcolor=black]{hyperref} % hyperlinks, PDF display and information options
- \hypersetup{pdftitle={Lorem Ipsum. Отчёт},
- pdfauthor={Тор A. В.},
- pdfsubject={набор отчётов},
- pdfkeywords={LaTeX, набор, отчёт},
- pdflang={ru-RU},
- citecolor=black,
- urlcolor=black}
- \pagestyle{fancy}
- \fancypagestyle{plain}{ %
- \fancyhf{} % clear all header and footer fields
- \fancyfoot[C]{\thepage} % except the center
- \renewcommand{\headrulewidth}{0pt} %
- \renewcommand{\footrulewidth}{0pt}}
- \setlength{\parindent}{5ex} % set paragraph indent
- \setlength{\parskip}{0pt} % set paragraph skip
- \clubpenalty=10000 \widowpenalty=10000 % single line penalty
- \begin{document}
- \title{Lorem Ipsum. Отчёт}
- \author{Тор~А.\,В.}
- \date{2014}
- \maketitle
- \tableofcontents
- \thispagestyle{plain}
- \fancyhead{}
- \fancyhead[C]{\rightmark}
- \chapter*{Введение\markboth{Введение}{Введение}}
- \label{ch:introduction}
- \addcontentsline{toc}{chapter}{Введение}
- \lipsum[1-10]
- \renewcommand{\sectionmark}[1]{\markright{#1}{}}
- \fancyhead{}
- \fancyhead[C]{\nouppercase\rightmark}
- \chapter{Первая глава}
- \label{ch:firstchapter}
- \lipsum[11-12]
- \section{Первый подраздел первой главы}
- \label{sec:firstsec}
- \lipsum[13-20]
- \section{Второй подраздел первой главы}
- \label{sec:secondsec}
- \lipsum[21-23]
- \subsection{Второй подраздел первой главы, первый дополнительный подраздел}
- \label{sec:firstsubsec}
- \lipsum[24-30]
- \subsection{Второй подраздел первой главы, второй дополнительный подраздел}
- \label{sec:secondsubsec}
- \lipsum[31-40]
- \chapter{Вторая глава}
- \label{ch:secondchapter}
- \lipsum[41-50]
- \renewcommand{\chaptermark}[1]{\markright{#1}{}}
- \fancyhead{}
- \fancyhead[C]{\nouppercase\rightmark}
- \appendix
- \chapter{Первое приложение}
- \label{app:firstapp}
- \lipsum[51-60]
- \chapter{Второе приложение}
- \label{app:secondapp}
- \lipsum[61-70]
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment