From: Carlo Segre <segre@debian.org>
Date: Tue, 6 Aug 2024 12:53:43 +0200
Subject: Remove ifpdf definition in documentation

This patch is required for squeeze as the pdflatex package already
defines the ifpdf variable and consequently latex fails on compilation
of the docuementation.
---
 doc/RefMan/.latex_type      |  2 +-
 doc/RefMan/fourier.tex      | 12 ++++++------
 doc/RefMan/ifmacs.tex       |  8 +++++---
 doc/RefMan/ifmacs_pdf.tex   |  6 ++++--
 doc/RefMan/plotting.tex     |  8 ++++----
 doc/Tutorial/ifmacs_pdf.tex |  6 ++++--
 doc/Tutorial/ifmacs_ps.tex  |  6 ++++--
 7 files changed, 28 insertions(+), 20 deletions(-)

diff --git a/doc/RefMan/.latex_type b/doc/RefMan/.latex_type
index 5a5134c..da0de7e 100644
--- a/doc/RefMan/.latex_type
+++ b/doc/RefMan/.latex_type
@@ -1 +1 @@
-ps
+pdf
diff --git a/doc/RefMan/fourier.tex b/doc/RefMan/fourier.tex
index bf99580..b19986d 100644
--- a/doc/RefMan/fourier.tex
+++ b/doc/RefMan/fourier.tex
@@ -170,7 +170,7 @@ functions of $k$.  The $R$-space windows are exactly analogous with
 %%#GraphicsFile%    win_hanning  WinHanning
 % Anatomy of the Hanning Window.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/win_hanning.ps}
+  \includegraphics[width=4.0in]{figs/win_hanning.png}
   \caption{ Anatomy of the Hanning Window.}\label{Fig:WinHanning}
 \end{center} \end{figure}
 %%#EndGraphics%
@@ -178,7 +178,7 @@ functions of $k$.  The $R$-space windows are exactly analogous with
 %%#GraphicsFile%    win_parzen  WinParzen
 % Anatomy of the Parzen Window.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/win_parzen.ps}
+  \includegraphics[width=4.0in]{figs/win_parzen.png}
   \caption{ Anatomy of the Parzen Window.}\label{Fig:WinParzen}
 \end{center} \end{figure}
 %%#EndGraphics%
@@ -186,7 +186,7 @@ functions of $k$.  The $R$-space windows are exactly analogous with
 %%#GraphicsFile%    win_welch  WinWelch
 % Anatomy of the Welch Window.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/win_welch.ps}
+  \includegraphics[width=4.0in]{figs/win_welch.png}
   \caption{ Anatomy of the Welch Window.}\label{Fig:WinWelch}
 \end{center} \end{figure}
 %%#EndGraphics%
@@ -194,7 +194,7 @@ functions of $k$.  The $R$-space windows are exactly analogous with
 %%#GraphicsFile%    win_gauss  WinGauss
 % Anatomy of the Gauss Window.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/win_gauss.ps}
+  \includegraphics[width=4.0in]{figs/win_gauss.png}
   \caption{ Anatomy of the Gauss Window.}\label{Fig:WinGauss}
 \end{center} \end{figure}
 %%#EndGraphics%
@@ -202,7 +202,7 @@ functions of $k$.  The $R$-space windows are exactly analogous with
 %%#GraphicsFile%    win_kaiser  WinKaiser
 % Anatomy of the Kaiser Window.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/win_kaiser.ps}
+  \includegraphics[width=4.0in]{figs/win_kaiser.png}
   \caption{ Anatomy of the Kaiser Window.}\label{Fig:WinKaiser}
 \end{center} \end{figure}
 %%#EndGraphics%
@@ -210,7 +210,7 @@ functions of $k$.  The $R$-space windows are exactly analogous with
 %%#GraphicsFile%    win_sine  WinSine
 % Anatomy of the Sine Window.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/win_sine.ps}
+  \includegraphics[width=4.0in]{figs/win_sine.png}
   \caption{ Anatomy of the Sine Window.}\label{Fig:WinSine}
 \end{center} \end{figure}
 %%#EndGraphics%
diff --git a/doc/RefMan/ifmacs.tex b/doc/RefMan/ifmacs.tex
index 5679257..719150f 100644
--- a/doc/RefMan/ifmacs.tex
+++ b/doc/RefMan/ifmacs.tex
@@ -1,8 +1,10 @@
-pho%%  macros for ifeffit        -*-latex-*-
+%%  macros for ifeffit        -*-latex-*-
 
 %%  determine if this is pdflatex or latex
