diff options
Diffstat (limited to 'thesis/main.tex')
-rw-r--r-- | thesis/main.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/thesis/main.tex b/thesis/main.tex index 2c2ed90..a3c71c3 100644 --- a/thesis/main.tex +++ b/thesis/main.tex @@ -9,12 +9,13 @@ \usepackage{amsmath} \usepackage{microtype} +\usepackage{calc} \usepackage[style=numeric]{biblatex} \addbibresource{biblio.bib} %% Convenience macros -\newcommand{\code}{\lstinline} -\newcommand{\todo}[1]{\colorbox{yellow}{TODO: #1} \par} +\newcommand{\code}[1]{\lstinline$#1$} +\newcommand{\todo}[1]{\par\noindent\colorbox{yellow}{\begin{minipage}{\linewidth-2\fboxsep}TODO: #1\end{minipage}}\par} %% Code blocks \usepackage{listings, listings-rust} |