Re: Cannot Determine Size of Graphic Error due to CLS

2010-07-26 Thread Danny Parker
Julien,

That fixed it.  Thanks a lot for your help.

Danny

On Fri, Jul 23, 2010 at 6:48 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 23/07/2010 5:33 PM, Danny Parker wrote:

 I'm working on a dissertation with my colleges thesis.cls and I'm having a
 problem including graphics.  If I don't include them and compile to pdf
 everything works great.  If I include a graphic (whether jpg, png, bmp, or
 eps) I get an error saying Cannot Determin Size of Graphic in  ...  It
 will create the DVI fine and everything will look correct but I can't
 create
 a pdf.  Also if I use another class like article it will work fine.  I'm
 using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
 the relevant section of the .cls that redefines the \Figure command is
 here
 but I'm not experience enough to make heads or tails of it so any help
 would
 be greatly appreciated.  I'm also including the .cls and a test document I
 made.  I works fine until I place any graphic into the float.

 %%%figure definitions
 %
 \def\...@figure{htbp} %MSU thesis%
 %MSU%%%special commands to support MSU style figures
 \DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
 \DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
 sentence
 \DeclareRobustCommand*{\Figure}[3]{
\newspacing{\singlespacing}\par
\begin{figure}
\begin{center}
\noindent
\includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
\end{center}
\caption{#3}
\label{fig:#1}
\end{figure}
\newspacing{\defaultspacing}
 }


 Hi,

 The problem is not the definition above. LyX doesn't know about such custom
 commands anyway.

 The problem is on line 47 of msuthesis.cls:
 \RequirePackage[dvips]{graphicx}

 Comment it out (put a % in front), or at least remove the [dvips] part,
 which loads settings for /a particular driver/ which conflicts with your use
 of pdflatex.

 Then, it works. Here at least.

 --
 Julien



Re: Cannot Determine Size of Graphic Error due to CLS

2010-07-26 Thread Danny Parker
Julien,

That fixed it.  Thanks a lot for your help.

Danny

On Fri, Jul 23, 2010 at 6:48 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 23/07/2010 5:33 PM, Danny Parker wrote:

 I'm working on a dissertation with my colleges thesis.cls and I'm having a
 problem including graphics.  If I don't include them and compile to pdf
 everything works great.  If I include a graphic (whether jpg, png, bmp, or
 eps) I get an error saying Cannot Determin Size of Graphic in  ...  It
 will create the DVI fine and everything will look correct but I can't
 create
 a pdf.  Also if I use another class like article it will work fine.  I'm
 using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
 the relevant section of the .cls that redefines the \Figure command is
 here
 but I'm not experience enough to make heads or tails of it so any help
 would
 be greatly appreciated.  I'm also including the .cls and a test document I
 made.  I works fine until I place any graphic into the float.

 %%%figure definitions
 %
 \def\...@figure{htbp} %MSU thesis%
 %MSU%%%special commands to support MSU style figures
 \DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
 \DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
 sentence
 \DeclareRobustCommand*{\Figure}[3]{
\newspacing{\singlespacing}\par
\begin{figure}
\begin{center}
\noindent
\includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
\end{center}
\caption{#3}
\label{fig:#1}
\end{figure}
\newspacing{\defaultspacing}
 }


 Hi,

 The problem is not the definition above. LyX doesn't know about such custom
 commands anyway.

 The problem is on line 47 of msuthesis.cls:
 \RequirePackage[dvips]{graphicx}

 Comment it out (put a % in front), or at least remove the [dvips] part,
 which loads settings for /a particular driver/ which conflicts with your use
 of pdflatex.

 Then, it works. Here at least.

 --
 Julien



Re: Cannot Determine Size of Graphic Error due to CLS

2010-07-26 Thread Danny Parker
Julien,

That fixed it.  Thanks a lot for your help.

Danny

On Fri, Jul 23, 2010 at 6:48 PM, Julien Rioux wrote:

> On 23/07/2010 5:33 PM, Danny Parker wrote:
>
>> I'm working on a dissertation with my colleges thesis.cls and I'm having a
>> problem including graphics.  If I don't include them and compile to pdf
>> everything works great.  If I include a graphic (whether jpg, png, bmp, or
>> eps) I get an error saying "Cannot Determin Size of Graphic in " ...  It
>> will create the DVI fine and everything will look correct but I can't
>> create
>> a pdf.  Also if I use another class like article it will work fine.  I'm
>> using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
>> the relevant section of the .cls that redefines the \Figure command is
>> here
>> but I'm not experience enough to make heads or tails of it so any help
>> would
>> be greatly appreciated.  I'm also including the .cls and a test document I
>> made.  I works fine until I place any graphic into the float.
>>
>> %%%figure definitions
>> %
>> \def\...@figure{htbp} %MSU thesis%
>> %MSU%%%special commands to support MSU style figures
>> \DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
>> \DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
>> sentence
>> \DeclareRobustCommand*{\Figure}[3]{
>>\newspacing{\singlespacing}\par
>>\begin{figure}
>>\begin{center}
>>\noindent
>>\includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
>>\end{center}
>>\caption{#3}
>>\label{fig:#1}
>>\end{figure}
>>\newspacing{\defaultspacing}
>> }
>>
>>
> Hi,
>
> The problem is not the definition above. LyX doesn't know about such custom
> commands anyway.
>
> The problem is on line 47 of msuthesis.cls:
> \RequirePackage[dvips]{graphicx}
>
> Comment it out (put a % in front), or at least remove the [dvips] part,
> which loads settings for /a particular driver/ which conflicts with your use
> of pdflatex.
>
> Then, it works. Here at least.
>
> --
> Julien
>


Cannot Determine Size of Graphic Error due to CLS

2010-07-23 Thread Danny Parker
I'm working on a dissertation with my colleges thesis.cls and I'm having a
problem including graphics.  If I don't include them and compile to pdf
everything works great.  If I include a graphic (whether jpg, png, bmp, or
eps) I get an error saying Cannot Determin Size of Graphic in  ...  It
will create the DVI fine and everything will look correct but I can't create
a pdf.  Also if I use another class like article it will work fine.  I'm
using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
the relevant section of the .cls that redefines the \Figure command is here
but I'm not experience enough to make heads or tails of it so any help would
be greatly appreciated.  I'm also including the .cls and a test document I
made.  I works fine until I place any graphic into the float.

%%%figure definitions
%
\def\...@figure{htbp} %MSU thesis%
%MSU%%%special commands to support MSU style figures
\DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
\DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
sentence
\DeclareRobustCommand*{\Figure}[3]{
   \newspacing{\singlespacing}\par
   \begin{figure}
   \begin{center}
   \noindent
   \includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
   \end{center}
   \caption{#3}
   \label{fig:#1}
   \end{figure}
   \newspacing{\defaultspacing}
}


test.lyx
Description: Binary data


msuthesis.cls
Description: Binary data


msuthesis.layout
Description: Binary data


Re: Cannot Determine Size of Graphic Error due to CLS

2010-07-23 Thread Julien Rioux

On 23/07/2010 5:33 PM, Danny Parker wrote:

I'm working on a dissertation with my colleges thesis.cls and I'm having a
problem including graphics.  If I don't include them and compile to pdf
everything works great.  If I include a graphic (whether jpg, png, bmp, or
eps) I get an error saying Cannot Determin Size of Graphic in  ...  It
will create the DVI fine and everything will look correct but I can't create
a pdf.  Also if I use another class like article it will work fine.  I'm
using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
the relevant section of the .cls that redefines the \Figure command is here
but I'm not experience enough to make heads or tails of it so any help would
be greatly appreciated.  I'm also including the .cls and a test document I
made.  I works fine until I place any graphic into the float.

%%%figure definitions
%
\def\...@figure{htbp} %MSU thesis%
%MSU%%%special commands to support MSU style figures
\DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
\DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
sentence
\DeclareRobustCommand*{\Figure}[3]{
\newspacing{\singlespacing}\par
\begin{figure}
\begin{center}
\noindent
\includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
\end{center}
\caption{#3}
\label{fig:#1}
\end{figure}
\newspacing{\defaultspacing}
}



Hi,

The problem is not the definition above. LyX doesn't know about such 
custom commands anyway.


The problem is on line 47 of msuthesis.cls:
\RequirePackage[dvips]{graphicx}

Comment it out (put a % in front), or at least remove the [dvips] part, 
which loads settings for /a particular driver/ which conflicts with your 
use of pdflatex.


Then, it works. Here at least.

--
Julien


Cannot Determine Size of Graphic Error due to CLS

2010-07-23 Thread Danny Parker
I'm working on a dissertation with my colleges thesis.cls and I'm having a
problem including graphics.  If I don't include them and compile to pdf
everything works great.  If I include a graphic (whether jpg, png, bmp, or
eps) I get an error saying Cannot Determin Size of Graphic in  ...  It
will create the DVI fine and everything will look correct but I can't create
a pdf.  Also if I use another class like article it will work fine.  I'm
using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
the relevant section of the .cls that redefines the \Figure command is here
but I'm not experience enough to make heads or tails of it so any help would
be greatly appreciated.  I'm also including the .cls and a test document I
made.  I works fine until I place any graphic into the float.

%%%figure definitions
%
\def\...@figure{htbp} %MSU thesis%
%MSU%%%special commands to support MSU style figures
\DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
\DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
sentence
\DeclareRobustCommand*{\Figure}[3]{
   \newspacing{\singlespacing}\par
   \begin{figure}
   \begin{center}
   \noindent
   \includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
   \end{center}
   \caption{#3}
   \label{fig:#1}
   \end{figure}
   \newspacing{\defaultspacing}
}


test.lyx
Description: Binary data


msuthesis.cls
Description: Binary data


msuthesis.layout
Description: Binary data


Re: Cannot Determine Size of Graphic Error due to CLS

2010-07-23 Thread Julien Rioux

On 23/07/2010 5:33 PM, Danny Parker wrote:

I'm working on a dissertation with my colleges thesis.cls and I'm having a
problem including graphics.  If I don't include them and compile to pdf
everything works great.  If I include a graphic (whether jpg, png, bmp, or
eps) I get an error saying Cannot Determin Size of Graphic in  ...  It
will create the DVI fine and everything will look correct but I can't create
a pdf.  Also if I use another class like article it will work fine.  I'm
using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
the relevant section of the .cls that redefines the \Figure command is here
but I'm not experience enough to make heads or tails of it so any help would
be greatly appreciated.  I'm also including the .cls and a test document I
made.  I works fine until I place any graphic into the float.

%%%figure definitions
%
\def\...@figure{htbp} %MSU thesis%
%MSU%%%special commands to support MSU style figures
\DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
\DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
sentence
\DeclareRobustCommand*{\Figure}[3]{
\newspacing{\singlespacing}\par
\begin{figure}
\begin{center}
\noindent
\includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
\end{center}
\caption{#3}
\label{fig:#1}
\end{figure}
\newspacing{\defaultspacing}
}



Hi,

The problem is not the definition above. LyX doesn't know about such 
custom commands anyway.


The problem is on line 47 of msuthesis.cls:
\RequirePackage[dvips]{graphicx}

Comment it out (put a % in front), or at least remove the [dvips] part, 
which loads settings for /a particular driver/ which conflicts with your 
use of pdflatex.


Then, it works. Here at least.

--
Julien


Cannot Determine Size of Graphic Error due to CLS

2010-07-23 Thread Danny Parker
I'm working on a dissertation with my colleges thesis.cls and I'm having a
problem including graphics.  If I don't include them and compile to pdf
everything works great.  If I include a graphic (whether jpg, png, bmp, or
eps) I get an error saying "Cannot Determin Size of Graphic in " ...  It
will create the DVI fine and everything will look correct but I can't create
a pdf.  Also if I use another class like article it will work fine.  I'm
using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
the relevant section of the .cls that redefines the \Figure command is here
but I'm not experience enough to make heads or tails of it so any help would
be greatly appreciated.  I'm also including the .cls and a test document I
made.  I works fine until I place any graphic into the float.

%%%figure definitions
%
\def\...@figure{htbp} %MSU thesis%
%MSU%%%special commands to support MSU style figures
\DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
\DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
sentence
\DeclareRobustCommand*{\Figure}[3]{
   \newspacing{\singlespacing}\par
   \begin{figure}
   \begin{center}
   \noindent
   \includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
   \end{center}
   \caption{#3}
   \label{fig:#1}
   \end{figure}
   \newspacing{\defaultspacing}
}


test.lyx
Description: Binary data


msuthesis.cls
Description: Binary data


msuthesis.layout
Description: Binary data


Re: Cannot Determine Size of Graphic Error due to CLS

2010-07-23 Thread Julien Rioux

On 23/07/2010 5:33 PM, Danny Parker wrote:

I'm working on a dissertation with my colleges thesis.cls and I'm having a
problem including graphics.  If I don't include them and compile to pdf
everything works great.  If I include a graphic (whether jpg, png, bmp, or
eps) I get an error saying "Cannot Determin Size of Graphic in " ...  It
will create the DVI fine and everything will look correct but I can't create
a pdf.  Also if I use another class like article it will work fine.  I'm
using Lyx 1.6.7 on a Windows XP x64 machine.  It seems like
the relevant section of the .cls that redefines the \Figure command is here
but I'm not experience enough to make heads or tails of it so any help would
be greatly appreciated.  I'm also including the .cls and a test document I
made.  I works fine until I place any graphic into the float.

%%%figure definitions
%
\def\...@figure{htbp} %MSU thesis%
%MSU%%%special commands to support MSU style figures
\DeclareRobustCommand*{\figureref}[1]{Figure~\ref{fig:#1}}
\DeclareRobustCommand*{\Figureref}[1]{Figure~\ref{fig:#1}} %at start of
sentence
\DeclareRobustCommand*{\Figure}[3]{
\newspacing{\singlespacing}\par
\begin{figure}
\begin{center}
\noindent
\includegraphics[width=#2]{#1.eps}  %%%MSU 5/17/07%%%epsf is obsolete
\end{center}
\caption{#3}
\label{fig:#1}
\end{figure}
\newspacing{\defaultspacing}
}



Hi,

The problem is not the definition above. LyX doesn't know about such 
custom commands anyway.


The problem is on line 47 of msuthesis.cls:
\RequirePackage[dvips]{graphicx}

Comment it out (put a % in front), or at least remove the [dvips] part, 
which loads settings for /a particular driver/ which conflicts with your 
use of pdflatex.


Then, it works. Here at least.

--
Julien