From 94c0c26b29edd8b9e8a2e9bd7d43931d21977377 Mon Sep 17 00:00:00 2001
From: Martin Erola <marer248@student.liu.se>
Date: Tue, 6 Dec 2016 15:20:43 +0100
Subject: [PATCH] Protect fragile parbox in demothesis author field

On some older versions of LaTeX, an error occurs when trying to use a
"\parbox" within the author field of the demothesis:
  ! Argument of \reserved@a has an extra }.

For example, the error occurs on Ubuntu 14.04 LTS when using the LaTeX
packages available in default repositories (i.e. TeX Live 2013/Debian).
It doesn't seem to occur on Ubuntu 16.04 LTS (TeX Live 2015/Debian).

For more information about this kind of error, do a web search for:
  Use of fragile command in a moving argument

Signed-off-by: Martin Erola <marer248@student.liu.se>
---
 demothesis.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/demothesis.tex b/demothesis.tex
index 06ee918..ba00a80 100644
--- a/demothesis.tex
+++ b/demothesis.tex
@@ -51,7 +51,7 @@
 \dateofpublication{2015-05-08}
 
 %\author{\texttt{\textbackslash author}}
-\author{\parbox{\textwidth}{Ola Leifler\\
+\author{\protect\parbox{\textwidth}{Ola Leifler\\
   Alexander Sanner}}
 
 \begin{document}
-- 
GitLab