From 62a8e11741ca6d5dcbcb164fc23606278240e10c Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Sun, 23 Oct 2016 16:01:46 +0200
Subject: Switch to XeLaTeX

---
 handouts.sty | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

(limited to 'handouts.sty')

diff --git a/handouts.sty b/handouts.sty
index d514362..78d2afe 100644
--- a/handouts.sty
+++ b/handouts.sty
@@ -1,3 +1,7 @@
+\RequirePackage{xcolor}
+\definecolor{ideacolor}{HTML}{d1713e}
+\definecolor{criticismcolor}{HTML}{d1713e}
+
 % Define ifsolutions only if it is not defined yet (see Makefile)
 \@ifundefined{ifshowpagenrs}{%
 	\newif\ifshowpagenrs
@@ -23,18 +27,15 @@
 \newcommand{\pagenrStyle}{\small\color{darkgray}}
 
 \newcommand{\criticismStart}{\emph{Criticism:} }
-\newcommand{\criticismStyle}{\color{RedOrange}}
+\newcommand{\criticismStyle}{\color{criticismcolor}}
 
 \newcommand{\ideaStart}{\emph{Idea:} }
-\newcommand{\ideaStyle}{\color{RedOrange}}
+\newcommand{\ideaStyle}{\color{ideacolor}}
 
 \newcommand{\noteStyle}{\color{gray}}
 
 \newcommand{\termStyle}{\it}
 
-\PassOptionsToPackage{dvipsnames}{xcolor}
-\RequirePackage{xcolor}
-
 \newcommand{\pagenr}[1]{%
 	\ifshowpagenrs\begingroup\pagenrStyle\enspace(p. #1)\endgroup\fi}
 \newcommand{\pagenrs}[1]{%
@@ -47,7 +48,9 @@
 	\parnote{\enspace(#1)}}
 \newcommand{\criticism}[1]{%
 	\ifshowcriticism\begingroup\criticismStyle\criticismStart{}#1\endgroup\fi}
+\newcommand{\plainIdea}[1]{%
+	\ifshowideas\begingroup\ideaStyle#1\endgroup\fi}
 \newcommand{\idea}[1]{%
-	\ifshowideas\begingroup\ideaStyle\ideaStart{}#1\endgroup\fi}
+	\ifshowideas\plainIdea{\ideaStart{}#1}\fi}
 \newcommand{\term}[1]{%
 	\begingroup\termStyle #1\endgroup}
-- 
cgit v1.2.3

