summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/pgfplots.preamble.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/pgfplots.preamble.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgfplots/pgfplots.preamble.tex19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.preamble.tex b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.preamble.tex
index ec147b226ab..e4bf27ee3c8 100644
--- a/Master/texmf-dist/doc/latex/pgfplots/pgfplots.preamble.tex
+++ b/Master/texmf-dist/doc/latex/pgfplots/pgfplots.preamble.tex
@@ -89,12 +89,6 @@
\usepackage{textcomp}
\usepackage{booktabs}
-\IfFileExists{ocg.sty}{%
- \usepackage{ocg}%
-}{%
- \usepackage{pgfplots_ocg_copy}%
-}
-
\usepackage{calc}
\usepackage[formats]{listings}
%\usepackage{courier} % don't use it - the '^' character can't be copy-pasted in courier
@@ -145,11 +139,22 @@
\usepackage{nicefrac}
\input{pgfplots-macros}
+\makeatletter
+\@ifpackageloaded{tex4ht}{
+}{%
+ \IfFileExists{ocg.sty}{%
+ \usepackage{ocg}%
+ }{%
+ \usepackage{pgfplots_ocg_copy}%
+ }
+}%
+\makeatother
+
\usepackage{nicefrac}
\graphicspath{{figures/}}
-\def\preambleconfig{width=7cm,compat=1.6}
+\def\preambleconfig{width=7cm,compat=1.7}
\expandafter\pgfplotsset\expandafter{\preambleconfig}