-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreport_template.tex
More file actions
225 lines (204 loc) · 5.75 KB
/
Copy pathreport_template.tex
File metadata and controls
225 lines (204 loc) · 5.75 KB
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
%-------------------------------------
% Barcode Verification Report Template
%-------------------------------------
%---- Required Packages and Functions ----
\documentclass[a4paper,11pt]{report}
\usepackage{latexsym}
\usepackage{xcolor}
\usepackage{float}
\usepackage{ragged2e}
\usepackage[empty]{fullpage}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage{tabularx}
\usepackage{titlesec}
\usepackage{geometry}
\usepackage{marvosym}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{cfr-lm}
\usepackage[T1]{fontenc}
\usepackage{subcaption}
\usepackage{fancyhdr}
\setlength{\multicolsep}{0pt}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\footskip}{4.08003pt} % Fix for the footskip warning}
\geometry{left=1.4cm, top=0.8cm, right=1.2cm, bottom=1cm}
% Adjust margins
%\addtolength{\oddsidemargin}{-0.5in}
%\addtolength{\evensidemargin}{-0.5in}
%\addtolength{\textwidth}{1in}
\usepackage[most]{tcolorbox}
\tcbset{
frame code={}
center title,
left=0pt,
right=0pt,
top=0pt,
bottom=0pt,
colback=gray!20,
colframe=white,
width=\dimexpr\textwidth\relax,
enlarge left by=-2mm,
boxsep=4pt,
arc=0pt,outer arc=0pt,
}
\urlstyle{same}
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-7pt}]
% \renewcommand{\labelitemii}{$\circ$}
\renewcommand{\labelitemi}{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}%
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}%
\newcolumntype{C}{>{\centering\arraybackslash}X}%
%---- End of Packages and Functions ------
%-------------------------------------------
%%%%%% DEFINE ELEMENTS HERE %%%%%%%
\newcommand{\addressa}{Address line 1}
\newcommand{\addressb}{Address line 2}
\newcommand{\addressc}{Address line 3}
\newcommand{\phone}{XXXXXXXXX}
\newcommand{\email}{something@example.com}
\newcommand{\website}{https://gitlab.com/bashrc2/datamatrix}
\newcommand{\issuedate}{2025-07-20}
\newcommand{\symboltype}{Datamatrix}
\newcommand{\matrixsize}{NxN}
\newcommand{\overallgrade}{A}
\newcommand{\decoderesult}{ABCDEF}
\newcommand{\isosymbolgrade}{4.0 PASS}
\newcommand{\symbolcontrast}{A}
\newcommand{\modulation}{A}
\newcommand{\axialnonuniformity}{A}
\newcommand{\gridnonuniformity}{A}
\newcommand{\unusederrorcorrection}{A}
\newcommand{\fixedpatterndamage}{A}
\newcommand{\clocktrackregularity}{A}
\newcommand{\minreflectance}{A}
\newcommand{\lightaperture}{x.x}
\newcommand{\lightnm}{670}
\newcommand{\lightangle}{90}
\newcommand{\angleofdistortion}{0.1}
\newcommand{\contrastuniformity}{0}
\newcommand{\dotsperelement}{310}
\newcommand{\elongation}{22.7}
\newcommand{\quietzone}{100}
\newcommand{\distributeddamage}{0}
\newcommand{\cellfill}{40}
\begin{document}
\fontfamily{cmr}\selectfont
%----------HEADING-----------------
\parbox{2.8cm}{%
\includegraphics[height=2.5cm,clip]{img/logo_square3.png}
% replace the fields with your details
}\parbox{\dimexpr\linewidth-3.1cm\relax}{
\begin{tabularx}{\linewidth}{L r}
\textbf{\LARGE Barcode Verification} & Tel: \phone\\
\addressa & \href{mailto:\email}{\email}\\
\addressb & \href{\website}{Website}\\
\addressc & {\issuedate}
\end{tabularx}
}
% %-----------METRICS-----------------
\section{Testing Summary}
\setlength{\tabcolsep}{5pt} % Default value: 6pt
\small{\begin{tabularx}
{\dimexpr\textwidth-3mm\relax}{|c|C|}
\hline
\textbf{GS1 Parameters } & \textbf{Values}\\
\hline
Illumination & \lightaperture/\lightangle/\lightnm\\
\hline
ISO symbol grade & \isosymbolgrade\\
\hline
Symbol type & \symboltype\\
\hline
Decode & \decoderesult\\
\hline
Matrix size & \matrixsize\\
\hline
\end{tabularx}}
\vspace{2mm}
% %-----------IMAGES-----------------
\begin{figure}[H]
\centering
\begin{minipage}{0.49\textwidth}
\centering
\includegraphics[height=6cm]{img/datamatrix.png}
\caption{Detected symbol}
\label{fig:1}
\end{minipage}
\hfill
\begin{minipage}{0.49\textwidth}
\centering
\includegraphics[height=6cm]{histogram.png}
\caption{Reflectance histogram}
\label{fig:2}
\end{minipage}
\end{figure}
% %-----------GRADED METRICS-----------------
\section{Graded Metrics}
\setlength{\tabcolsep}{5pt} % Default value: 6pt
\small{\begin{tabularx}
{\dimexpr\textwidth-3mm\relax}{|c|C|}
\hline
\textbf{ISO/IEC Parameters } & \textbf{Grade A-F}\\
\hline
Overall ISO Grade & \overallgrade \\
\hline
Symbol Contrast & \symbolcontrast \\
\hline
Modulation & \modulation \\
\hline
Axial non-uniformity & \axialnonuniformity \\
\hline
Grid non-uniformity & \gridnonuniformity \\
\hline
Unused Error Correction (UEC) & \unusederrorcorrection \\
\hline
Fixed pattern damage & \fixedpatterndamage \\
\hline
Clock track regularity & \clocktrackregularity \\
\hline
Minimum reflectance & \minreflectance \\
\hline
\end{tabularx}}
\vspace{-2mm}
% %-----------NON-GRADED METRICS-----------------
\section{Non-Graded Metrics}
\setlength{\tabcolsep}{5pt} % Default value: 6pt
\small{\begin{tabularx}
{\dimexpr\textwidth-3mm\relax}{|c|C|}
\hline
\textbf{Parameters } & \textbf{Values}\\
\hline
Angle of distortion (degrees) & \angleofdistortion \\
\hline
Contrast uniformity & \contrastuniformity \\
\hline
Dots per element & \dotsperelement \\
\hline
Elongation \% & \elongation \\
\hline
Quiet zone \% & \quietzone \\
\hline
Distributed damage \% & \distributeddamage \\
\hline
Cell fill \% & \cellfill \\
\hline
\end{tabularx}}
\vspace{-2mm}
%-------------------------------------------
\fancyfoot[C]{}
\end{document}