git.iko.soy/typeable/pandoc
on master help sign in
Deal with conflicts with tufte-handout.cls

There are several conflicts that are raised when you use tufte-handout layout with the default.latex template, namely hyperref and color, which are already loaded by the class. This commit enables to only load `hyperref` and `color` packages if they are not already loaded (by Tufte).

commitf73de97de9a96fdbcea0f6d41427e3d6d137a99f authorXavier Olive <xavier@xoolive.org> dateThu 20 Aug 2015, 23:58 (11 years ago) parent229ec44
1 file changed+8
default.latex+8
default.latex+8
@@ -53,6 +53,8 @@ $endif$
5353$if(geometry)$
5454\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
5555$endif$
56+\makeatletter
57+\@ifpackageloaded{hyperref}{}{%
5658\ifxetex
5759 \usepackage[setpagesize=false, % page size defined by xetex
5860 unicode=false, % unicode breaks when used with xetex
@@ -60,7 +62,13 @@ $endif$
6062\else
6163 \usepackage[unicode=true]{hyperref}
6264\fi
65+}
66+\makeatother
67+\makeatletter
68+\@ifpackageloaded{color}{}{%
6369\usepackage[usenames,dvipsnames]{color}
70+}
71+\makeatother
6472\hypersetup{breaklinks=true,
6573 bookmarks=true,
6674 pdfauthor={$author-meta$},