University of Modena and Reggio Emilia master's thesis, Computer Engineering
The master's thesis template (2026) of the Computer Engineering programmes at UNIMORE's "Enzo Ferrari" Department of Engineering: title page with the university seal, dedication, contents and lists of figures and code, sample chapters with figures, subfigures, tables, code listings and algorithms, conclusions, acknowledgements and a biblatex bibliography (English).
- Category
- Thesis
- Document class
report(report.cls) — ships with TeX Live- Workflow
- Thesis / dissertation — submissions and revision rounds
- Author
- University of Modena and Reggio Emilia, "Enzo Ferrari" Department of Engineering, Computer Engineering programmes (department)
- Source
- University of Modena and Reggio Emilia, "Enzo Ferrari" Department of Engineering, Computer Engineering programmes (department)
- Licence
- report.cls: LaTeX Project Public License (installed with TeX). The sample text is University of Modena and Reggio Emilia, "Enzo Ferrari" Department of Engineering, Computer Engineering programmes (department)'s, provided for authors preparing a submission.
These are the publisher’s own files. This project starts from University of Modena and Reggio Emilia, "Enzo Ferrari" Department of Engineering, Computer Engineering programmes (department)’s package for this publication — their manuscript, their report.cls, their bibliography style — so what compiles here is what they would have given you.
University of Modena and Reggio Emilia, "Enzo Ferrari" Department of Engineering, Computer Engineering programmes (department) serves this exact file to University of Modena and Reggio Emilia. Check University of Modena and Reggio Emilia, "Enzo Ferrari" Department of Engineering, Computer Engineering programmes (department)’s author pages for the current instructions.
Where this differs from the publisher’s download.
- Note: This is the template of the Computer Engineering master's programmes; other programmes and the doctoral school may set their own title-page rules.
What you get
bibliography.bib· 2 KBchapters/00_dedication.tex· 117 Bchapters/01_introduction.tex· 465 Bchapters/02_second_chapter.tex· 4 KBchapters/03_third_chapter.tex· 2 KBchapters/05_conclusions.tex· 76 Bchapters/99_acknowledgements.tex· 151 Bimages/architectures/t.png· 258 KBimages/fruits/arancia.jpg· 515 KBimages/fruits/banana.jpg· 3 KBimages/fruits/mela.jpg· 11 KBimages/fruits/pera.jpg· 39 KBimages/unimore/Sigillo2015.png· 90 KBmain.tex— the file that is compiled · 6 KBtables/complex_table.tex· 3 KBtables/table_example.tex· 2 KB
These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.
Source
bibliography.bib · 2 KB
% To automatically get the entry for an article, follow these steps:
% 1. Open Google Scholar's website and find the article
% 2. Find the "Cite" button
% 3. In the popup window, press "BibTeX"
% 4. Copy and paste the text
@online{flower,
author = {Flower Team},
title = {Flower: A Friendly Federated Learning Framework},
year = {2025},
url = {https://flower.dev},
note = {Frontend web for monitoring Celery tasks},
}
@online{whisper,
title = {Whisper},
author = {{OpenAI}},
year = {2022},
url = {https://github.com/openai/whisper},
note = {Open-source AI model for automatic speech recognition}
}
@online{sqlalchemy,
title = {SQLAlchemy — The Database Toolkit for Python},
author = {{SQLAlchemy Project}},
year = {2025},
url = {https://www.sqlalchemy.org/},
note = {Toolkit and ORM for database management in Python}
}
@online{celery,
title = {Celery: Distributed Task Queue},
author = {{Celery Project}},
year = {2025},
url = {https://docs.celeryproject.org/en/stable/},
note = {Framework for concurrent and asynchronous task management}
}
@online{django,
author = {{Django Software Foundation}},
title = {Django Web Framework},
year = {2024},
url = {https://www.djangoproject.com/},
note = {Framework for web application development}
}
@online{docker,
author = {{Docker Inc.}},
title = {Docker Documentation},
year = {2024},
url = {https://docs.docker.com},
note = {Platform for developing software containers}
}
@article{vaswani2017attention,
title={Attention is all you need},
author={Vaswani, Ashish and Shazeer, Noam and Parmar, Niki and Uszkoreit, Jakob and Jones, Llion and Gomez, Aidan N and Kaiser, {\L}ukasz and Polosukhin, Illia},
journal={Advances in neural information processing systems},
volume={30},
year={2017}
}
chapters/00_dedication.tex · 117 B
\begin{flushright}
\textit{<Decication, optional. Delete everything on this page to remove it.>}
\end{flushright}chapters/01_introduction.tex · 465 B
\chapter{Introduction}
\label{ch:introduction}
\section{Section}
\label{sec:objective}
This template can be used as a basis for writing the final thesis for the Master’s Degree in Computer Engineering/Artificial Intelligence Engineering. The table of contents, as well as the lists of figures and code listings, are generated automatically. The following chapter provides examples of basic elements.
\subsection{Subsection}
This is an example of a subsection.
chapters/02_second_chapter.tex · 4 KB
\chapter{Basic elements}
\label{ch:second_chapter}
This chapter will contain basic examples of bullet lists, figures, tables, formulas, algorithms, and code.
\bigskip
\noindent Example of a bullet list:
\begin{itemize}[noitemsep]
\item \textbf{first bullet point in bold}; % in bold
\item second bullet point, if you prefer it not to be in bold; % if you prefer it without bold
\end{itemize}
\section{Section in the Second Chapter}
\label{sec:id}
Example of an image in Figure \ref{fig:uno}. Remember to always reference in the text, using \textbackslash ref, all the figures/tables/algorithms/code you include.\footnote{An example of how to add a footnote, often used to cite or include a link to a website, such as~\url{https://ditto.ing.unimore.it/}\hspace{2pt}\raisebox{-0.4\height}{},}
\begin{figure}[H] % Starts the figure environment. [htbp] suggests placement: Here, Top, Bottom, Page.
\centering % Centers the image and caption horizontally on the page.
% \includegraphics[options]{filename} inserts the image.
% --- Options ---
% 'width=\linewidth': makes the image span the entire width of the text area.
% Other options: 'width=8cm', 'scale=0.5' (half size),
% 'height=5cm', 'angle=90' (rotate by 90 degrees).
% 'keepaspectratio': prevents distortion when specifying both width and height.
\includegraphics[width=0.8\linewidth, keepaspectratio]{images/architectures/t.png}
\caption{The architecture introduced by Vaswani in the famous paper \textit{"Attention is All You Need"}~\cite{vaswani2017attention}.}
\label{fig:uno}
\end{figure}
\section{Another Section in the Second Chapter}
Example of a table with its citation, Table~\ref{tab:table_example}.
\input{tables/table_example} % input helps to keep the latex code cleaner by moving the table into another file
\section{Mathematical Formulas}
Here are two examples of how to write mathematical formulas. As you can easily recognize in Eq.~\ref{eq:continuous_ft}, we have the integral form of the Fourier Transform, while in Eq.~\ref{eq:discrete_ft} we see its discretized version using a summation.
% --- Formula 1: Continuous Fourier Transform (The Integral) ---
\begin{equation}
\label{eq:continuous_ft}
X(f) = \int_{-\infty}^{\infty} x(t) e^{-j 2\pi f t} \, dt
\end{equation}
% --- Formula 2: Discrete Fourier Transform (The Summation) ---
\begin{equation}
\label{eq:discrete_ft}
X_k = \sum_{n=0}^{N-1} x_n \cdot e^{-i \frac{2\pi}{N} k n}
\end{equation}
\section{Algorithm Example}
In Algorithm \ref{alg:dijkstra}, one way to compute the shortest path can be seen.
\begin{algorithm}[H] % H forces placement exactly here. Not recommended to always use it.
\caption{Dijkstra's Algorithm}
\label{alg:dijkstra}
\begin{algorithmic}[1]
\Procedure{Dijkstra}{$G, s$}
\State $dist[] \gets \infty$ \Comment{Initialize distances to infinity}
\State $dist[s] \gets 0$ \Comment{Distance to the source is 0}
\State $Q \gets V[G]$ \Comment{Add all nodes to the queue}
\While{$Q$ is not empty}
\State $u \gets$ vertex in $Q$ with minimum $dist[u]$
\State remove $u$ from $Q$
\For{each neighbor $v$ of $u$}
\State $alt \gets dist[u] + length(u, v)$
\If{$alt < dist[v]$}
\State $dist[v] \gets alt$
\State $prev[v] \gets u$
\EndIf
\EndFor
\EndWhile
\State \textbf{return} $dist[], prev[]$
\EndProcedure
\end{algorithmic}
\end{algorithm}
\section{Code Examples}
You may also include some code samples, as long as they are not too long. An example can be seen in Code \ref{cod:hello}.
\begin{lstlisting}[caption={Example code, taken from helloworldspam.py}, label={cod:hello}]
print('Starting the ultimate hello world spammer')
for i in range(10000000):
print("Hello, world!")
\end{lstlisting}
\section{Bibliography Management}
All bibliographic references must be inserted into the project’s ``.bib'' file. In this template, the file is ``bibliography.bib''. To cite a reference, use the command ``\textbackslash cite\{<id>\}'', such as \cite{vaswani2017attention}.
chapters/03_third_chapter.tex · 2 KB
\chapter{Tables and Images}
\label{ch:third_chapter}
This chapter contains examples of large tables and grid-arranged images.
\section{1x3 Grid}
Here is an example of an image grid, as shown in Figure \ref{fig:fruit_images1x3}.
\begin{figure}[h!]
\centering
\begin{subfigure}[t]{0.30\textwidth}
\centering
\includegraphics[width=\linewidth]{images/fruits/arancia.jpg}
\caption{Orange}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.30\textwidth}
\centering
\includegraphics[width=\linewidth]{images/fruits/mela.jpg}
\caption{Apple}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.30\textwidth}
\centering
\includegraphics[width=\linewidth]{images/fruits/banana.jpg}
\caption{Banana}
\end{subfigure}
\caption{Photos of fresh fruit in a 1x3 grid.}
\label{fig:fruit_images1x3}
\end{figure}
\section{2x2 Grid}
Here is an example of an image grid, as shown in Figure \ref{fig:fruit_images2x2}.
\begin{figure}[H]
\centering
% --- First row ---
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{images/fruits/arancia.jpg}
\caption{Orange}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{images/fruits/mela.jpg}
\caption{Apple}
\end{subfigure}
% --- Second row ---
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{images/fruits/banana.jpg}
\caption{Banana}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{images/fruits/pera.jpg}
\caption{Pear}
\end{subfigure}
\caption{Photos of fresh fruit in a 2×2 grid.}
\label{fig:fruit_images2x2}
\end{figure}
\section{Example of a Complex Table}
\input{tables/complex_table}
chapters/05_conclusions.tex · 76 B
Chapter{Conclusions}
\label{ch:conclusions}
Your conclusions would go here.chapters/99_acknowledgements.tex · 151 B
\chapter*{Acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}
Here you may include your acknowledgements (ringraziamenti), if you wish.images/architectures/t.png — binary, 258 KB
images/fruits/arancia.jpg — binary, 515 KB
images/fruits/banana.jpg — binary, 3 KB
images/fruits/mela.jpg — binary, 11 KB
images/fruits/pera.jpg — binary, 39 KB
images/unimore/Sigillo2015.png — binary, 90 KB
main.tex — the file that is compiled · 6 KB
% Final project for the completion of the bachelor's degree in Computer Engineering
% at the "Enzo Ferrari" Department of Engineering at the University of Modena and Reggio Emilia
% 12-point font size
\documentclass[12pt]{report}
% Margins (2.5cm on all sides)
\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm, head=21.75pt, centering]{geometry}
% Line spacing
\linespread{1.5}
\usepackage[english]{babel} % applies writing rules for the English language
\usepackage[utf8]{inputenc} % UTF-8 encoding
\usepackage{scrlayer-scrpage} % page styles for the title page
\ifoot[]{}
\cfoot[]{}
\ofoot[\pagemark]{\pagemark}
\pagestyle{scrplain}
\usepackage[hidelinks]{hyperref} % package for using hyperlinks
\usepackage[T1]{fontenc}
\usepackage{inconsolata}
\usepackage{newtxtext,newtxmath} % Times New Roman-like font
\usepackage{graphicx} % insertion of images
\usepackage{csquotes} % for block quotations
\usepackage{booktabs}
\usepackage{adjustbox}
\usepackage{filehook}
\usepackage{makecell}
\usepackage{pifont}
\usepackage[utf8]{inputenc}
\usepackage[bottom]{footmisc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx} % insertion of images
\usepackage{subcaption} % for subfigures
\usepackage[backend=biber, sorting=nty]{biblatex} % bibliography using biblatex
\usepackage{verbatim} % to use \begin{comment} \end{comment}
\usepackage{multirow}
\appto{\bibsetup}{\raggedright}
\addbibresource{bibliography.bib} % links the bibliography file
\usepackage{titlesec} % for formatting section, chapter titles, etc.
\usepackage{float} % for positioning images
\usepackage{listings} % for programming code
\usepackage{color}
\usepackage{xurl}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{booktabs} % for \toprule, \midrule, \bottomrule in tables
\usepackage{algorithm}
\usepackage{algpseudocode}
% Definition of colors for code
\definecolor{lightgray}{rgb}{.9,.9,.9}
\definecolor{darkgray}{rgb}{.4,.4,.4}
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
% Styles for programming languages
\lstdefinelanguage{JavaScript}{
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, let, const, if, in, while, do, else, case, break},
keywordstyle=\color{blue}\bfseries,
ndkeywords={class, export, boolean, throw, implements, import, this},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]",
commentstyle=\color{mygreen}\ttfamily,
stringstyle=\color{mymauve}\ttfamily,
backgroundcolor=\color{backcolour},
basicstyle=\footnotesize\ttfamily,
showstringspaces=false,
extendedchars=true,
showspaces=false,
numbers=left,
numberstyle=\footnotesize,
numbersep=9pt,
tabsize=2,
breaklines=true,
showtabs=false,
captionpos=b
}
\lstdefinelanguage{MyPython}{
language=Python,
morekeywords={with, as},
keywordstyle=\bfseries\color{blue},
commentstyle=\color{mygreen},
stringstyle=\color{mymauve},
backgroundcolor=\color{backcolour},
basicstyle=\footnotesize\ttfamily,
showstringspaces=false,
numbers=left,
numberstyle=\footnotesize,
numbersep=9pt,
tabsize=2,
breaklines=true,
showtabs=false,
captionpos=t
}
\lstdefinestyle{bash}{
basicstyle=\ttfamily\small,
rulesepcolor=\color{black},
language=bash,
breaklines=true,
backgroundcolor=\color{backcolour},
literate={"}{{\texttt{"}}}{1},
numbers=left,
numberstyle=\footnotesize,
numbersep=9pt,
columns=fixed,
keepspaces=true,
}
\lstdefinestyle{Prompt}{
breaklines=true,
basicstyle=\ttfamily,
}
\lstdefinestyle{Myyaml}{
basicstyle=\ttfamily\small,
breaklines=true,
numbers=left,
numberstyle=\footnotesize,
numbersep=9pt,
showstringspaces=false,
tabsize=2,
backgroundcolor=\color{backcolour},
columns=fixed,
keepspaces=true,
}
% Format of headings
\titleformat{\chapter}[block]
{\normalfont\LARGE\bfseries}{\thechapter.}{0.5em}{\LARGE}
\titlespacing*{\chapter}{0pt}{-20pt}{25pt}
\usepackage{enumitem}
\begin{document}
\begin{titlepage}
\begin{center}
\includegraphics[width=8cm]{images/unimore/Sigillo2015.png}
\vspace{1cm}
{\LARGE{ UNIVERSITY OF MODENA AND REGGIO EMILIA \\}}
{\large{ "Enzo Ferrari" Department of Engineering \\}}
% Comment and uncomment the right ones
%{\large{ Master's Degree in Computer Engineering (LM-32) \\}}
{\large{ Master's Degree in Computer Engineering (LM-32) \\}}
\vspace{3cm}
{\Large { \textbf{<Title of the Thesis>} }}\\
\vspace{3cm}
\end{center}
\begin{minipage}[t]{0.47\textwidth}
{\large{\bf Supervisor:}\\}
{\large Prof. <Name Surname>\\}
{\large{\bf Co-supervisor:}\\}
{\large Prof. <Name Surname>}
\end{minipage}\hfill\begin{minipage}[t]{0.47\textwidth}\raggedleft
{\large{\bf Candidate:}\\}
{\large <Name Surname>}\\
{\large Student ID <matricola>}
\end{minipage}
\vfill
\hrulefill\\
\centering{\large{\bf ACADEMIC YEAR 20XX/20XX }}
\end{titlepage}
\pagestyle{empty}
\input{chapters/00_dedication}
\clearpage
\tableofcontents % Generates the Table of Contents
\renewcommand{\listfigurename}{List of Figures}
\listoffigures % Generates the List of Figures
\renewcommand{\lstlistingname}{Code}
\renewcommand{\lstlistlistingname}{List of Code}
\lstlistoflistings % Generates the List of Code Listings
\clearpage
\pagestyle{scrplain} % Restores the normal page style (with page number)
\setcounter{page}{1} % Restart page numbering from 1
% Add chapters here
\input{chapters/01_introduction.tex}
\input{chapters/02_second_chapter.tex}
\input{chapters/03_third_chapter.tex}
\input{chapters/05_conclusions.tex}
\input{chapters/99_acknowledgements}
\clearpage
\addcontentsline{toc}{chapter}{References}
\printbibliography[heading=subbibliography, title=Bibliography]
\nocite{*}
\end{document}
tables/complex_table.tex · 3 KB
\renewcommand{\arraystretch}{1.2}
\setlength{\tabcolsep}{3pt}
\begin{table}[tb]
\centering
\caption{Comparative analysis of different fruits combining various ripening methods, origins, and viewpoints. Run IDs represent different experiments on harvests.}
\label{tab:complex_table}
\begin{adjustbox}{width=0.9\textwidth}
\begin{tabular}{ccc*{11}r}
\toprule
\multirow{2}{*}[-5pt]{\rotatebox{90}{\textbf{Score}}} &
\multirow{2}{*}[-3pt]{\rotatebox{90}{\textbf{Origin}} } &
\multirow{2}{*}[-12pt]{\rotatebox{90}{\textbf{Fruit}}} &
\multicolumn{11}{c}{\textbf{Harvests}}\\
\cmidrule(lr){4-14}
& & &
\makecell[c]{\rotatebox{90}{\textbf{R1}}} &
\makecell[c]{\rotatebox{90}{\textbf{R2}}} &
\makecell[c]{\rotatebox{90}{\textbf{R3}}} &
\makecell[c]{\rotatebox{90}{\textbf{R4}}} &
\makecell[c]{\rotatebox{90}{\textbf{R5}}} &
\makecell[c]{\rotatebox{90}{\textbf{R6}}} &
\makecell[c]{\rotatebox{90}{\textbf{R7}}} &
\makecell[c]{\rotatebox{90}{\textbf{R8A}}} &
\makecell[c]{\rotatebox{90}{\textbf{R8S}}} &
\makecell[c]{\rotatebox{90}{\textbf{R9}}} &
\makecell[c]{\rotatebox{90}{\textbf{R10}}} \\
\midrule
% ===============================================================
% FIRST SECTION: Sweetness
% ===============================================================
\multirow{6}{*}{\rotatebox{90}{\textbf{Sweetness}}}
& \multirow{2}{*}{\rotatebox{90}{All}} & Apple & 87.23 & 88.01 & 87.44 & 86.99 & 88.12 & 87.55 & 88.23 & 87.66 & 88.42 & 88.09 & 87.77 \\
& & Banana & 91.31 & 92.05 & 91.74 & 91.92 & 90.84 & 92.18 & 91.95 & 92.02 & 91.85 & 91.99 & 91.88 \\
\cmidrule(lr){2-14}
& \multirow{2}{*}{\rotatebox{90}{Tropical}} & Pineapple & 84.45 & 85.02 & 84.60 & 84.99 & 84.25 & 85.15 & 84.79 & 84.92 & 85.11 & 84.85 & 84.88 \\
& & Mango & 90.12 & 90.89 & 91.10 & 90.67 & 90.33 & 91.21 & 90.97 & 91.03 & 91.30 & 90.95 & 91.12 \\
\cmidrule(lr){2-14}
& \multirow{2}{*}{\rotatebox{90}{Mediterr.}} & Orange & 88.44 & 89.11 & 88.99 & 89.23 & 88.51 & 89.34 & 89.28 & 89.21 & 89.43 & 89.15 & 89.32 \\
& & Lemon & 72.62 & 73.40 & 73.88 & 72.95 & 72.50 & 73.91 & 73.65 & 73.75 & 73.84 & 73.70 & 73.78 \\
\midrule
% ===============================================================
% SECOND SECTION: Juiciness
% ===============================================================
\multirow{9}{*}{\rotatebox{90}{\textbf{Juiciness}}}
& \multirow{3}{*}{\rotatebox{90}{All}} & Apple & 65.42 & 67.19 & 66.85 & 67.00 & 65.99 & 67.45 & 67.11 & 67.38 & 67.80 & 67.21 & 67.43 \\
& & Banana & 78.84 & 79.11 & 79.67 & 79.40 & 78.72 & 79.91 & 79.63 & 79.85 & 80.10 & 79.74 & 79.87 \\
& & Grape & 82.17 & 82.69 & 82.33 & 82.50 & 82.02 & 82.91 & 82.65 & 82.84 & 83.05 & 82.73 & 82.91 \\
\cmidrule(lr){2-14}
& \multirow{3}{*}{\rotatebox{90}{Tropical}} & Mango & 85.15 & 85.44 & 85.98 & 85.67 & 85.01 & 86.11 & 85.79 & 85.92 & 86.22 & 85.83 & 85.96 \\
& & Papaya & 74.83 & 75.02 & 75.37 & 75.14 & 74.76 & 75.49 & 75.23 & 75.40 & 75.60 & 75.28 & 75.39 \\
& & Pineapple & 77.04 & 77.49 & 77.71 & 77.31 & 77.05 & 77.80 & 77.58 & 77.66 & 77.93 & 77.60 & 77.74 \\
\cmidrule(lr){2-14}
& \multirow{3}{*}{\rotatebox{90}{Mediterr.}} & Orange & 81.90 & 82.30 & 82.65 & 82.49 & 81.87 & 82.76 & 82.52 & 82.68 & 82.95 & 82.59 & 82.70 \\
& & Lemon & 61.35 & 61.88 & 62.09 & 61.95 & 61.24 & 62.22 & 62.05 & 62.17 & 62.44 & 62.10 & 62.26 \\
& & Grapefruit & 68.75 & 69.21 & 69.58 & 69.37 & 68.80 & 69.83 & 69.65 & 69.70 & 69.99 & 69.68 & 69.82 \\
\bottomrule
\end{tabular}
\end{adjustbox}
\vspace{-10pt}
\end{table}
tables/table_example.tex · 2 KB
\begin{table}[tb] % Start of floating table environment; [tb] = top or bottom of the page
\centering % Centers the table
\caption{Example of a table with various fields, checkmarks, and crosses.} % Caption
\begin{adjustbox}{width=0.9\textwidth} % Fits the table to 90% of the text width
{\normalsize % Sets normal font size
\setlength{\tabcolsep}{8pt} % Sets horizontal spacing between columns
\begin{tabular}{cccrrrr} % Creates a table with 7 columns:
% c = centered alignment, r = right alignment
\toprule % Thick upper horizontal rule (booktabs)
% \makecell allows formatted or multi-line text inside a cell.
% It is especially useful in headers to avoid using \parbox or \multicolumn.
% Here it is used to center and bold the header text.
\makecell[c]{\textbf{Fruit}} &
\makecell[c]{\textbf{Orange-colored}} &
\makecell[c]{\textbf{Peelable}} &
\makecell[c]{\textbf{Weight}} &
\makecell[c]{\textbf{Price}} &
\makecell[c]{\textbf{Sugar}} &
\makecell[c]{\textbf{Rating (1–10)}} \\
% The symbol & separates columns within a row.
% Each cell of a row is delimited by an &.
% The \\ command ends the row and starts a new one.
\midrule % Medium horizontal rule
Orange & \checkmark & \checkmark & 0.200 & 2.50 & 9.0 & 8 \\ % Example of a row: & separates columns, \\ closes the row
Mandarin & \checkmark & \checkmark & 0.120 & 3.20 & 8.5 & 9 \\
Lemon & \ding{55} & \checkmark & 0.100 & 3.50 & 2.5 & 6 \\
\midrule
Apple & \ding{55} & \ding{55} & 0.180 & 2.80 & 10.0 & 8 \\
Banana & \ding{55} & \checkmark & 0.150 & 1.10 & 12.2 & 9 \\
Kiwi & \ding{55} & \checkmark & 0.120 & 4.00 & 9.1 & 7 \\
Mango & \checkmark & \checkmark & 0.300 & 5.00 & 14.0 & 10 \\
\bottomrule % Thick lower horizontal rule
\end{tabular} % End of tabular environment
} % End of \normalsize block
\end{adjustbox} % End of width adjustment
\label{tab:table_example} % Label for referencing
\vspace{-10pt} % Reduces space below the table
\end{table} % End of table environment
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