updated;
authorwenzelm
Thu, 29 Sep 2005 17:09:11 +0200
changeset 17726 957c1fd897da
parent 17725 d3f55965bdbf
child 17727 83d64a461507
updated;
doc-src/IsarOverview/Isar/document/pdfsetup.sty
doc-src/LaTeXsugar/Sugar/document/pdfsetup.sty
doc-src/Locales/Locales/document/pdfsetup.sty
--- a/doc-src/IsarOverview/Isar/document/pdfsetup.sty	Thu Sep 29 17:08:52 2005 +0200
+++ b/doc-src/IsarOverview/Isar/document/pdfsetup.sty	Thu Sep 29 17:09:11 2005 +0200
@@ -4,11 +4,22 @@
 %% smart url or hyperref setup
 %%
 
-\RequirePackage{ifpdf}
-\ifpdf
+\newif\ifpdfoutput
+\ifx\pdfoutput\undefined
+\else
+  \ifx\pdfoutput\relax
+  \else
+    \ifcase\pdfoutput
+    \else\pdfoutputtrue\fi
+  \fi
+\fi
+
+\ifpdfoutput
+  \message{PDF output}
   \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
   \usepackage[pdftex,a4paper,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
   \IfFileExists{thumbpdf.sty}{\usepackage{thumbpdf}}{}
 \else
+  \message{No PDF output}
   \usepackage{url}
 \fi
--- a/doc-src/LaTeXsugar/Sugar/document/pdfsetup.sty	Thu Sep 29 17:08:52 2005 +0200
+++ b/doc-src/LaTeXsugar/Sugar/document/pdfsetup.sty	Thu Sep 29 17:09:11 2005 +0200
@@ -4,11 +4,22 @@
 %% smart url or hyperref setup
 %%
 
-\RequirePackage{ifpdf}
-\ifpdf
+\newif\ifpdfoutput
+\ifx\pdfoutput\undefined
+\else
+  \ifx\pdfoutput\relax
+  \else
+    \ifcase\pdfoutput
+    \else\pdfoutputtrue\fi
+  \fi
+\fi
+
+\ifpdfoutput
+  \message{PDF output}
   \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
   \usepackage[pdftex,a4paper,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
   \IfFileExists{thumbpdf.sty}{\usepackage{thumbpdf}}{}
 \else
+  \message{No PDF output}
   \usepackage{url}
 \fi
--- a/doc-src/Locales/Locales/document/pdfsetup.sty	Thu Sep 29 17:08:52 2005 +0200
+++ b/doc-src/Locales/Locales/document/pdfsetup.sty	Thu Sep 29 17:09:11 2005 +0200
@@ -4,11 +4,22 @@
 %% smart url or hyperref setup
 %%
 
-\RequirePackage{ifpdf}
-\ifpdf
+\newif\ifpdfoutput
+\ifx\pdfoutput\undefined
+\else
+  \ifx\pdfoutput\relax
+  \else
+    \ifcase\pdfoutput
+    \else\pdfoutputtrue\fi
+  \fi
+\fi
+
+\ifpdfoutput
+  \message{PDF output}
   \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
   \usepackage[pdftex,a4paper,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
   \IfFileExists{thumbpdf.sty}{\usepackage{thumbpdf}}{}
 \else
+  \message{No PDF output}
   \usepackage{url}
 \fi