[Tutkielma-TeX] [darcs] gradu2.cls-muutos: Renamed \ifpdf to prevent name clash with ifpdf.sty on some distributions

Matthieu Weber mweber at mit.jyu.fi
Tue May 20 12:18:43 EEST 2008


(English below)

Tämä on automaattinen ilmoitus gradu2-luokkaan tai sen dokumentaatioon tehdystä
muutoksesta.  Voit hakea uuden, muutetun version osoitteesta
  http://antti-juhani.kaijanaho.fi/darcs/jydiss/

Alla on tiedot tehdystä muutoksesta.

---

This is an automated notification of a change made to the gradu2 document
class or its accompanying documentation.  You can get the new version at
  http://antti-juhani.kaijanaho.fi/darcs/jydiss/

Below, you will find information about the actual change.

Tue May 20 12:17:29 EEST 2008  Matthieu Weber <mweber at mit.jyu.fi>
  * Renamed \ifpdf to prevent name clash with ifpdf.sty on some distributions
diff -rN -u old-gradu.cls/example.tex new-gradu.cls/example.tex
--- old-gradu.cls/example.tex	2008-05-20 12:18:43.556532000 +0300
+++ new-gradu.cls/example.tex	2008-05-20 12:18:43.617250000 +0300
@@ -1,12 +1,14 @@
 %\documentclass[english,latin1,numbib,palatino]{gradu2}
 \documentclass[english,latin1,numbib]{gradu2}
 
-\ifpdf
+\makeatletter
+\ifgradu at pdf
   \usepackage[pdftex,bookmarksopen,bookmarksnumbered]{hyperref}
 	%\hypersetup{colorlinks,citecolor=blue}
 \else
 	\RequirePackage[hypertex]{hyperref}
 \fi
+\makeatother
 %\usepackage{lmodern}
 
 \title{XML Forms}
diff -rN -u old-gradu.cls/gradu2.cls new-gradu.cls/gradu2.cls
--- old-gradu.cls/gradu2.cls	2008-05-20 12:18:43.556532000 +0300
+++ new-gradu.cls/gradu2.cls	2008-05-20 12:18:43.617250000 +0300
@@ -15,14 +15,14 @@
 
 %% Some packages need special handling if the output is PDF, this \if is just
 %% in case we need it
-\newif\ifpdf
+\newif\ifgradu at pdf
 \ifx\pdfoutput\undefined
-  \pdffalse
+  \gradu at pdffalse
 \else
   \ifnum\pdfoutput=1
-    \pdftrue
+    \gradu at pdftrue
   \else
-    \pdffalse
+    \gradu at pdffalse
   \fi
 \fi
 
@@ -122,7 +122,7 @@
 \LoadClass[a4paper,12pt]{\gradu at baseclass}
 
 \iflogo
-\ifpdf
+\ifgradu at pdf
 \IfFileExists{logo_jyu.pdf}
   {\typeout{Using logo file logo_jyu.pdf}}
   {\logofalse\ClassWarning{gradu2}{Could not find logo_jyu.pdf, logo is disabled}}
@@ -236,7 +236,7 @@
    \@ifpackageloaded{graphicx}{}{%
     \ClassWarning{gradu2}{The logo option requires the graphicx package to be
     loaded, loading it now.}
-    \ifpdf
+    \ifgradu at pdf
     \RequirePackage[pdftex]{graphicx}
     \else
     \RequirePackage[dvips]{graphicx}






More information about the Tutkielma-TeX mailing list