- \newif\ifpdf
- \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
+% No need for this, use the package (CUS)
+ \usepackage{ifpdf}
+% \newif\ifpdf
+% \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
 % %%% 
 % 
  \ifpdf
diff --git a/doc/RefMan/ifmacs_pdf.tex b/doc/RefMan/ifmacs_pdf.tex
index 2186fdb..6e36a10 100644
--- a/doc/RefMan/ifmacs_pdf.tex
+++ b/doc/RefMan/ifmacs_pdf.tex
@@ -1,8 +1,10 @@
 %%  macros for ifeffit        -*-latex-*-
 
 %%  determine if this is pdflatex or latex
- \newif\ifpdf
- \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
+% No need for this, use the package (CUS)
+ \usepackage{ifpdf}
+% \newif\ifpdf
+% \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
 % %%% 
 % 
  \ifpdf
diff --git a/doc/RefMan/plotting.tex b/doc/RefMan/plotting.tex
index 4e233d8..8997f15 100644
--- a/doc/RefMan/plotting.tex
+++ b/doc/RefMan/plotting.tex
@@ -318,7 +318,7 @@ shown in Figure~\ref{Fig:PlotPoints}.  {\index{plotting!line style}}
 %   A selection of plotting line and points styles
 %   for {\ifeffit}.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/plot_styles.ps}
+  \includegraphics[width=4.0in]{figs/plot_styles.png}
   \caption{ A selection of plotting line and points styles
  for {\ifeffit}.}\label{Fig:PlotStyles}
 \end{center} \end{figure}
@@ -332,7 +332,7 @@ shown in Figure~\ref{Fig:PlotPoints}.  {\index{plotting!line style}}
 % types such as {\tt{style=linespoints3}} will show the same point type,
 % joined with a solid line.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/plot_points.ps}
+  \includegraphics[width=4.0in]{figs/plot_points.png}
   \caption{ The plotting point types for {\ifeffit}, as produced with
  syntax such as {\tt{style=points3}}, and so forth.  The linespoints
  types such as {\tt{style=linespoints3}} will show the same point type,
@@ -468,7 +468,7 @@ which will render fonts as shown in Figure~\ref{Fig:PlotFonts}.
 %  Sample of plotting text strings, fonts, and special characters
 %   for {\ifeffit}
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/plot_fonts.ps}
+  \includegraphics[width=4.0in]{figs/plot_fonts.png}
   \caption{ Sample of plotting text strings, fonts, and special characters
  for {\ifeffit}}\label{Fig:PlotFonts}
 \end{center} \end{figure}
@@ -536,7 +536,7 @@ which completely suppresses the arrowhead.
 %   A selection of examples of plotting arrow parameters
 %   for {\ifeffit}.
 \begin{figure}[tb] \begin{center}
-  \includegraphics[width=2.75in,angle=-90]{figs/plot_arrows.ps}
+  \includegraphics[width=4.0in]{figs/plot_arrows.png}
   \caption{ A selection of examples of plotting arrow parameters
  for {\ifeffit}.}\label{Fig:PlotArrows}
 \end{center} \end{figure}
diff --git a/doc/Tutorial/ifmacs_pdf.tex b/doc/Tutorial/ifmacs_pdf.tex
index f1ae7ec..719150f 100644
--- a/doc/Tutorial/ifmacs_pdf.tex
+++ b/doc/Tutorial/ifmacs_pdf.tex
@@ -1,8 +1,10 @@
 %%  macros for ifeffit        -*-latex-*-
 
 %%  determine if this is pdflatex or latex
- \newif\ifpdf
- \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
+% No need for this, use the package (CUS)
+ \usepackage{ifpdf}
+% \newif\ifpdf
+% \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
 % %%% 
 % 
  \ifpdf
diff --git a/doc/Tutorial/ifmacs_ps.tex b/doc/Tutorial/ifmacs_ps.tex
index 98734cd..fdfc2a9 100644
--- a/doc/Tutorial/ifmacs_ps.tex
+++ b/doc/Tutorial/ifmacs_ps.tex
@@ -1,8 +1,10 @@
 %%  macros for ifeffit        -*-latex-*-
 
 %%  determine if this is pdflatex or latex
- \newif\ifpdf
- \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
+% No need for this, use the package (CUS)
+ \usepackage{ifpdf}
+% \newif\ifpdf
+% \ifx\pdfoutput\undefined{\pdffalse}\else{\pdfoutput=1 \pdftrue}\fi
 % %%% 
 % 
  \ifpdf
