Guest User

Enumeration in Appendicies

a guest
May 11th, 2014
909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.65 KB | None | 0 0
  1. \documentclass[14pt,twoside]{extreport}     % two-side book with 12pt font
  2.  
  3. \usepackage[nottoc]{tocbibind}          % bibliography in ToC
  4. \usepackage[a4paper,                % book with reduced margins, a4
  5.         lmargin=2.5cm,rmargin=2cm,      % set left and right margins
  6.         tmargin=2.5cm,          % set top margin
  7.         bmargin=2cm,            % set bottom margin
  8.         marginpar=1cm,          % set margin notes width
  9.         marginparsep=0.5cm,         % set notes to paragraph separation width
  10.         headheight=17pt]{geometry}      % set head height
  11. \usepackage{type1ec}                % use postscript cm-fonts
  12. \usepackage[T2A]{fontenc}           % internal font encoding
  13. \usepackage[utf8]{inputenc}         % input encoding
  14. \usepackage{caption}                % caption control
  15. \usepackage[english,russian]{babel}     % localization
  16. \usepackage{indentfirst}            % first indent
  17. \usepackage[Sonny]{fncychap}            % fancy chapters
  18. \usepackage{fancyhdr}               % fancy headers
  19. \usepackage{color}              % define some colors
  20. \usepackage{subfig}             % subfigures
  21. \usepackage{graphicx}               % graphics
  22. \usepackage{setspace}               % line spacing
  23. \usepackage{multirow}
  24. \usepackage{array}
  25. \usepackage{tabu}
  26. \usepackage[perpage]{footmisc}
  27. \usepackage{ragged2e}               % alignment for tables
  28. \usepackage{tikz}               % TikZ grapher
  29. \usepackage{pgfplots}               % plotting with PGF
  30. \usepackage{calc}               % calculates windth of string
  31. \usepackage{xparse}             % document commands for subfigure enumeration
  32. \usepackage{lipsum}             % dummy text generator
  33. \usepackage[unicode=true,
  34.         colorlinks=true,
  35.         linkcolor=black]{hyperref}      % hyperlinks, PDF display and information options
  36.  
  37. \hypersetup{pdftitle={Lorem Ipsum. Отчёт},
  38.         pdfauthor={Тор A. В.},
  39.         pdfsubject={набор отчётов},
  40.         pdfkeywords={LaTeX, набор, отчёт},
  41.         pdflang={ru-RU},
  42.         citecolor=black,
  43.         urlcolor=black}
  44.  
  45. \pagestyle{fancy}
  46. \fancypagestyle{plain}{             %
  47.   \fancyhf{}                    % clear all header and footer fields
  48.   \fancyfoot[C]{\thepage}           % except the center
  49.   \renewcommand{\headrulewidth}{0pt}        %
  50.   \renewcommand{\footrulewidth}{0pt}}
  51.  
  52. \setlength{\parindent}{5ex}         % set paragraph indent
  53. \setlength{\parskip}{0pt}           % set paragraph skip
  54. \clubpenalty=10000 \widowpenalty=10000      % single line penalty
  55.  
  56.  
  57. \begin{document}
  58.  
  59. \title{Lorem Ipsum. Отчёт}
  60. \author{Тор~А.\,В.}
  61. \date{2014}
  62.  
  63. \maketitle
  64. \tableofcontents
  65. \thispagestyle{plain}
  66.  
  67.  
  68.  
  69. \fancyhead{}
  70. \fancyhead[C]{\rightmark}
  71.  
  72. \chapter*{Введение\markboth{Введение}{Введение}}
  73. \label{ch:introduction}
  74. \addcontentsline{toc}{chapter}{Введение}
  75. \lipsum[1-10]
  76.  
  77.  
  78.  
  79. \renewcommand{\sectionmark}[1]{\markright{#1}{}}
  80. \fancyhead{}
  81. \fancyhead[C]{\nouppercase\rightmark}
  82.  
  83. \chapter{Первая глава}
  84. \label{ch:firstchapter}
  85. \lipsum[11-12]
  86.  
  87. \section{Первый подраздел первой главы}
  88. \label{sec:firstsec}
  89. \lipsum[13-20]
  90.  
  91. \section{Второй подраздел первой главы}
  92. \label{sec:secondsec}
  93. \lipsum[21-23]
  94.  
  95. \subsection{Второй подраздел первой главы, первый дополнительный подраздел}
  96. \label{sec:firstsubsec}
  97. \lipsum[24-30]
  98.  
  99. \subsection{Второй подраздел первой главы, второй дополнительный подраздел}
  100. \label{sec:secondsubsec}
  101. \lipsum[31-40]
  102.  
  103.  
  104. \chapter{Вторая глава}
  105. \label{ch:secondchapter}
  106. \lipsum[41-50]
  107.  
  108.  
  109.  
  110. \renewcommand{\chaptermark}[1]{\markright{#1}{}}
  111. \fancyhead{}
  112. \fancyhead[C]{\nouppercase\rightmark}
  113. \appendix
  114.  
  115. \chapter{Первое приложение}
  116. \label{app:firstapp}
  117. \lipsum[51-60]
  118.  
  119. \chapter{Второе приложение}
  120. \label{app:secondapp}
  121. \lipsum[61-70]
  122.  
  123.  
  124. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment