\documentclass{article} \usepackage[english]{babel} % Use packages \usepackage{hhline} \usepackage{booktabs} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{enumitem} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{mathtools} \graphicspath{ {../res} } \title{Error-correcting codes} \author{Marco Andronaco} \theoremstyle{definition} \newtheorem{definition}{Definition} \newtheorem{theorem}{Theorem} \newtheorem{proposition}{Proposition} \newtheorem{lemma}{Lemma} \theoremstyle{definition} \newtheorem{example}{Example} \theoremstyle{definition} \newtheorem*{remark}{Remark} \makeatletter \renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{% \hskip -\arraycolsep \let\@ifnextchar\new@ifnextchar \array{#1}} \makeatother \DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor} \begin{document}