2% extra credit: dashared
5\NeedsTeXFormat{LaTeX2e}
9\LoadClass[a4paper, 12pt]{article}
11\RequirePackage{geometry}
12\RequirePackage{listings}
13\RequirePackage{fancyhdr}
14\RequirePackage{setspace}
15\RequirePackage{titlesec}
16\RequirePackage{graphicx}
17\RequirePackage[T2A]{fontenc}
18\RequirePackage[utf8]{inputenc}
19\RequirePackage[unicode]{hyperref}
22\RequirePackage{textcomp}
23\RequirePackage{lastpage}
24\RequirePackage{longtable}
25\RequirePackage{multirow}
26\RequirePackage{indentfirst}
27\RequirePackage{enumitem}
28\RequirePackage{tocloft}
29\RequirePackage{caption}
30\RequirePackage{etoolbox}
31\RequirePackage{iflang}
33\setcounter{secnumdepth}{4}
35\titleformat{\paragraph}
36{\normalfont\normalsize\bfseries}{\theparagraph}{0mm}{.~}
37\titlespacing*{\paragraph}
38{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
42\AddEnumerateCounter{\asbuk}{\@asbuk}{\cyrm}
43\renewcommand{\theenumi}{(\asbuk{enumi})}
44\renewcommand{\labelenumi}{\asbuk{enumi})}
47\setenumerate[1]{label={\arabic*)}}
48\setenumerate[2]{label={--}}
49\setenumerate[3]{label={\asbuk*)}}
51\DeclareUnicodeCharacter{306}{{\color{red} \textbf{По всей видимости либо ты откуда-то не очень хорошо скопировал, либо у тебя с вводом что-то не то, потому что буква Й у тебя состоит из двух скаляров юникода. Удали этот Й и напечатай его заново. (Выйди и зайди нормально)} }}
53\RequirePackage[russian,english]{babel}
55\titlelabel{\thetitle.~}
58 basicstyle=\small\ttfamily,
73\geometry{left=20mm, right=10mm, top=25mm, bottom=25mm, headheight=25mm}
75\DeclareCaptionLabelSeparator{emdash}{ --- }
77 justification=centering,
78 singlelinecheck=false,
89 \thepage \\ \@documentCode
92\renewcommand\headrulewidth{0pt}
97 \begin{tabular}{|p{0.30\linewidth}|p{0.14\linewidth}|p{0.15\linewidth}|p{0.14\linewidth}|p{0.14\linewidth}|}
100 \IfLanguageName{english}{Change}{Изм.} & \IfLanguageName{english}{Page}{Лист} & \IfLanguageName{english}{Document num.}{\textnumero~докум.} & \IfLanguageName{english}{Signature}{Подп.} & \IfLanguageName{english}{Date}{Дата}\\
102 \footnotesize{\@documentCode}& & & &\\
104 \IfLanguageName{english}{inv. num. of orig.}{Инв. \textnumero~подл.} & \IfLanguageName{english}{Sig. and date}{Подп. и дата} & \IfLanguageName{english}{inv. num.}{Взам. инв. \textnumero} & \IfLanguageName{english}{inv. num. of copy}{Инв. \textnumero~дубл.}& \IfLanguageName{english}{Sig. and date}{Подп. и дата} \\
118\tocloftpagestyle{fancy}
119\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
121\setcounter{tocdepth}{2}
125\renewcommand{\@title}{\color{red}{TODO}}
126\renewcommand{\title}[1]{
127 \renewcommand{\@title}{#1}
130\newcommand{\@institute}{
131 \IfLanguageName{english}
132 {national research university\\<<higher school of economics>>}
133 {правительство российской федерации\\
134 национальный исследовательский университет \\
135 «высшая школа экономики»}}
136\newcommand{\institute}[1]{
137 \renewcommand{\@institute}{#1}
140\newcommand{\@faculty}{
141 \IfLanguageName{english}
142 {Faculty of Computer Science}
143 {Факультет компьютерных наук\\
144 Департамент программной инженерии}}
145\newcommand{\faculty}[1]{
146 \renewcommand{\@faculty}{#1}
149\newcommand{\@academicTeacherTitle}{{\color{red}{TODO}}}
150\newcommand{\@academicTeacherName}{{\color{red}{TODO}}}
151\newcommand{\academicTeacher}[2]{
152 \renewcommand{\@academicTeacherTitle}{#1}
153 \renewcommand{\@academicTeacherName}{#2}
156\newcommand{\@academicSupervisorName}{\IfLanguageName{english}{V. V. Shilov}{В. В. Шилов}}
157\newcommand{\@academicSupervisorTitle}{
158 \IfLanguageName{english}
159 {Academic supervisor of the <<software engineering>> programme, PhD}
160 {Академический руководитель образовательной программы «Программная инженерия»
161 профессор департамента программной инженерии, канд. техн. наук}}
162\newcommand{\academicSupervisor}[2]{
163 \renewcommand{\@academicSupervisorTitle}{#1}
164 \renewcommand{\@academicSupervisorName}{#2}
167\newcommand{\@documentTitle}{{\color{red}{TODO}}}
168\newcommand{\documentTitle}[1]{
169 \renewcommand{\@documentTitle}{#1}
172\newcommand{\@documentCode}{{\color{red}{TODO}}}
173\newcommand{\documentCode}[1]{
174 \renewcommand{\@documentCode}{#1}
177\renewcommand{\@author}{{\color{red}{TODO}}}
178\newcommand{\@authorTitle}{{\color{red}{TODO}}}
179\renewcommand{\author}[2]{
180 \renewcommand{\@authorTitle}{#1}
181 \renewcommand{\@author}{#2}
184\newcommand{\@year}{2018}
185\renewcommand{\year}[1]{
186 \renewcommand{\@year}{#1}
189\newcommand{\@city}{\IfLanguageName{english}{Moscow}{Москва}}
190\newcommand{\city}[1]{
191 \renewcommand{\@city}{#1}
194\newcommand{\@titleTable}{
195\reversemarginpar\marginpar{\rotatebox{90}{\begin{tabular}{|p{25mm}|p{35mm}|p{25mm}|p{25mm}|p{35mm}|}
197 \rule{0mm}{5mm}\IfLanguageName{english}{inv. num. of orig.}{Инв. \textnumero~подл} & \IfLanguageName{english}{Sig. and date}{Подп. и дата} & \IfLanguageName{english}{inv. num}{Взам. инв. \textnumero}& \IfLanguageName{english}{inv. num. of copy}{Инв. \textnumero~дубл.}&\IfLanguageName{english}{Sig. and date}{Подп. и дата}\\
199 \rule{0mm}{7mm}& & & & \\
204\titleformat{\subsection}{\normalfont\large\bfseries\raggedright}{\thesubsection.~}{0mm}{}
205\titleformat{\subsubsection}{\normalfont\normalsize\bfseries\raggedright}{\thesubsubsection.~}{0mm}{}
206\titleformat{\paragraph}{\normalfont\normalsize\bfseries\raggedright}{\theparagraph.~}{0mm}{}
208\newcommand{\@startAdditions}{
209 \setcounter{section}{0}
210 \renewcommand{\sectionbreak}{}
211 \titleformat{\section}[block]{\Large\bfseries\filcenter}{}{0mm}{}
212 \renewcommand{\@startAdditions}{}
215\newcounter{@tempSection}
217\newcommand{\addition}[1]{%
221 \stepcounter{section}
223 \Large \textbf{\textsc{\IfLanguageName{english}{appendix}{приложение} \asbuk{section}}}
225 \setcounter{@tempSection}{\arabic{section}}
226 \setcounter{secnumdepth}{0}
227 \section[Приложение \Asbuk{@tempSection}]{#1}
228 \setcounter{secnumdepth}{4}
231\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
235 \textsc{\textbf{\@institute}}
242 \begin{tabular}[h!]{P{0.45\textwidth} P{0.45\textwidth}}
244 \textit{\IfLanguageName{english}{COORDINATED}{СОГЛАСОВАНО}} & \textsl{\IfLanguageName{english}{APPROVED}{УТВЕРЖДАЮ}}\\
246 \@academicTeacherTitle & \@academicSupervisorTitle \\
248 \underline{\hspace{4cm}} \@academicTeacherName & \underline{\hspace{4cm}} \@academicSupervisorName \\
249 <<\underline{\hspace{1cm}}>> \underline{\hspace{3cm}} \@year{} \IfLanguageName{english}{}{г.} & <<\underline{\hspace{1cm}}>> \underline{\hspace{3cm}} \@year{} \IfLanguageName{english}{}{г.}\\
254 {\LARGE{\textsc{\textbf{\MakeLowercase{\@title}}}}}
258 \textbf{\@documentTitle}
262 \textbf{\textsc{\IfLanguageName{english}{Approval Sheet}{Лист Утверждения}}}
266 \textbf{\@documentCode{}-ЛУ}
275 \IfLanguageName{english}{Author}{Исполнитель}: \@authorTitle
277 \underline{\hspace{4cm}} \@author
279 <<\underline{\hspace{1cm}}>> \underline{\hspace{4cm}} \@year\IfLanguageName{english}{}{~г.}
294 \renewcommand{\@LU}{}
297\renewcommand{\maketitle}{
307 \textbf{\textsc{\IfLanguageName{english}{Approved}{Утверждён}}}
309 \textbf{\@documentCode{}-ЛУ}
314 {\LARGE{\textsc{\textbf{\MakeLowercase{\@title}}}}}
318 \textbf{\@documentTitle}
322 \textbf{\@documentCode}
326 \textbf{\IfLanguageName{english}{\pageref{LastPage} pages}{Листов \pageref{LastPage}}}
350\newcommand{\registrationList}{%
356 % \setcounter{secnumdepth}{0}
357 \section*{\IfLanguageName{english}{Change registration sheet}{Лист регистрации изменений}}
358 % \setcounter{secnumdepth}{4}
362 \begin{tabular}{|p{0.05\linewidth}|p{0.04\linewidth}|p{0.06\linewidth}|p{0.06\linewidth}|p{0.06\linewidth}|p{0.1\linewidth}|p{0.1\linewidth}|p{0.12\linewidth}|p{0.05\linewidth}|p{0.05\linewidth}|}
365 \multirow{2}{*}{\IfLanguageName{english}{\shortstack[l]{Cha-\\nge}}{Изм.}} & \multicolumn{4}{c|}{\IfLanguageName{english}{Page number}{Номера листов}} & \IfLanguageName{english}{Total number of pages}{Всего листов в документе} & \IfLanguageName{english}{Document number}{\textnumero{} доку-мента} & \IfLanguageName{english}{Number of accompanying documents and date}{Входящий \textnumero{} сопрово-дит.~докум. и дата} & \IfLanguageName{english}{Sig-na-ture}{Под-пись} & \IfLanguageName{english}{Date}{Дата} \\ [5ex] \cline{2-5}
366 & \IfLanguageName{english}{Mo-di-fied}{из-ме-нен-ных} & \IfLanguageName{english}{Re-pla-ced}{заме-нен-ных} & \IfLanguageName{english}{Ad-ded}{но-вых} & \IfLanguageName{english}{An-nul-led}{анну-лиро-ван-ных} & & & & & \\[10ex]
368 & & & & & & & & & \\[5ex]
370 & & & & & & & & & \\[5ex]
372 & & & & & & & & & \\[5ex]
374 & & & & & & & & & \\[5ex]
376 & & & & & & & & & \\[5ex]
378 & & & & & & & & & \\[5ex]
380 & & & & & & & & & \\[5ex]
382 & & & & & & & & & \\[5ex]
384 & & & & & & & & & \\[5ex]
386 & & & & & & & & & \\[5ex]
388 & & & & & & & & & \\[5ex]
390 & & & & & & & & & \\[5ex]
392 & & & & & & & & & \\[5ex]
405\newcommand{\programmingLanguage}[1]{
412\newcommand{\floatCode}[3][]{
414 \lstinputlisting [frame=single] {#2}
415 \ifblank{#3}{}{\caption{#3}}
416 \ifblank{#1}{}{\label{#1}}
420\newcommand{\code}[1]{%
421 \lstinputlisting[frame=single,basicstyle=\footnotesize\ttfamily]{#1}
424\renewcommand{\code}[2]{%
425 \lstinputlisting [frame=single, basicstyle=\footnotesize\ttfamily, caption={#2}, captionpos=b] {#1}
428\newcommand{\lcode}[1]{
437\newcommand{\image}[3][]{
440 \ifblank{#1}{}{\caption{#1}}
441 \ifblank{#3}{}{\label{#3}}
445\newcommand{\img}[1]{%
448 \includegraphics[width=0.6\textwidth,height=0.6\textheight,keepaspectratio]{#1}%
454\newcommand{\imgs}[2]{%
457 \includegraphics[width=0.45\textwidth,height=0.45\textwidth,keepaspectratio]{#1}%
458 \hspace{0.05\textwidth}%
459 \includegraphics[width=0.45\textwidth,height=0.45\textwidth,keepaspectratio]{#2}%
466\titleformat{\section}[block]{\Large\bfseries\filcenter}{\thesection.}{0mm}{~}
468\newcommand{\sectionsAreChapters}{
469 \titleformat{\section}[block]{\Large\bfseries\filcenter}{\IfLanguageName{english}{Chapter}{Глава} \thesection.}{0mm}{~}
472\newcommand{\sectionbreak}{\clearpage}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list