diff options
-rw-r--r-- | default.latex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/default.latex b/default.latex index 2deebfecc..92cfbc737 100644 --- a/default.latex +++ b/default.latex @@ -53,6 +53,8 @@ $endif$ $if(geometry)$ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} $endif$ +\makeatletter +\@ifpackageloaded{hyperref}{}{% \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex @@ -60,7 +62,13 @@ $endif$ \else \usepackage[unicode=true]{hyperref} \fi +} +\makeatother +\makeatletter +\@ifpackageloaded{color}{}{% \usepackage[usenames,dvipsnames]{color} +} +\makeatother \hypersetup{breaklinks=true, bookmarks=true, pdfauthor={$author-meta$}, |