From a6b09c19af43109b1377c1bd7d6afdabfcc02266 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Sat, 6 Dec 2014 04:09:36 +0100
Subject: Fix reuse lang variable with XeTeX (not unique mainlang).

---
 template.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'template.tex')

diff --git a/template.tex b/template.tex
index b1ec87e..cae6bc3 100644
--- a/template.tex
+++ b/template.tex
@@ -122,7 +122,7 @@ $endif$
 $if(lang)$
 \ifxetex
   \usepackage{polyglossia}
-  \setmainlanguage{$mainlang$}
+  \setmainlanguage{$lang$}
 \else
   \usepackage[$lang$]{babel}
 \fi
-- 
cgit v1.2.3

