on 64a3a63 help sign in
3 files changed+91−140
since splitsnapshots
unifiedsplit
TechDoc.cls+89−136 example/tz.pdf example/tz.tex+2−4
TechDoc.cls+89−136
@@ -1,7 +1,3 @@
1−% creator: ilyakooo0
2−% extra credit: dashared
3−% version: 1.0.4
4−
51\NeedsTeXFormat{LaTeX2e}
62
73\ProvidesClass{TechDoc}
@@ -27,8 +23,6 @@
2723\RequirePackage{enumitem}
2824\RequirePackage{tocloft}
2925\RequirePackage{caption}
30−\RequirePackage{etoolbox}
31−\RequirePackage{iflang}
3226
3327\setcounter{secnumdepth}{4}
3428
@@ -45,12 +39,13 @@
4539
4640
4741\setenumerate[1]{label={\arabic*)}}
48−\setenumerate[2]{label={--}}
49−\setenumerate[3]{label={\asbuk*)}}
42+\setenumerate[2]{label={\asbuk*)}}
43+\setenumerate[3]{label={\roman*)}}
44+
5045
51−\DeclareUnicodeCharacter{306}{{\color{red} \textbf{По всей видимости либо ты откуда-то не очень хорошо скопировал, либо у тебя с вводом что-то не то, потому что буква Й у тебя состоит из двух скаляров юникода. Удали этот Й и напечатай его заново. (Выйди и зайди нормально)} }}
46+\DeclareUnicodeCharacter{306}{{\color{red} \textbf{По всей видимости либо ты откуда-то не очень хорошо скопировал, либо у тиебя с вводом что-то не то потому что буква Й у тебя состоит из двух скаляров юникода. Удали этот Й и напечатай его заново. (Выйди и зайди норимально)} }}
5247
53−\RequirePackage[russian,english]{babel}
48+\RequirePackage[main=russian,english]{babel}
5449
5550\titlelabel{\thetitle.~}
5651
@@ -71,17 +66,9 @@
7166}
7267
7368\geometry{left=20mm, right=10mm, top=25mm, bottom=25mm, headheight=25mm}
74−
75−\DeclareCaptionLabelSeparator{emdash}{ --- }
76−\captionsetup{
77− justification=centering,
78− singlelinecheck=false,
79− labelsep=emdash
80−}
81−
82−
69+
8370 %% Header
84−
71+
8572\pagestyle{fancy}
8673\fancyhf{}
8774\fancyhead[C]{
@@ -91,24 +78,20 @@
9178}
9279\renewcommand\headrulewidth{0pt}
9380
94−\newcommand{\@foot}{
95− \vspace{-7mm}
96− \footnotesize{
97− \begin{tabular}{|p{0.30\linewidth}|p{0.14\linewidth}|p{0.15\linewidth}|p{0.14\linewidth}|p{0.14\linewidth}|}
98− \hline
99− & & & & \\ \hline
100− \IfLanguageName{english}{Change}{Изм.} & \IfLanguageName{english}{Page}{Лист} & \IfLanguageName{english}{Document num.}{\textnumero~докум.} & \IfLanguageName{english}{Signature}{Подп.} & \IfLanguageName{english}{Date}{Дата}\\
101− \hline
102− \footnotesize{\@documentCode}& & & &\\
103− \hline
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}{Подп. и дата} \\
105− \hline
106− \end{tabular}
107− }
108−}
109−
11081\cfoot{
111−\@foot
82+\vspace{-7mm}
83+\footnotesize{
84+\begin{tabular}{|p{0.30\linewidth}|p{0.14\linewidth}|p{0.15\linewidth}|p{0.14\linewidth}|p{0.14\linewidth}|}
85+ \hline
86+ & & & & \\ \hline
87+ Изм. & Лист & \textnumero~докум. & Подп. & Дата\\
88+ \hline
89+ \footnotesize{\@documentCode}& & & &\\
90+ \hline
91+ Инв. \textnumero~подл. & Подп. и дата & Взам. инв. \textnumero & Инв. \textnumero~дубл.& Подп. и дата \\
92+ \hline
93+ \end{tabular}
94+}
11295}
11396
11497\setcounter{page}{2}
@@ -127,21 +110,15 @@
127110 \renewcommand{\@title}{#1}
128111}
129112
130−\newcommand{\@institute}{
131− \IfLanguageName{english}
132− {national research university\\<<higher school of economics>>}
133− {правительство российской федерации\\
113+\newcommand{\@institute}{правительство российской федерации\\
134114 национальный исследовательский университет \\
135− «высшая школа экономики»}}
115+ «высшая школа экономики»}
136116\newcommand{\institute}[1]{
137117 \renewcommand{\@institute}{#1}
138118}
139119
140−\newcommand{\@faculty}{
141− \IfLanguageName{english}
142− {Faculty of Computer Science}
143− {Факультет компьютерных наук\\
144− Департамент программной инженерии}}
120+\newcommand{\@faculty}{Факультет компьютерных наук\\
121+ Департамент программной инженерии}
145122\newcommand{\faculty}[1]{
146123 \renewcommand{\@faculty}{#1}
147124}
@@ -153,12 +130,9 @@
153130 \renewcommand{\@academicTeacherName}{#2}
154131}
155132
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− профессор департамента программной инженерии, канд. техн. наук}}
133+\newcommand{\@academicSupervisorName}{В. В. Шилов}
134+\newcommand{\@academicSupervisorTitle}{Академический руководитель образовательной программы «Программная инженерия»
135+ профессор департамента программной инженерии, канд. техн. наук}
162136\newcommand{\academicSupervisor}[2]{
163137 \renewcommand{\@academicSupervisorTitle}{#1}
164138 \renewcommand{\@academicSupervisorName}{#2}
@@ -186,19 +160,19 @@
186160 \renewcommand{\@year}{#1}
187161}
188162
189−\newcommand{\@city}{\IfLanguageName{english}{Moscow}{Москва}}
163+\newcommand{\@city}{Москва}
190164\newcommand{\city}[1]{
191165 \renewcommand{\@city}{#1}
192166}
193167
194168\newcommand{\@titleTable}{
195−\reversemarginpar\marginpar{\rotatebox{90}{\begin{tabular}{|p{25mm}|p{35mm}|p{25mm}|p{25mm}|p{35mm}|}
169+\reversemarginpar\marginpar{\rotatebox{90}{\begin{tabular}{|l|l|l|l|l|}
196170 \hline
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}{Подп. и дата}\\
171+ Инв. \textnumero~подл & Подп. и дата & Взам. инв. \textnumero& Инв. \textnumero~дубл.&Подп. и дата\\
198172 \hline
199− \rule{0mm}{7mm}& & & & \\
173+ & & & & \\
200174 \hline
201−\end{tabular}}}
175+\end{tabular}}}
202176}
203177
204178\titleformat{\subsection}{\normalfont\large\bfseries\raggedright}{\thesubsection.~}{0mm}{}
@@ -220,11 +194,11 @@
220194 \@startAdditions
221195 \stepcounter{section}
222196 \begin{flushright}
223− \Large \textbf{\textsc{\IfLanguageName{english}{appendix}{приложение} \asbuk{section}}}
197+ \Large \textbf{\textsc{приложение \arabic{section}}}
224198 \end{flushright}
225199 \setcounter{@tempSection}{\arabic{section}}
226200 \setcounter{secnumdepth}{0}
227− \section[Приложение \Asbuk{@tempSection}]{#1}
201+ \section[Приложение \arabic{@tempSection}]{#1}
228202 \setcounter{secnumdepth}{4}
229203}
230204
@@ -233,51 +207,51 @@
233207\newcommand{\@LU}{
234208 \begin{center}
235209 \textsc{\textbf{\@institute}}
236− \par\vspace{5mm}
210+ \par\vspace{5mm}
237211 \upshape\mdseries
238212 \@faculty
239213
240− \par\vspace{10mm}
241−
214+ \par\vspace{10mm}
215+
242216 \begin{tabular}[h!]{P{0.45\textwidth} P{0.45\textwidth}}
243−
244− \textit{\IfLanguageName{english}{COORDINATED}{СОГЛАСОВАНО}} & \textsl{\IfLanguageName{english}{APPROVED}{УТВЕРЖДАЮ}}\\
217+
218+ \textit{СОГЛАСОВАНО} & \textsl{УТВЕРЖДАЮ}\\
245219 & \\
246− \@academicTeacherTitle & \@academicSupervisorTitle \\
220+ \@academicTeacherTitle & \@academicSupervisorTitle \\
247221 & \\
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}{}{г.}\\
222+ \underline{\hspace{4cm}} \@academicTeacherName & \underline{\hspace{4cm}} \@academicSupervisorName \\
223+ <<\underline{\hspace{1cm}}>> \underline{\hspace{3cm}} \@year{} г. & <<\underline{\hspace{1cm}}>> \underline{\hspace{3cm}} \@year{} г.\\
250224 \end{tabular}
251225
252−
226+
253227 \vspace{15mm}
254228 {\LARGE{\textsc{\textbf{\MakeLowercase{\@title}}}}}
255−
229+
256230 \vspace{6mm}
257231
258232 \textbf{\@documentTitle}
259−
233+
260234 \vspace{6mm}
261235
262− \textbf{\textsc{\IfLanguageName{english}{Approval Sheet}{Лист Утверждения}}}
236+ \textbf{\textsc{Лист Утверждения}}
263237
264238 \vspace{6mm}
265239
266240 \textbf{\@documentCode{}-ЛУ}
267241
268242 \end{center}
269−
270−
243+
244+
271245 \vfill
272246 \hfill
273247 \begin{tabular}{c}
274− \\
275− \IfLanguageName{english}{Author}{Исполнитель}: \@authorTitle
276− \\
248+ \\
249+ Исполнитель: \@authorTitle
250+ \\
277251 \underline{\hspace{4cm}} \@author
278− \\
279− <<\underline{\hspace{1cm}}>> \underline{\hspace{4cm}} \@year\IfLanguageName{english}{}{~г.}
280− \end{tabular}
252+ \\
253+ <<\underline{\hspace{1cm}}>> \underline{\hspace{4cm}} \@year~г.
254+ \end{tabular}
281255
282256 \@titleTable
283257
@@ -286,7 +260,7 @@
286260 \begin{center}
287261 \@city~\@year
288262 \end{center}
289−
263+
290264 \vspace{-20mm}
291265}
292266
@@ -297,52 +271,52 @@
297271\renewcommand{\maketitle}{
298272 \pagestyle{empty}
299273 \clearpage
300−
274+
301275 \begin{titlepage}
302−
276+
303277 \@LU
304−
278+
305279 \newpage
306−
307− \textbf{\textsc{\IfLanguageName{english}{Approved}{Утверждён}}}
308−
280+
281+ \textbf{\textsc{Утверждён}}
282+
309283 \textbf{\@documentCode{}-ЛУ}
310−
284+
311285 \vspace{40mm}
312−
286+
313287 \begin{center}
314− {\LARGE{\textsc{\textbf{\MakeLowercase{\@title}}}}}
315−
288+ {\LARGE{\textsc{\textbf{\MakeLowercase{\@title}}}}}
289+
316290 \vspace{6mm}
317−
291+
318292 \textbf{\@documentTitle}
319−
293+
320294 \vspace{6mm}
321−
295+
322296 \textbf{\@documentCode}
323−
297+
324298 \vspace{6mm}
325−
326− \textbf{\IfLanguageName{english}{\pageref{LastPage} pages}{Листов \pageref{LastPage}}}
299+
300+ \textbf{Листов \pageref{LastPage}}
327301
328302 \end{center}
329−
303+
330304 \vfill
331−
305+
332306 \@titleTable
333−
307+
334308 \vspace{80mm}
335309
336310 \begin{center}
337311 \@city~\@year
338312 \end{center}
339−
313+
340314 \vspace{-20mm}
341315
342316 \end{titlepage}
343−
317+
344318 \pagestyle{fancy}
345−
319+
346320 \setcounter{page}{2}
347321}
348322
@@ -350,20 +324,18 @@
350324\newcommand{\registrationList}{%
351325 \clearpage
352326 \newpage
353−
327+
354328 \@startAdditions
355−
356− % \setcounter{secnumdepth}{0}
357− \section*{\IfLanguageName{english}{Change registration sheet}{Лист регистрации изменений}}
358− % \setcounter{secnumdepth}{4}
359−
360− \cfoot{}
361−
329+
330+ \setcounter{secnumdepth}{0}
331+ \section{Лист регистрации изменений}
332+ \setcounter{secnumdepth}{4}
333+
362334 \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}|}
363−
335+
364336 \hline
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]
337+ \multirow{2}{*}{Изм.} & \multicolumn{4}{c|}{Номера листов} & Всего листов в документе & \textnumero{} доку-мента & Входящий \textnumero{} сопрово-дит.~докум. и дата & Под-пись & Дата \\ [5ex] \cline{2-5}
338+ & из-ме-нен-ных & заме-нен-ных & но-вых & аннул-лиро-ван-ных & & & & & \\[10ex]
367339 \hline
368340 & & & & & & & & & \\[5ex]
369341 \hline
@@ -392,21 +364,16 @@
392364 & & & & & & & & & \\[5ex]
393365 \hline
394366 \end{tabular}
395−
396− \newpage
397− \cfoot{
398− \@foot
399− }
400367}
401368
402369
403370%% Code
404371
405372\newcommand{\programmingLanguage}[1]{
406− \lstset{language=#1}
373+ \lstset{language=#1}
407374}
408375
409−%% [#1]: ref id
376+%% [#1]: ref id
410377%% #2: file
411378%% #3: caption
412379\newcommand{\floatCode}[3][]{
@@ -418,17 +385,7 @@
418385}
419386
420387\newcommand{\code}[1]{%
421− \lstinputlisting[frame=single,basicstyle=\footnotesize\ttfamily]{#1}
422−}
423−
424−\renewcommand{\code}[2]{%
425− \lstinputlisting [frame=single, basicstyle=\footnotesize\ttfamily, caption={#2}, captionpos=b] {#1}
426−}
427−
428−\newcommand{\lcode}[1]{
429− \begin{lstlisting}%
430−#1
431− \end{lstlisting}%
388+ \lstinputlisting[frame=single,basicstyle=\footnotesize\ttfamily]{#1}
432389}
433390
434391% [#1]: caption
@@ -465,8 +422,4 @@
465422
466423\titleformat{\section}[block]{\Large\bfseries\filcenter}{\thesection.}{0mm}{~}
467424
468−\newcommand{\sectionsAreChapters}{
469− \titleformat{\section}[block]{\Large\bfseries\filcenter}{\IfLanguageName{english}{Chapter}{Глава} \thesection.}{0mm}{~}
470−}
471−
472425\newcommand{\sectionbreak}{\clearpage}
example/tz.pdf

Binary file not shown.

example/tz.tex+2−4
@@ -1,8 +1,6 @@
11% creator: ilyakooo0
22% extra credit: dashared
3−% version: 1.0.1
4−
5−\PassOptionsToPackage{main=russian,english}{babel}
3+% version: 1.0
64
75\documentclass{../TechDoc}
86
@@ -31,7 +29,7 @@
3129 \subsection{Требования к интерфейсу}
3230
3331 \input{includes/interface}
34−
32+
3533 \subsection{Требования к формату входных и выходных данных}
3634
3735 \subsubsection{Входные данные}