Правки

This commit is contained in:
Andrei Astafev 2019-09-12 02:16:36 +03:00
parent 9e33dc3d78
commit 81947d17a5
3 changed files with 22 additions and 38 deletions

View File

@ -83,6 +83,15 @@
\newcommand{\XESPDtheApprovedBy}{} \newcommand{\XESPDtheApprovedBy}{}
\newcommand{\XESPDapprovedBy}[1]{\renewcommand{\XESPDtheApprovedBy}{#1}} \newcommand{\XESPDapprovedBy}[1]{\renewcommand{\XESPDtheApprovedBy}{#1}}
\newcommand{\XESPDtheFileName}{}
\newcommand{\XESPDfileName}[1]{\renewcommand{\XESPDtheFileName}{#1}}
\newcommand{\XESPDtheREVMBase}{}
\newcommand{\XESPDREVMBase}[1]{\renewcommand{\XESPDtheREVMBase}{#1}}
\newcommand{\XESPDtheREVMType}{}
\newcommand{\XESPDREVMType}[1]{\renewcommand{\XESPDtheREVMType}{#1}}
\newcommand{\XESPDtheYear}{\number\year} \newcommand{\XESPDtheYear}{\number\year}
\newcommand{\XESPDtheMonth}{\number\month} \newcommand{\XESPDtheMonth}{\number\month}
\newcommand{\XESPDtheDay}{\number\day} \newcommand{\XESPDtheDay}{\number\day}

View File

@ -1,7 +1,9 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xespdrtis}[2018/09/30 v0.98 Document Information] \ProvidesPackage{xespdrtis}[2018/09/30 v0.98 Document Information]
\RequirePackage{xespdinfo}
\RequirePackage{xespdtitle} \RequirePackage{xespdtitle}
\RequirePackage{calc} \RequirePackage{calc}
\RequirePackage{indentfirst} \RequirePackage{indentfirst}
\RequirePackage[defaultlines=3,all]{nowidow} \RequirePackage[defaultlines=3,all]{nowidow}
@ -45,43 +47,6 @@
\fi \fi
} }
\ifthenelse{\equal{\XESPDtheDocName}{Техническое задание на разработку}}{
\RequirePackage[numbertop,numbercenter]{xespdplain} % без рамок
\XESPDsignature{}
\XESPDtitleApprovingSheet{}
}{ % Если не ТЗР
\RequirePackage[numbertop,numbercenter]{xespdframe} % рамки
\RequirePackage{xespdchngsheet}
\newcommand{\XESPDtheFileName}{}
\newcommand{\XESPDfileName}[1]{\renewcommand{\XESPDtheFileName}{#1}}
\newcommand{\XESPDtheREVMBase}{}
\newcommand{\XESPDREVMBase}[1]{\renewcommand{\XESPDtheREVMBase}{#1}}
\newcommand{\XESPDtheREVMType}{}
\newcommand{\XESPDREVMType}[1]{\renewcommand{\XESPDtheREVMType}{#1}}
\ifthenelse{\equal{\XESPDtheDocName}{Описание программы}}{%
\XESPDREVMType{01 13 01}
\XESPDfileName{\XESPDtheREVMBase{}or}
}{}
\ifthenelse{\equal{\XESPDtheDocName}{Текст программы}}{
\XESPDREVMType{01 12 01}
\XESPDfileName{\XESPDtheREVMBase{}tp}
}{}
\ifthenelse{\equal{\XESPDtheDocName}{Программа и методика испытаний}}{
\XESPDREVMType{01 51 01}
\XESPDfileName{\XESPDtheREVMBase{}pm}
}{}
\ifthenelse{\equal{\XESPDtheDocName}{Руководство оператора}}{
\XESPDREVMType{01 34 01}
\XESPDfileName{\XESPDtheREVMBase{}ro}
}{}
\XESPDsignature{РЕВМ.\XESPDtheREVMBase{}\textendash{}\XESPDtheREVMType{}}
\XESPDtitleApprovingSheet{РЕВМ.\XESPDtheREVMBase{}\textendash{}\XESPDtheREVMType{}\textendash{}ЛУ}
}
%\XESPDdepartment{Ведомство} %\XESPDdepartment{Ведомство}
%\XESPDcompany{Предприятие} %\XESPDcompany{Предприятие}
%\XESPDclassCode{Код по классификатору} %\XESPDclassCode{Код по классификатору}

View File

@ -1,8 +1,10 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xespdtz}[2018/09/14 v0.98 Document Information] \ProvidesPackage{xespdtz}[2018/09/14 v0.98 Document Information]
\RequirePackage{kvoptions}
\RequirePackage[numbertop,numbercenter]{xespdplain} \RequirePackage[numbertop,numbercenter]{xespdplain}
\RequirePackage{kvoptions}
\DeclareStringOption{docname}
\DeclareStringOption{title}
\DeclareStringOption{project} \DeclareStringOption{project}
\ProcessKeyvalOptions* \ProcessKeyvalOptions*
@ -19,3 +21,11 @@
\par\cyrk\cyro\cyrm\cyrp\cyrl\cyre\cyrk\cyrs\cyra\ \cyrp\cyrr\cyro\cyrg\cyrr\cyra\cyrm\cyrm\ \XESPDtheTitle}% \par\cyrk\cyro\cyrm\cyrp\cyrl\cyre\cyrk\cyrs\cyra\ \cyrp\cyrr\cyro\cyrg\cyrr\cyra\cyrm\cyrm\ \XESPDtheTitle}%
} }
\renewcommand{\XESPDtheTitleFieldIV}{% только для Контейнера
{\MakeUppercase{\xespdtz@project}
\vspace{3pt}
\par\XESPDtheDocName
\vspace{3pt}
\par\XESPDtheTitle}%
}