diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-10-04 21:52:08 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-10-04 21:52:08 -0700 |
commit | e32ab441bee323e3a2c6fced7c89bf0c6351d6c8 (patch) | |
tree | 2be5f9c36219e402c8a2c56b7d3e84ca07aa5890 /tests | |
parent | 15a5993f2ec84d59940abb59ebf31f6a868db4be (diff) | |
download | pandoc-e32ab441bee323e3a2c6fced7c89bf0c6351d6c8.tar.gz |
Updated tests for changes to latex template.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lhs-test.latex | 10 | ||||
-rw-r--r-- | tests/lhs-test.latex+lhs | 10 | ||||
-rw-r--r-- | tests/writer.latex | 10 |
3 files changed, 27 insertions, 3 deletions
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex index 626a74cfa..2d0373e76 100644 --- a/tests/lhs-test.latex +++ b/tests/lhs-test.latex @@ -23,6 +23,8 @@ \usepackage{microtype} \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts }{} +\makeatletter +\@ifpackageloaded{hyperref}{}{% \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex @@ -30,7 +32,13 @@ \else \usepackage[unicode=true]{hyperref} \fi -\usepackage[usenames,dvipsnames]{color} +} +\@ifpackageloaded{color}{ + \PassOptionsToPackage{usenames,dvipsnames}{color} +}{% + \usepackage[usenames,dvipsnames]{color} +} +\makeatother \hypersetup{breaklinks=true, bookmarks=true, pdfauthor={}, diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs index 029789ba8..101025c02 100644 --- a/tests/lhs-test.latex+lhs +++ b/tests/lhs-test.latex+lhs @@ -23,6 +23,8 @@ \usepackage{microtype} \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts }{} +\makeatletter +\@ifpackageloaded{hyperref}{}{% \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex @@ -30,7 +32,13 @@ \else \usepackage[unicode=true]{hyperref} \fi -\usepackage[usenames,dvipsnames]{color} +} +\@ifpackageloaded{color}{ + \PassOptionsToPackage{usenames,dvipsnames}{color} +}{% + \usepackage[usenames,dvipsnames]{color} +} +\makeatother \hypersetup{breaklinks=true, bookmarks=true, pdfauthor={}, diff --git a/tests/writer.latex b/tests/writer.latex index 8b34777fa..0e5ac8131 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -23,6 +23,8 @@ \usepackage{microtype} \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts }{} +\makeatletter +\@ifpackageloaded{hyperref}{}{% \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex @@ -30,7 +32,13 @@ \else \usepackage[unicode=true]{hyperref} \fi -\usepackage[usenames,dvipsnames]{color} +} +\@ifpackageloaded{color}{ + \PassOptionsToPackage{usenames,dvipsnames}{color} +}{% + \usepackage[usenames,dvipsnames]{color} +} +\makeatother \hypersetup{breaklinks=true, bookmarks=true, pdfauthor={John MacFarlane; Anonymous}, |