-
Notifications
You must be signed in to change notification settings - Fork 0
/
WUST-ECE-Metrology-Report.dtx
164 lines (161 loc) · 3.96 KB
/
WUST-ECE-Metrology-Report.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
% \iffalse meta-comment
%
% DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
%
% Author: Sergiusz Warga <[email protected]>
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{WUST-ECE-Metrology-Report.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesPackage{WUST-ECE-Metrology-Report}
%<*package>
[2022/11/28 v0.1.0 WUST ECE Metrology Report package]
%</package>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage[
hidelinks,
bookmarks,
bookmarksopen,
bookmarksopenlevel=2,
pdftitle={WUST ECE Metrology Report LaTeX package},
pdfauthor={Sergiusz Warga}
]{hyperref}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\setlength\hfuzz{15pt} % don’t show so many
\hbadness=7000 % over- and underfull box warnings
\begin{document}
\DocInput{WUST-ECE-Metrology-Report.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{0}
%
% \changes{v0.1.0}{2022/11/28}{Initial version}
%
% \GetFileInfo{WUST-ECE-Metrology-Report.dtx}
%
% \DoNotIndex{\@date, \@title}
% \DoNotIndex{\\}
% \DoNotIndex{\begin}
% \DoNotIndex{\DeclareRobustCommand, \dimexpr, \doublerulesep}
% \DoNotIndex{\end}
% \DoNotIndex{\fbox, \fboxrule, \fboxsep}
% \DoNotIndex{\gdef}
% \DoNotIndex{\hoffset, \Huge}
% \DoNotIndex{\Large}
% \DoNotIndex{\newlength, \newpage, \null}
% \DoNotIndex{\oddsidemargin}
% \DoNotIndex{\paperwidth}
% \DoNotIndex{\renewcommand}
% \DoNotIndex{\setlength}
% \DoNotIndex{\textwidth}
% \DoNotIndex{\uppercase}
% \DoNotIndex{\vfill}
%
% \title{WUST ECE Metrology Report package\thanks
% {This document corresponds to \texttt{WUST-ECE-Metrology-Report}~\fileversion,
% dated \filedate.}}\author{Sergiusz Warga\texttt{[email protected]}}
%
% \maketitle
%
% \StopEventually{\PrintChanges \PrintIndex}
%
% \section{Implementation}
%
% \subsection{Dimentions}
%
% Text area.
%
% \begin{macrocode}
\setlength{\textwidth}{140mm}
% \end{macrocode}
%
% Center the text area.
%
% \begin{macrocode}
\setlength{\hoffset}{
\dimexpr
(\paperwidth-\textwidth)/2-\oddsidemargin-1in
}
\DeclareRobustCommand*{\reportgroup}[1]{\gdef\@reportgroup{#1}}
\DeclareRobustCommand*{\studenta}[1]{\gdef\@studenta{#1}}
\DeclareRobustCommand*{\studentb}[1]{\gdef\@studentb{#1}}
\DeclareRobustCommand*{\studentc}[1]{\gdef\@studentc{#1}}
\DeclareRobustCommand*{\reportclassdate}[1]{\gdef\@reportclassdate{#1}}
\DeclareRobustCommand*{\reportlabassistant}[1]{\gdef\@reportlabassistant{#1}}
\reportgroup{}
\studenta{}
\studentb{}
\studentc{}
\reportclassdate{}
\reportlabassistant{}
\author{\@studenta, \@studentb, \@studentc}
% \end{macrocode}
% \DescribeMacro{\maketitle}
% \begin{macrocode}
\renewcommand{\maketitle}{
\begin{titlepage}
\thispagestyle{empty}
\newlength\TitleTableWidth
\setlength{\TitleTableWidth}{\textwidth}
\newpage
\null
\begin{center}
{\Huge{Wrocław University of Science and Technology}}
\vfill
{\Large{\uppercase{electrionic measurements\\laboratory report}}}
\vfill
{\setlength{\fboxrule}{1pt}
\setlength{\fboxsep}{1pt}
\fbox{%
\setlength{\fboxsep}{3pt}%
\fbox{%
\begin{tabular*}{\textwidth}
{p{0.6\TitleTableWidth} p{0.4\TitleTableWidth}}
Chair of Electronic and Photonic Metrology\\
\uppercase{electrionic measurements laboratory}\\\\
Theme of class: \@title \\\\
Group no: \@reportgroup\\\\
Students: & Date of class: \@reportclassdate\\
1. \@studenta\\
2. \@studentb\\
3. \@studentc & Submission Date: \@date\\\\
Lab assistant: \@reportlabassistant\\
\end{tabular*}%
}%
}}
\end{center}
\end{titlepage}
}
% \end{macrocode}
%
% \subsection{Page style}
%
% \begin{macrocode}
\def\ps@metrology{
\renewcommand{\@evenhead}{
\vbox{
\hbox{Metrology\hfill}
\vspace{1pt}
\hbox{\rule{\textwidth}{0.5pt}\hfill}
}
}
\renewcommand{\@oddhead}{\@evenhead}
\renewcommand{\@evenfoot}{
\thepage
}
\renewcommand{\@oddfoot}{\@evenfoot}
}
\pagestyle{metrology}
% \end{macrocode}
%
% \Finale