ModernCV and Section Bibliography Problems

2012-03-01 Thread Danny Parker
I'm trying to make a CV with different sections for Journals, conferences,
etc in LyX 2.0.  I'm trying to follow the example shown
herehttp://wiki.lyx.org/BibTeX/Publist but
using the modernCV class. I can run the example code fine but when I do it
using my document I get an error found unknown 'thebibliography'
environment.  After digging into that it seems that document class or some
package is interfering.  I've tried clicking the natbib option but that did
not clear things up.  I'm at a lost of what to do next.  My files are
included below.  Any help would be appreciated.

Danny


ModernCV and Section Bibliography Problems

2012-03-01 Thread Danny Parker
Sorry for the double post but I forgot the files in the original one.

I'm trying to make a CV with different sections for Journals, conferences,
etc in LyX 2.0.  I'm trying to follow the example shown
herehttp://wiki.lyx.org/BibTeX/Publist but
using the modernCV class. I can run the example code fine but when I do it
using my document I get an error found unknown 'thebibliography'
environment.  After digging into that it seems that document class or some
package is interfering.  I've tried clicking the natbib option but that did
not clear things up.  I'm at a lost of what to do next.  My files are
included below.  Any help would be appreciated.

Danny


conference.bib
Description: Binary data


journals.bib
Description: Binary data


config.bib
Description: Binary data


DannyCV.lyx
Description: Binary data


ModernCV and Section Bibliography Problems

2012-03-01 Thread Danny Parker
I'm trying to make a CV with different sections for Journals, conferences,
etc in LyX 2.0.  I'm trying to follow the example shown
herehttp://wiki.lyx.org/BibTeX/Publist but
using the modernCV class. I can run the example code fine but when I do it
using my document I get an error found unknown 'thebibliography'
environment.  After digging into that it seems that document class or some
package is interfering.  I've tried clicking the natbib option but that did
not clear things up.  I'm at a lost of what to do next.  My files are
included below.  Any help would be appreciated.

Danny


ModernCV and Section Bibliography Problems

2012-03-01 Thread Danny Parker
Sorry for the double post but I forgot the files in the original one.

I'm trying to make a CV with different sections for Journals, conferences,
etc in LyX 2.0.  I'm trying to follow the example shown
herehttp://wiki.lyx.org/BibTeX/Publist but
using the modernCV class. I can run the example code fine but when I do it
using my document I get an error found unknown 'thebibliography'
environment.  After digging into that it seems that document class or some
package is interfering.  I've tried clicking the natbib option but that did
not clear things up.  I'm at a lost of what to do next.  My files are
included below.  Any help would be appreciated.

Danny


conference.bib
Description: Binary data


journals.bib
Description: Binary data


config.bib
Description: Binary data


DannyCV.lyx
Description: Binary data


ModernCV and Section Bibliography Problems

2012-03-01 Thread Danny Parker
I'm trying to make a CV with different sections for Journals, conferences,
etc in LyX 2.0.  I'm trying to follow the example shown
here but
using the modernCV class. I can run the example code fine but when I do it
using my document I get an error "found unknown 'thebibliography'
environment".  After digging into that it seems that document class or some
package is interfering.  I've tried clicking the natbib option but that did
not clear things up.  I'm at a lost of what to do next.  My files are
included below.  Any help would be appreciated.

Danny


ModernCV and Section Bibliography Problems

2012-03-01 Thread Danny Parker
Sorry for the double post but I forgot the files in the original one.

I'm trying to make a CV with different sections for Journals, conferences,
etc in LyX 2.0.  I'm trying to follow the example shown
here but
using the modernCV class. I can run the example code fine but when I do it
using my document I get an error "found unknown 'thebibliography'
environment".  After digging into that it seems that document class or some
package is interfering.  I've tried clicking the natbib option but that did
not clear things up.  I'm at a lost of what to do next.  My files are
included below.  Any help would be appreciated.

Danny


conference.bib
Description: Binary data


journals.bib
Description: Binary data


config.bib
Description: Binary data


DannyCV.lyx
Description: Binary data


Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
Thanks again.  I'll do some reading and then maybe pose some more questions.

Danny

On Mon, Feb 14, 2011 at 1:10 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 14/02/2011 1:46 PM, Danny Parker wrote:

 Thanks for the response.

 I understand what you are saying about it being a class problem.
  Unfortunately there is no update.  Is there a way I can make LyX's
 caption
 conform to the single space, single line standard?  Any advice would be
 appreciated.

 Danny


 Hi,

 I personally don't know how to achieve your caption format, but I can point
 you in the right direction. What you want to achieve can be controlled at
 the latex level. There will be some latex code that you can put in your
 document's preamble to achieve it.

 One option that I can think of, off the top of my head, is the caption
 latex package. You might want to search for its documentation and read it. I
 don't know for sure if this package can do what you want, but it is likely.
 In any case, now that we have established that it is a latex question, it
 can be asked on dedicated latex channels. There are latex experts roaming
 this list as well, but you would increase the likelihood of an answer by
 asking on comp.lang.tex, etc.

 Cheers,
 Julien



Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
That did get the figure number and caption in the same line (much thanks)
but it did not single space the caption.  Do you know of a quick way of
fixing that?  I tried just using the paragraph settings but it seems the
class has redefined /singlespace so when I try to make the pdf I get an
error.  Thanks to the help of another user I think I can edit the class to
rename the command freeing up /singlespacing.  The one thing I'm unsure of
when doing that is do I only have to reconfigure LyX or do I need to do
something with MiKTeX also?

Again thanks for the help.  It's very much appreciated.

On Mon, Feb 14, 2011 at 1:41 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 \usepackage[labelsep=period]{caption}



Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
That gave me the same error that singlespacing is already defined.  I'll go
fool around with the class and see if I can't get singlespacing working
again.

You're very welcome. Good luck.


Thanks.  If I get this done I'll hoist a beverage in your (and the others
who helped me) honour.

On Mon, Feb 14, 2011 at 1:57 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 14/02/2011 2:51 PM, Danny Parker wrote:

 That did get the figure number and caption in the same line (much thanks)
 but it did not single space the caption.  Do you know of a quick way of
 fixing that?  I tried just using the paragraph settings but it seems the
 class has redefined /singlespace so when I try to make the pdf I get an
 error.


 How about:
 \usepackage[font=singlespacing,labelsep=period]{caption}



   Thanks to the help of another user I think I can edit the class to
 rename the command freeing up /singlespacing.  The one thing I'm unsure of
 when doing that is do I only have to reconfigure LyX or do I need to do
 something with MiKTeX also?


 If you modify the class file you don't need to reconfigure anything I'd
 think. If you made a renamed copy of the class file under a different name,
 and change or rename your LyX layout file accordingly, then I'd think you
 would need to reconfigure LyX.


  Again thanks for the help.  It's very much appreciated.


 You're very welcome. Good luck.

 Julien


  On Mon, Feb 14, 2011 at 1:41 PM, Julien Riouxjri...@physics.utoronto.ca
 wrote:

  \usepackage[labelsep=period]{caption}







Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
Thanks again.  I'll do some reading and then maybe pose some more questions.

Danny

On Mon, Feb 14, 2011 at 1:10 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 14/02/2011 1:46 PM, Danny Parker wrote:

 Thanks for the response.

 I understand what you are saying about it being a class problem.
  Unfortunately there is no update.  Is there a way I can make LyX's
 caption
 conform to the single space, single line standard?  Any advice would be
 appreciated.

 Danny


 Hi,

 I personally don't know how to achieve your caption format, but I can point
 you in the right direction. What you want to achieve can be controlled at
 the latex level. There will be some latex code that you can put in your
 document's preamble to achieve it.

 One option that I can think of, off the top of my head, is the caption
 latex package. You might want to search for its documentation and read it. I
 don't know for sure if this package can do what you want, but it is likely.
 In any case, now that we have established that it is a latex question, it
 can be asked on dedicated latex channels. There are latex experts roaming
 this list as well, but you would increase the likelihood of an answer by
 asking on comp.lang.tex, etc.

 Cheers,
 Julien



Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
That did get the figure number and caption in the same line (much thanks)
but it did not single space the caption.  Do you know of a quick way of
fixing that?  I tried just using the paragraph settings but it seems the
class has redefined /singlespace so when I try to make the pdf I get an
error.  Thanks to the help of another user I think I can edit the class to
rename the command freeing up /singlespacing.  The one thing I'm unsure of
when doing that is do I only have to reconfigure LyX or do I need to do
something with MiKTeX also?

Again thanks for the help.  It's very much appreciated.

On Mon, Feb 14, 2011 at 1:41 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 \usepackage[labelsep=period]{caption}



Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
That gave me the same error that singlespacing is already defined.  I'll go
fool around with the class and see if I can't get singlespacing working
again.

You're very welcome. Good luck.


Thanks.  If I get this done I'll hoist a beverage in your (and the others
who helped me) honour.

On Mon, Feb 14, 2011 at 1:57 PM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 14/02/2011 2:51 PM, Danny Parker wrote:

 That did get the figure number and caption in the same line (much thanks)
 but it did not single space the caption.  Do you know of a quick way of
 fixing that?  I tried just using the paragraph settings but it seems the
 class has redefined /singlespace so when I try to make the pdf I get an
 error.


 How about:
 \usepackage[font=singlespacing,labelsep=period]{caption}



   Thanks to the help of another user I think I can edit the class to
 rename the command freeing up /singlespacing.  The one thing I'm unsure of
 when doing that is do I only have to reconfigure LyX or do I need to do
 something with MiKTeX also?


 If you modify the class file you don't need to reconfigure anything I'd
 think. If you made a renamed copy of the class file under a different name,
 and change or rename your LyX layout file accordingly, then I'd think you
 would need to reconfigure LyX.


  Again thanks for the help.  It's very much appreciated.


 You're very welcome. Good luck.

 Julien


  On Mon, Feb 14, 2011 at 1:41 PM, Julien Riouxjri...@physics.utoronto.ca
 wrote:

  \usepackage[labelsep=period]{caption}







Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
Thanks again.  I'll do some reading and then maybe pose some more questions.

Danny

On Mon, Feb 14, 2011 at 1:10 PM, Julien Rioux <jri...@physics.utoronto.ca>wrote:

> On 14/02/2011 1:46 PM, Danny Parker wrote:
>
>> Thanks for the response.
>>
>> I understand what you are saying about it being a class problem.
>>  Unfortunately there is no update.  Is there a way I can make LyX's
>> caption
>> conform to the single space, single line standard?  Any advice would be
>> appreciated.
>>
>> Danny
>>
>>
> Hi,
>
> I personally don't know how to achieve your caption format, but I can point
> you in the right direction. What you want to achieve can be controlled at
> the latex level. There will be some latex code that you can put in your
> document's preamble to achieve it.
>
> One option that I can think of, off the top of my head, is the "caption"
> latex package. You might want to search for its documentation and read it. I
> don't know for sure if this package can do what you want, but it is likely.
> In any case, now that we have established that it is a latex question, it
> can be asked on dedicated latex channels. There are latex experts roaming
> this list as well, but you would increase the likelihood of an answer by
> asking on comp.lang.tex, etc.
>
> Cheers,
> Julien
>


Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
That did get the figure number and caption in the same line (much thanks)
but it did not single space the caption.  Do you know of a quick way of
fixing that?  I tried just using the paragraph settings but it seems the
class has redefined /singlespace so when I try to make the pdf I get an
error.  Thanks to the help of another user I think I can edit the class to
rename the command freeing up /singlespacing.  The one thing I'm unsure of
when doing that is do I only have to reconfigure LyX or do I need to do
something with MiKTeX also?

Again thanks for the help.  It's very much appreciated.

On Mon, Feb 14, 2011 at 1:41 PM, Julien Rioux wrote:

> \usepackage[labelsep=period]{caption}
>


Re: Custom Class Figure Problem

2011-02-14 Thread Danny Parker
That gave me the same error that singlespacing is already defined.  I'll go
fool around with the class and see if I can't get singlespacing working
again.

You're very welcome. Good luck.


Thanks.  If I get this done I'll hoist a beverage in your (and the others
who helped me) honour.

On Mon, Feb 14, 2011 at 1:57 PM, Julien Rioux <jri...@physics.utoronto.ca>wrote:

> On 14/02/2011 2:51 PM, Danny Parker wrote:
>
>> That did get the figure number and caption in the same line (much thanks)
>> but it did not single space the caption.  Do you know of a quick way of
>> fixing that?  I tried just using the paragraph settings but it seems the
>> class has redefined /singlespace so when I try to make the pdf I get an
>> error.
>>
>
> How about:
> \usepackage[font=singlespacing,labelsep=period]{caption}
>
>
>
>   Thanks to the help of another user I think I can edit the class to
>> rename the command freeing up /singlespacing.  The one thing I'm unsure of
>> when doing that is do I only have to reconfigure LyX or do I need to do
>> something with MiKTeX also?
>>
>>
> If you modify the class file you don't need to reconfigure anything I'd
> think. If you made a renamed copy of the class file under a different name,
> and change or rename your LyX layout file accordingly, then I'd think you
> would need to reconfigure LyX.
>
>
>  Again thanks for the help.  It's very much appreciated.
>>
>>
> You're very welcome. Good luck.
>
> Julien
>
>
>  On Mon, Feb 14, 2011 at 1:41 PM, Julien Rioux<jri...@physics.utoronto.ca
>> >wrote:
>>
>>  \usepackage[labelsep=period]{caption}
>>>
>>>
>>
>
>


Custom Class Figure Problem

2011-02-10 Thread Danny Parker
I'm having a problem getting properly formatted figures in my output.  At
first I was using LyX float and insert graphic command which I mistakenly
though would format figures according to the class of my thesis.  However it
caused the caption of the output to be something like

figure
Figure #
Double spaced caption

Where the guideline is

Figure
Figure #. Caption single spaced

Upon some digging I found that the class defined a new command \Figure which
reads in *.eps files only.  So I tried inserting ERT to call that class but
when I try to create a pdf I get an error that says LaTeX Error: Unknown
graphics extension: .eps.  After doing some searching I think this is
because it is not properly calling the graphics format converters.  This is
where I'm beyond my understanding to fix.

What I want to do is either get the ERT to work properly or to change LyX's
settings to produce the proper formatting.  Any help anyone can give would
be greatly appreciated.

Danny


msuthesis.cls
Description: Binary data


Custom Class Figure Problem

2011-02-10 Thread Danny Parker
I'm having a problem getting properly formatted figures in my output.  At
first I was using LyX float and insert graphic command which I mistakenly
though would format figures according to the class of my thesis.  However it
caused the caption of the output to be something like

figure
Figure #
Double spaced caption

Where the guideline is

Figure
Figure #. Caption single spaced

Upon some digging I found that the class defined a new command \Figure which
reads in *.eps files only.  So I tried inserting ERT to call that class but
when I try to create a pdf I get an error that says LaTeX Error: Unknown
graphics extension: .eps.  After doing some searching I think this is
because it is not properly calling the graphics format converters.  This is
where I'm beyond my understanding to fix.

What I want to do is either get the ERT to work properly or to change LyX's
settings to produce the proper formatting.  Any help anyone can give would
be greatly appreciated.

Danny


msuthesis.cls
Description: Binary data


Custom Class Figure Problem

2011-02-10 Thread Danny Parker
I'm having a problem getting properly formatted figures in my output.  At
first I was using LyX float and insert graphic command which I mistakenly
though would format figures according to the class of my thesis.  However it
caused the caption of the output to be something like


Figure #
Double spaced caption

Where the guideline is


Figure #. Caption single spaced

Upon some digging I found that the class defined a new command \Figure which
reads in *.eps files only.  So I tried inserting ERT to call that class but
when I try to create a pdf I get an error that says "LaTeX Error: Unknown
graphics extension: .eps."  After doing some searching I think this is
because it is not properly calling the graphics format converters.  This is
where I'm beyond my understanding to fix.

What I want to do is either get the ERT to work properly or to change LyX's
settings to produce the proper formatting.  Any help anyone can give would
be greatly appreciated.

Danny


msuthesis.cls
Description: Binary data


ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker
I'm getting the following error when trying to switch to single spacing in
my document.

LaTeX Error: Command \singlespacing already defined.

From reading up on similar errors I think it may be a conflict between
packages but I'm not experienced enough to know which ones cause the
conflict and which ones can be deleted.  My document class is the thesis
class for my university which I'm including and it looks like it installs
the following packages:

\documentclass[oneside,english]{msuthesis}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{units}

\usepackage{textcomp}

\usepackage{graphicx}

\usepackage{setspace}

\usepackage{nomencl}


Can anyone point me in the right direction since Google wasn't any help?
 Thanks in advance.


Danny


msuthesis.cls
Description: Binary data


Re: ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker
Thanks a lot for the help.

Is that the line that says \newcommand{\singlespacing}{1}?  So I could
just replace all \singlespacing with something like \snglspcing?

If so, I'm not sure if that will address what I'm ultimately trying to do.
 My root problem is that when I insert a float figure, lyx's
\inlcudegraphics command has a caption that has the figure number and
caption on separate lines.  Where the thesis.cls defines a function \Figure
that supposedly does it all on one line (per the guidelines).  However, when
I insert ERT and call the classes function I get an error LaTeX Error:
Unknown graphics extension: .eps. which I don't know what to do with.  Any
suggestions there?

Danny



On Tue, Feb 8, 2011 at 5:28 PM, Richard Heck rgh...@comcast.net wrote:

 On 02/08/2011 06:23 PM, Danny Parker wrote:

 I'm getting the following error when trying to switch to single spacing in
 my document.

 LaTeX Error: Command \singlespacing already defined.

 From reading up on similar errors I think it may be a conflict between
 packages but I'm not experienced enough to know which ones cause the
 conflict and which ones can be deleted.  My document class is the thesis
 class for my university which I'm including and it looks like it installs
 the following packages:

 \documentclass[oneside,english]{msuthesis}

 \usepackage[T1]{fontenc}

 \usepackage[latin9]{inputenc}

 \usepackage{units}

 \usepackage{textcomp}

 \usepackage{graphicx}

 \usepackage{setspace}

 \usepackage{nomencl}


 Can anyone point me in the right direction since Google wasn't any help?
  Thanks in advance.


  If you look in your cls file, you will see that it does define a
 \singlespacing command. When you try to change to single spacing, LyX
 includes setspace.sty, which I think also defines a command by that name.
 The solution, for our purposes, is probably to change the command in the
 class file to something else, and then search and replace the other
 occurrences.

 Richard




Re: ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker

 Yes, but then you have to change all the \singlespacing commands in the
 class file to \snglspcing.


Understood.  Thanks for all the help.

Danny

On Tue, Feb 8, 2011 at 5:51 PM, Richard Heck rgh...@comcast.net wrote:

 Yes, but then you have to change all the \singlespacing commands in the
 class file to \snglspcing.


ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker
I'm getting the following error when trying to switch to single spacing in
my document.

LaTeX Error: Command \singlespacing already defined.

From reading up on similar errors I think it may be a conflict between
packages but I'm not experienced enough to know which ones cause the
conflict and which ones can be deleted.  My document class is the thesis
class for my university which I'm including and it looks like it installs
the following packages:

\documentclass[oneside,english]{msuthesis}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{units}

\usepackage{textcomp}

\usepackage{graphicx}

\usepackage{setspace}

\usepackage{nomencl}


Can anyone point me in the right direction since Google wasn't any help?
 Thanks in advance.


Danny


msuthesis.cls
Description: Binary data


Re: ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker
Thanks a lot for the help.

Is that the line that says \newcommand{\singlespacing}{1}?  So I could
just replace all \singlespacing with something like \snglspcing?

If so, I'm not sure if that will address what I'm ultimately trying to do.
 My root problem is that when I insert a float figure, lyx's
\inlcudegraphics command has a caption that has the figure number and
caption on separate lines.  Where the thesis.cls defines a function \Figure
that supposedly does it all on one line (per the guidelines).  However, when
I insert ERT and call the classes function I get an error LaTeX Error:
Unknown graphics extension: .eps. which I don't know what to do with.  Any
suggestions there?

Danny



On Tue, Feb 8, 2011 at 5:28 PM, Richard Heck rgh...@comcast.net wrote:

 On 02/08/2011 06:23 PM, Danny Parker wrote:

 I'm getting the following error when trying to switch to single spacing in
 my document.

 LaTeX Error: Command \singlespacing already defined.

 From reading up on similar errors I think it may be a conflict between
 packages but I'm not experienced enough to know which ones cause the
 conflict and which ones can be deleted.  My document class is the thesis
 class for my university which I'm including and it looks like it installs
 the following packages:

 \documentclass[oneside,english]{msuthesis}

 \usepackage[T1]{fontenc}

 \usepackage[latin9]{inputenc}

 \usepackage{units}

 \usepackage{textcomp}

 \usepackage{graphicx}

 \usepackage{setspace}

 \usepackage{nomencl}


 Can anyone point me in the right direction since Google wasn't any help?
  Thanks in advance.


  If you look in your cls file, you will see that it does define a
 \singlespacing command. When you try to change to single spacing, LyX
 includes setspace.sty, which I think also defines a command by that name.
 The solution, for our purposes, is probably to change the command in the
 class file to something else, and then search and replace the other
 occurrences.

 Richard




Re: ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker

 Yes, but then you have to change all the \singlespacing commands in the
 class file to \snglspcing.


Understood.  Thanks for all the help.

Danny

On Tue, Feb 8, 2011 at 5:51 PM, Richard Heck rgh...@comcast.net wrote:

 Yes, but then you have to change all the \singlespacing commands in the
 class file to \snglspcing.


ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker
I'm getting the following error when trying to switch to single spacing in
my document.

LaTeX Error: Command \singlespacing already defined.

>From reading up on similar errors I think it may be a conflict between
packages but I'm not experienced enough to know which ones cause the
conflict and which ones can be deleted.  My document class is the thesis
class for my university which I'm including and it looks like it installs
the following packages:

\documentclass[oneside,english]{msuthesis}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{units}

\usepackage{textcomp}

\usepackage{graphicx}

\usepackage{setspace}

\usepackage{nomencl}


Can anyone point me in the right direction since Google wasn't any help?
 Thanks in advance.


Danny


msuthesis.cls
Description: Binary data


Re: ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker
Thanks a lot for the help.

Is that the line that says "\newcommand{\singlespacing}{1}"?  So I could
just replace all \singlespacing with something like \snglspcing?

If so, I'm not sure if that will address what I'm ultimately trying to do.
 My root problem is that when I insert a float figure, lyx's
\inlcudegraphics command has a caption that has the figure number and
caption on separate lines.  Where the thesis.cls defines a function \Figure
that supposedly does it all on one line (per the guidelines).  However, when
I insert ERT and call the classes function I get an error "LaTeX Error:
Unknown graphics extension: .eps." which I don't know what to do with.  Any
suggestions there?

Danny



On Tue, Feb 8, 2011 at 5:28 PM, Richard Heck <rgh...@comcast.net> wrote:

> On 02/08/2011 06:23 PM, Danny Parker wrote:
>
>> I'm getting the following error when trying to switch to single spacing in
>> my document.
>>
>> LaTeX Error: Command \singlespacing already defined.
>>
>> From reading up on similar errors I think it may be a conflict between
>> packages but I'm not experienced enough to know which ones cause the
>> conflict and which ones can be deleted.  My document class is the thesis
>> class for my university which I'm including and it looks like it installs
>> the following packages:
>>
>> \documentclass[oneside,english]{msuthesis}
>>
>> \usepackage[T1]{fontenc}
>>
>> \usepackage[latin9]{inputenc}
>>
>> \usepackage{units}
>>
>> \usepackage{textcomp}
>>
>> \usepackage{graphicx}
>>
>> \usepackage{setspace}
>>
>> \usepackage{nomencl}
>>
>>
>> Can anyone point me in the right direction since Google wasn't any help?
>>  Thanks in advance.
>>
>>
>>  If you look in your cls file, you will see that it does define a
> \singlespacing command. When you try to change to single spacing, LyX
> includes setspace.sty, which I think also defines a command by that name.
> The solution, for our purposes, is probably to change the command in the
> class file to something else, and then search and replace the other
> occurrences.
>
> Richard
>
>


Re: ERROR: \singlespacing already defined when using paragraph settings

2011-02-08 Thread Danny Parker
>
> Yes, but then you have to change all the \singlespacing commands in the
> class file to \snglspcing.


Understood.  Thanks for all the help.

Danny

On Tue, Feb 8, 2011 at 5:51 PM, Richard Heck  wrote:

> Yes, but then you have to change all the \singlespacing commands in the
> class file to \snglspcing.


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 <jri...@physics.utoronto.ca>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


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


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: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
I still haven't been able to figure this out.  As far as I can tell the
problem boils down to that MikTeX can use the .sty from the command line and
I can't get LyX to generate a DVI without errors.  Any suggestions?


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
I just did that and I noticed a few differences.  LyX is adding the
following lines that are not in the LaTeX file and I'm not sure where they
are coming from.

\usepackage[T1]{fontenc}
\usepackage{babel}

The only other difference I can see is that LyX has

\documentclass[twocolumn,english]{article}

where the LaTex has

\documentclass[twocolumn]{article}



On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I still haven't been able to figure this out.  As far as I can tell the
 problem boils down to that MikTeX can use the .sty from the command line
 and
 I can't get LyX to generate a DVI without errors.  Any suggestions?


 Try exporting the document to LaTeX and comparing to to what you get when
 you do it manually. Otehrwise, I'm not sure.

 rh





Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Another difference is that LyX adds

\setcounter{secnumdepth}{3}

\setcounter{tocdepth}{3}
\makeatletter
\makeatother

Any idea why LyX is adding these files?  Is there a way in LyX to edit the
LaTex Source directly?  I'm including two files test.tex is the original
LaTeX that compiles fine and testlyx.tex comes from importing the test.tex
file, changing the document class to article(phm) and then exporting.


On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I still haven't been able to figure this out.  As far as I can tell the
 problem boils down to that MikTeX can use the .sty from the command line
 and
 I can't get LyX to generate a DVI without errors.  Any suggestions?


 Try exporting the document to LaTeX and comparing to to what you get when
 you do it manually. Otehrwise, I'm not sure.

 rh





testlyx.tex
Description: TeX document


test.tex
Description: TeX document


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Here they are.  My layout file is in the top post if you need that too.
Thanks for the help.

On Wed, Jun 24, 2009 at 10:42 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Another difference is that LyX adds

 \setcounter{secnumdepth}{3}

 \setcounter{tocdepth}{3}

 \makeatletter
 \makeatother

 Any idea why LyX is adding these files?

 Yes, to control the TOC. But they are harmless.

 The crucial difference is that \maketitle comes earlier---probably too
 early---in the LyX file. Can you post the LyX file? And the phm.style file?
 I can't compile anything without that.

  Is there a way in LyX to edit the LaTex Source directly?

 No.

 rh




test.lyx
Description: Binary data


phm.sty
Description: Binary data


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Thanks again for the help.  I added that to my layout but I'm still very new
to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really
understand what you mean by use it instead of standard.  Could you please
direct me to some reading or explain a little further.

Danny

On Wed, Jun 24, 2009 at 12:18 PM, rgheck rgh...@bobjweil.com wrote:

 Add this

 Style TitleERT
   InTitle 1
 End

 to your layout, and use it instead of standard where you need ERT in the
 title block.



Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Great!  That fixed it.  Thanks again for your help and patience.  So I'm
slowly starting to understand what the problem was here.  I guess what I'm
still unclear on is was this a user error or LyX bug since MikTex compiled
it fine.

On Wed, Jun 24, 2009 at 2:17 PM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks again for the help.  I added that to my layout but I'm still very
 new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really
 understand what you mean by use it instead of standard.  Could you please
 direct me to some reading or explain a little further.

  Choose TitleERT as your first paragraph style, from the drop box at the
 top left, and then put the \phmHeader{ in ERT. Then do the title and other
 stuff, then choose TitleERT again, and put the closing } in ERT. Or, if
 you're just working with the file you had before, change the paragraphs with
 that material from Standar to TitleERT.

 rh




Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
I still haven't been able to figure this out.  As far as I can tell the
problem boils down to that MikTeX can use the .sty from the command line and
I can't get LyX to generate a DVI without errors.  Any suggestions?


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
I just did that and I noticed a few differences.  LyX is adding the
following lines that are not in the LaTeX file and I'm not sure where they
are coming from.

\usepackage[T1]{fontenc}
\usepackage{babel}

The only other difference I can see is that LyX has

\documentclass[twocolumn,english]{article}

where the LaTex has

\documentclass[twocolumn]{article}



On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I still haven't been able to figure this out.  As far as I can tell the
 problem boils down to that MikTeX can use the .sty from the command line
 and
 I can't get LyX to generate a DVI without errors.  Any suggestions?


 Try exporting the document to LaTeX and comparing to to what you get when
 you do it manually. Otehrwise, I'm not sure.

 rh





Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Another difference is that LyX adds

\setcounter{secnumdepth}{3}

\setcounter{tocdepth}{3}
\makeatletter
\makeatother

Any idea why LyX is adding these files?  Is there a way in LyX to edit the
LaTex Source directly?  I'm including two files test.tex is the original
LaTeX that compiles fine and testlyx.tex comes from importing the test.tex
file, changing the document class to article(phm) and then exporting.


On Wed, Jun 24, 2009 at 9:43 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I still haven't been able to figure this out.  As far as I can tell the
 problem boils down to that MikTeX can use the .sty from the command line
 and
 I can't get LyX to generate a DVI without errors.  Any suggestions?


 Try exporting the document to LaTeX and comparing to to what you get when
 you do it manually. Otehrwise, I'm not sure.

 rh





testlyx.tex
Description: TeX document


test.tex
Description: TeX document


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Here they are.  My layout file is in the top post if you need that too.
Thanks for the help.

On Wed, Jun 24, 2009 at 10:42 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Another difference is that LyX adds

 \setcounter{secnumdepth}{3}

 \setcounter{tocdepth}{3}

 \makeatletter
 \makeatother

 Any idea why LyX is adding these files?

 Yes, to control the TOC. But they are harmless.

 The crucial difference is that \maketitle comes earlier---probably too
 early---in the LyX file. Can you post the LyX file? And the phm.style file?
 I can't compile anything without that.

  Is there a way in LyX to edit the LaTex Source directly?

 No.

 rh




test.lyx
Description: Binary data


phm.sty
Description: Binary data


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Thanks again for the help.  I added that to my layout but I'm still very new
to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really
understand what you mean by use it instead of standard.  Could you please
direct me to some reading or explain a little further.

Danny

On Wed, Jun 24, 2009 at 12:18 PM, rgheck rgh...@bobjweil.com wrote:

 Add this

 Style TitleERT
   InTitle 1
 End

 to your layout, and use it instead of standard where you need ERT in the
 title block.



Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Great!  That fixed it.  Thanks again for your help and patience.  So I'm
slowly starting to understand what the problem was here.  I guess what I'm
still unclear on is was this a user error or LyX bug since MikTex compiled
it fine.

On Wed, Jun 24, 2009 at 2:17 PM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks again for the help.  I added that to my layout but I'm still very
 new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really
 understand what you mean by use it instead of standard.  Could you please
 direct me to some reading or explain a little further.

  Choose TitleERT as your first paragraph style, from the drop box at the
 top left, and then put the \phmHeader{ in ERT. Then do the title and other
 stuff, then choose TitleERT again, and put the closing } in ERT. Or, if
 you're just working with the file you had before, change the paragraphs with
 that material from Standar to TitleERT.

 rh




Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
I still haven't been able to figure this out.  As far as I can tell the
problem boils down to that MikTeX can use the .sty from the command line and
I can't get LyX to generate a DVI without errors.  Any suggestions?


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
I just did that and I noticed a few differences.  LyX is adding the
following lines that are not in the LaTeX file and I'm not sure where they
are coming from.

\usepackage[T1]{fontenc}
\usepackage{babel}

The only other difference I can see is that LyX has

\documentclass[twocolumn,english]{article}

where the LaTex has

\documentclass[twocolumn]{article}



On Wed, Jun 24, 2009 at 9:43 AM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> I still haven't been able to figure this out.  As far as I can tell the
>> problem boils down to that MikTeX can use the .sty from the command line
>> and
>> I can't get LyX to generate a DVI without errors.  Any suggestions?
>>
>>
> Try exporting the document to LaTeX and comparing to to what you get when
> you do it manually. Otehrwise, I'm not sure.
>
> rh
>
>
>


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Another difference is that LyX adds

\setcounter{secnumdepth}{3}

\setcounter{tocdepth}{3}
\makeatletter
\makeatother

Any idea why LyX is adding these files?  Is there a way in LyX to edit the
LaTex Source directly?  I'm including two files test.tex is the original
LaTeX that compiles fine and testlyx.tex comes from importing the test.tex
file, changing the document class to article(phm) and then exporting.


On Wed, Jun 24, 2009 at 9:43 AM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> I still haven't been able to figure this out.  As far as I can tell the
>> problem boils down to that MikTeX can use the .sty from the command line
>> and
>> I can't get LyX to generate a DVI without errors.  Any suggestions?
>>
>>
> Try exporting the document to LaTeX and comparing to to what you get when
> you do it manually. Otehrwise, I'm not sure.
>
> rh
>
>
>


testlyx.tex
Description: TeX document


test.tex
Description: TeX document


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Here they are.  My layout file is in the top post if you need that too.
Thanks for the help.

On Wed, Jun 24, 2009 at 10:42 AM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> Another difference is that LyX adds
>>
>> \setcounter{secnumdepth}{3}
>>
>> \setcounter{tocdepth}{3}
>>
>> \makeatletter
>> \makeatother
>>
>> Any idea why LyX is adding these files?
>>
> Yes, to control the TOC. But they are harmless.
>
> The crucial difference is that \maketitle comes earlier---probably too
> early---in the LyX file. Can you post the LyX file? And the phm.style file?
> I can't compile anything without that.
>
>  Is there a way in LyX to edit the LaTex Source directly?
>>
> No.
>
> rh
>
>


test.lyx
Description: Binary data


phm.sty
Description: Binary data


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Thanks again for the help.  I added that to my layout but I'm still very new
to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really
understand what you mean by "use it instead of standard".  Could you please
direct me to some reading or explain a little further.

Danny

On Wed, Jun 24, 2009 at 12:18 PM, rgheck  wrote:

> Add this
>
> Style TitleERT
>   InTitle 1
> End
>
> to your layout, and use it instead of standard where you need ERT in the
> title block.
>


Re: STY Layout and \maketitle Help

2009-06-24 Thread Danny Parker
Great!  That fixed it.  Thanks again for your help and patience.  So I'm
slowly starting to understand what the problem was here.  I guess what I'm
still unclear on is was this a user error or LyX bug since MikTex compiled
it fine.

On Wed, Jun 24, 2009 at 2:17 PM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> Thanks again for the help.  I added that to my layout but I'm still very
>> new to LyX (I had to look up what ERT, Evil Red Text, was) so I don't really
>> understand what you mean by "use it instead of standard".  Could you please
>> direct me to some reading or explain a little further.
>>
>>  Choose TitleERT as your first paragraph style, from the drop box at the
> top left, and then put the "\phmHeader{" in ERT. Then do the title and other
> stuff, then choose TitleERT again, and put the closing "}" in ERT. Or, if
> you're just working with the file you had before, change the paragraphs with
> that material from Standar to TitleERT.
>
> rh
>
>


Creating New Layout Help

2009-06-19 Thread Danny Parker
I'm trying to create a .layout file for a .cls file I've been given.  I've
tried following the Customization tutorial but I am having no luck after two
frustrating days.  So I tried to back up and make the most basic layout file
I could.

#% Do not delete the line below; configure depends on this

#  \DeclareLaTeXClass[book]{hellobook}

Input stdclass.inc

I save the file as hellobook.layout in my C:\Program Files (x86)\LyX
1.6.3\Resources\layouts directory.  I then do a ToolsReconfigure and a
restart of LyX.  When I restart I start a new file then go to
DocumentsSettingsDocument Class.  Hellobook is in my drop down list but
when I select it I get the following error

LyX: Could not load class.  The document class hellobook could not be
loaded

When I click ok I get another error

LyX: Error.  Unable to set document class

This is the same error I get no matter what .layout I create.  I know there
is something simple I'm missing but after searching for two days I at my
wits end.  If anyone could give me some pointers it would be much
appreciated.

Danny


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
Thanks again.  I got mixed results but ultimately successful.  I tried
making the changes you suggested, reconfigured, restarted and I got the same
error.  I then downloaded the file you included and it worked.  When I
opened your file in notepad to see what was different I noticed that yours
showed the formatting characters.  For example where there should be line
returns there were boxes and the next word didn't start on the next line.  I
wonder if notepad was putting control characters in that were causing the
error.

I'd also like to understand why that fixed my problem.  From my
understanding the arguments in the [ ] are the necessary classes and the { }
is what is displayed in LyX.  Inside my msuthesis.cls there is a line

\LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}

so I thought it was derived from the book class and thus needed the
[msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
misunderstand the help file?  Thanks again for all your help.  It's much
appreciated.

Danny

On Fri, Jun 19, 2009 at 10:20 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks for the reply. I appreciate the help.

 I see now that my example was too simplistic but I'm still having the same
 problem.  I'm actually trying to do what is in 5.2.4 and my layout file is
 msuthesis.layout and is save in C:\Program Files (x86)\LyX
 1.6.3\Resources\layouts

 I took the book.layout and changed the \Declare line to include the
 msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
 Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
 class so I tried it with and without the Preable. I still get the same
 errors I described earlier.  Also, I've checked to make sure MikTeX has
 msuthesis.cls by compiling the example document from the command line.  It
 created the .ps file correctly.  My layout file is below.

  I'm sorry the errors are not very informative. I should fix that.

  #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass[msuthesis,book]{msuthesis}

  Try taking out what is in the square brackets, thus:

 #  \DeclareLaTeXClass{msuthesis}

 and then make sure you save it as msuthesis.layout. I think this is your
 problem now.

  # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de mailto:
 ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr mailto:an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble

  I'd use AddToPreamble here. Otherwise, you overwrite the preamble.

  \usepackage{msuthesis}
 EndPreamble

  Otherwise, it looks as if it should be fine. What I'm attaching works for
 me, though I do get errors about not having the msuthesis file.

 Richard


 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass{msuthesis}
 # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble
 \usepackage{msuthesis}
 EndPreamble





Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
Thanks for the reply. I appreciate the help.

I see now that my example was too simplistic but I'm still having the same
problem.  I'm actually trying to do what is in 5.2.4 and my layout file is
msuthesis.layout and is save in C:\Program Files (x86)\LyX
1.6.3\Resources\layouts

I took the book.layout and changed the \Declare line to include the
msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
class so I tried it with and without the Preable. I still get the same
errors I described earlier.  Also, I've checked to make sure MikTeX has
msuthesis.cls by compiling the example document from the command line.  It
created the .ps file correctly.  My layout file is below.

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[msuthesis,book]{msuthesis}
# Book textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
# Transposed by Pascal André an...@via.ecp.fr
# Heavily modifed and enhanced by serveral developers.


Format 11
Input stdclass.inc
Input numreport.inc


Sides   2
PageStyle   Headings


NoStyle Abstract


Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
End

Preamble
\usepackage{msuthesis}
EndPreamble


On Fri, Jun 19, 2009 at 9:39 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I'm trying to create a .layout file for a .cls file I've been given.  I've
 tried following the Customization tutorial but I am having no luck after
 two
 frustrating days.  So I tried to back up and make the most basic layout
 file
 I could.

 #% Do not delete the line below; configure depends on this

 #  \DeclareLaTeXClass[book]{hellobook}

 Input stdclass.inc

 I save the file as hellobook.layout in my C:\Program Files (x86)\LyX
 1.6.3\Resources\layouts directory.  I then do a ToolsReconfigure and a
 restart of LyX.  When I restart I start a new file then go to
 DocumentsSettingsDocument Class.  Hellobook is in my drop down list but
 when I select it I get the following error

 LyX: Could not load class.  The document class hellobook could not be
 loaded

 When I click ok I get another error

 LyX: Error.  Unable to set document class

 This is the same error I get no matter what .layout I create.  I know
 there
 is something simple I'm missing but after searching for two days I at my
 wits end.  If anyone could give me some pointers it would be much
 appreciated.



 You need to declare the layout format, e.g.:
   Format 11
 Otherwise, LyX chokes. See section 5.3.1.

 rh




Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
I think it's definitely windows text editors that have been causing me the
problems.  I went and edited the file you gave me by deleting the Preamble
and it stopped working correctly.  I've tried both windows notepad and
wordpad are these known problems or do I not have some settings correct?

Danny

On Fri, Jun 19, 2009 at 10:39 AM, Danny Parker dparke...@gmail.com wrote:

 Thanks again.  I got mixed results but ultimately successful.  I tried
 making the changes you suggested, reconfigured, restarted and I got the same
 error.  I then downloaded the file you included and it worked.  When I
 opened your file in notepad to see what was different I noticed that yours
 showed the formatting characters.  For example where there should be line
 returns there were boxes and the next word didn't start on the next line.  I
 wonder if notepad was putting control characters in that were causing the
 error.

 I'd also like to understand why that fixed my problem.  From my
 understanding the arguments in the [ ] are the necessary classes and the { }
 is what is displayed in LyX.  Inside my msuthesis.cls there is a line


 \LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}

 so I thought it was derived from the book class and thus needed the
 [msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
 misunderstand the help file?  Thanks again for all your help.  It's much
 appreciated.

 Danny

 On Fri, Jun 19, 2009 at 10:20 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks for the reply. I appreciate the help.

 I see now that my example was too simplistic but I'm still having the
 same problem.  I'm actually trying to do what is in 5.2.4 and my layout file
 is msuthesis.layout and is save in C:\Program Files (x86)\LyX
 1.6.3\Resources\layouts

 I took the book.layout and changed the \Declare line to include the
 msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
 Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
 class so I tried it with and without the Preable. I still get the same
 errors I described earlier.  Also, I've checked to make sure MikTeX has
 msuthesis.cls by compiling the example document from the command line.  It
 created the .ps file correctly.  My layout file is below.

  I'm sorry the errors are not very informative. I should fix that.

  #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass[msuthesis,book]{msuthesis}

  Try taking out what is in the square brackets, thus:

 #  \DeclareLaTeXClass{msuthesis}

 and then make sure you save it as msuthesis.layout. I think this is your
 problem now.

  # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.demailto:
 ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr mailto:an...@via.ecp.fr
 
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble

  I'd use AddToPreamble here. Otherwise, you overwrite the preamble.

  \usepackage{msuthesis}
 EndPreamble

  Otherwise, it looks as if it should be fine. What I'm attaching works
 for me, though I do get errors about not having the msuthesis file.

 Richard


 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass{msuthesis}
 # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble
 \usepackage{msuthesis}
 EndPreamble






Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
That is the best I can track it down too.  I'm including two files.
msuthesis.layout was done with notepad++ and msuthesis2 was done with
windows notepad.  I don't know if it makes a difference but I'm using XPx64.

Danny

On Fri, Jun 19, 2009 at 12:39 PM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I downloaded notepad++ to do the text editing and that seems to have fixed
 the problem of not being able to edit the files.



 This is strange. LyX is supposed to be able to handle either Windows- or
 *nix-style line endings.

 rh




msuthesis2.layout
Description: Binary data


msuthesis.layout
Description: Binary data


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
So you don't need the book class even though the msuthesis class calls it?

Danny

On Fri, Jun 19, 2009 at 12:41 PM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks again.  I got mixed results but ultimately successful.  I tried
 making the changes you suggested, reconfigured, restarted and I got the
 same
 error.  I then downloaded the file you included and it worked.  When I
 opened your file in notepad to see what was different I noticed that yours
 showed the formatting characters.  For example where there should be line
 returns there were boxes and the next word didn't start on the next line.
  I
 wonder if notepad was putting control characters in that were causing the
 error.

 I'd also like to understand why that fixed my problem.  From my
 understanding the arguments in the [ ] are the necessary classes and the {
 }
 is what is displayed in LyX.  Inside my msuthesis.cls there is a line


 \LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}

 so I thought it was derived from the book class and thus needed the
 [msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
 misunderstand the help file?  Thanks again for all your help.  It's much
 appreciated.



 In the DeclareLaTeXClass line, the optional argument, in [], specifies what
 class file to use. It's optional because LyX will otherwise assume that the
 class name is the same as the filename---with the extensions changed, of
 course.

 rh




Creating New Layout Help

2009-06-19 Thread Danny Parker
I'm trying to create a .layout file for a .cls file I've been given.  I've
tried following the Customization tutorial but I am having no luck after two
frustrating days.  So I tried to back up and make the most basic layout file
I could.

#% Do not delete the line below; configure depends on this

#  \DeclareLaTeXClass[book]{hellobook}

Input stdclass.inc

I save the file as hellobook.layout in my C:\Program Files (x86)\LyX
1.6.3\Resources\layouts directory.  I then do a ToolsReconfigure and a
restart of LyX.  When I restart I start a new file then go to
DocumentsSettingsDocument Class.  Hellobook is in my drop down list but
when I select it I get the following error

LyX: Could not load class.  The document class hellobook could not be
loaded

When I click ok I get another error

LyX: Error.  Unable to set document class

This is the same error I get no matter what .layout I create.  I know there
is something simple I'm missing but after searching for two days I at my
wits end.  If anyone could give me some pointers it would be much
appreciated.

Danny


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
Thanks again.  I got mixed results but ultimately successful.  I tried
making the changes you suggested, reconfigured, restarted and I got the same
error.  I then downloaded the file you included and it worked.  When I
opened your file in notepad to see what was different I noticed that yours
showed the formatting characters.  For example where there should be line
returns there were boxes and the next word didn't start on the next line.  I
wonder if notepad was putting control characters in that were causing the
error.

I'd also like to understand why that fixed my problem.  From my
understanding the arguments in the [ ] are the necessary classes and the { }
is what is displayed in LyX.  Inside my msuthesis.cls there is a line

\LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}

so I thought it was derived from the book class and thus needed the
[msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
misunderstand the help file?  Thanks again for all your help.  It's much
appreciated.

Danny

On Fri, Jun 19, 2009 at 10:20 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks for the reply. I appreciate the help.

 I see now that my example was too simplistic but I'm still having the same
 problem.  I'm actually trying to do what is in 5.2.4 and my layout file is
 msuthesis.layout and is save in C:\Program Files (x86)\LyX
 1.6.3\Resources\layouts

 I took the book.layout and changed the \Declare line to include the
 msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
 Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
 class so I tried it with and without the Preable. I still get the same
 errors I described earlier.  Also, I've checked to make sure MikTeX has
 msuthesis.cls by compiling the example document from the command line.  It
 created the .ps file correctly.  My layout file is below.

  I'm sorry the errors are not very informative. I should fix that.

  #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass[msuthesis,book]{msuthesis}

  Try taking out what is in the square brackets, thus:

 #  \DeclareLaTeXClass{msuthesis}

 and then make sure you save it as msuthesis.layout. I think this is your
 problem now.

  # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de mailto:
 ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr mailto:an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble

  I'd use AddToPreamble here. Otherwise, you overwrite the preamble.

  \usepackage{msuthesis}
 EndPreamble

  Otherwise, it looks as if it should be fine. What I'm attaching works for
 me, though I do get errors about not having the msuthesis file.

 Richard


 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass{msuthesis}
 # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble
 \usepackage{msuthesis}
 EndPreamble





Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
Thanks for the reply. I appreciate the help.

I see now that my example was too simplistic but I'm still having the same
problem.  I'm actually trying to do what is in 5.2.4 and my layout file is
msuthesis.layout and is save in C:\Program Files (x86)\LyX
1.6.3\Resources\layouts

I took the book.layout and changed the \Declare line to include the
msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
class so I tried it with and without the Preable. I still get the same
errors I described earlier.  Also, I've checked to make sure MikTeX has
msuthesis.cls by compiling the example document from the command line.  It
created the .ps file correctly.  My layout file is below.

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[msuthesis,book]{msuthesis}
# Book textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
# Transposed by Pascal André an...@via.ecp.fr
# Heavily modifed and enhanced by serveral developers.


Format 11
Input stdclass.inc
Input numreport.inc


Sides   2
PageStyle   Headings


NoStyle Abstract


Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
End

Preamble
\usepackage{msuthesis}
EndPreamble


On Fri, Jun 19, 2009 at 9:39 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I'm trying to create a .layout file for a .cls file I've been given.  I've
 tried following the Customization tutorial but I am having no luck after
 two
 frustrating days.  So I tried to back up and make the most basic layout
 file
 I could.

 #% Do not delete the line below; configure depends on this

 #  \DeclareLaTeXClass[book]{hellobook}

 Input stdclass.inc

 I save the file as hellobook.layout in my C:\Program Files (x86)\LyX
 1.6.3\Resources\layouts directory.  I then do a ToolsReconfigure and a
 restart of LyX.  When I restart I start a new file then go to
 DocumentsSettingsDocument Class.  Hellobook is in my drop down list but
 when I select it I get the following error

 LyX: Could not load class.  The document class hellobook could not be
 loaded

 When I click ok I get another error

 LyX: Error.  Unable to set document class

 This is the same error I get no matter what .layout I create.  I know
 there
 is something simple I'm missing but after searching for two days I at my
 wits end.  If anyone could give me some pointers it would be much
 appreciated.



 You need to declare the layout format, e.g.:
   Format 11
 Otherwise, LyX chokes. See section 5.3.1.

 rh




Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
I think it's definitely windows text editors that have been causing me the
problems.  I went and edited the file you gave me by deleting the Preamble
and it stopped working correctly.  I've tried both windows notepad and
wordpad are these known problems or do I not have some settings correct?

Danny

On Fri, Jun 19, 2009 at 10:39 AM, Danny Parker dparke...@gmail.com wrote:

 Thanks again.  I got mixed results but ultimately successful.  I tried
 making the changes you suggested, reconfigured, restarted and I got the same
 error.  I then downloaded the file you included and it worked.  When I
 opened your file in notepad to see what was different I noticed that yours
 showed the formatting characters.  For example where there should be line
 returns there were boxes and the next word didn't start on the next line.  I
 wonder if notepad was putting control characters in that were causing the
 error.

 I'd also like to understand why that fixed my problem.  From my
 understanding the arguments in the [ ] are the necessary classes and the { }
 is what is displayed in LyX.  Inside my msuthesis.cls there is a line


 \LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}

 so I thought it was derived from the book class and thus needed the
 [msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
 misunderstand the help file?  Thanks again for all your help.  It's much
 appreciated.

 Danny

 On Fri, Jun 19, 2009 at 10:20 AM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks for the reply. I appreciate the help.

 I see now that my example was too simplistic but I'm still having the
 same problem.  I'm actually trying to do what is in 5.2.4 and my layout file
 is msuthesis.layout and is save in C:\Program Files (x86)\LyX
 1.6.3\Resources\layouts

 I took the book.layout and changed the \Declare line to include the
 msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
 Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
 class so I tried it with and without the Preable. I still get the same
 errors I described earlier.  Also, I've checked to make sure MikTeX has
 msuthesis.cls by compiling the example document from the command line.  It
 created the .ps file correctly.  My layout file is below.

  I'm sorry the errors are not very informative. I should fix that.

  #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass[msuthesis,book]{msuthesis}

  Try taking out what is in the square brackets, thus:

 #  \DeclareLaTeXClass{msuthesis}

 and then make sure you save it as msuthesis.layout. I think this is your
 problem now.

  # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.demailto:
 ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr mailto:an...@via.ecp.fr
 
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble

  I'd use AddToPreamble here. Otherwise, you overwrite the preamble.

  \usepackage{msuthesis}
 EndPreamble

  Otherwise, it looks as if it should be fine. What I'm attaching works
 for me, though I do get errors about not having the msuthesis file.

 Richard


 #% Do not delete the line below; configure depends on this
 #  \DeclareLaTeXClass{msuthesis}
 # Book textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich ettr...@informatik.uni-tuebingen.de
 # Transposed by Pascal André an...@via.ecp.fr
 # Heavily modifed and enhanced by serveral developers.


 Format 11
 Input stdclass.inc
 Input numreport.inc


 Sides   2
 PageStyle   Headings


 NoStyle Abstract


 Style Bibliography
TopSep4
LabelString   Bibliography
LabelFont
  Series  Bold
  SizeHuge
EndFont
 End

 Preamble
 \usepackage{msuthesis}
 EndPreamble






Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
That is the best I can track it down too.  I'm including two files.
msuthesis.layout was done with notepad++ and msuthesis2 was done with
windows notepad.  I don't know if it makes a difference but I'm using XPx64.

Danny

On Fri, Jun 19, 2009 at 12:39 PM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 I downloaded notepad++ to do the text editing and that seems to have fixed
 the problem of not being able to edit the files.



 This is strange. LyX is supposed to be able to handle either Windows- or
 *nix-style line endings.

 rh




msuthesis2.layout
Description: Binary data


msuthesis.layout
Description: Binary data


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
So you don't need the book class even though the msuthesis class calls it?

Danny

On Fri, Jun 19, 2009 at 12:41 PM, rgheck rgh...@bobjweil.com wrote:

 Danny Parker wrote:

 Thanks again.  I got mixed results but ultimately successful.  I tried
 making the changes you suggested, reconfigured, restarted and I got the
 same
 error.  I then downloaded the file you included and it worked.  When I
 opened your file in notepad to see what was different I noticed that yours
 showed the formatting characters.  For example where there should be line
 returns there were boxes and the next word didn't start on the next line.
  I
 wonder if notepad was putting control characters in that were causing the
 error.

 I'd also like to understand why that fixed my problem.  From my
 understanding the arguments in the [ ] are the necessary classes and the {
 }
 is what is displayed in LyX.  Inside my msuthesis.cls there is a line


 \LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}

 so I thought it was derived from the book class and thus needed the
 [msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
 misunderstand the help file?  Thanks again for all your help.  It's much
 appreciated.



 In the DeclareLaTeXClass line, the optional argument, in [], specifies what
 class file to use. It's optional because LyX will otherwise assume that the
 class name is the same as the filename---with the extensions changed, of
 course.

 rh




Creating New Layout Help

2009-06-19 Thread Danny Parker
I'm trying to create a .layout file for a .cls file I've been given.  I've
tried following the Customization tutorial but I am having no luck after two
frustrating days.  So I tried to back up and make the most basic layout file
I could.

#% Do not delete the line below; configure depends on this

#  \DeclareLaTeXClass[book]{hellobook}

Input stdclass.inc

I save the file as hellobook.layout in my C:\Program Files (x86)\LyX
1.6.3\Resources\layouts directory.  I then do a Tools>Reconfigure and a
restart of LyX.  When I restart I start a new file then go to
Documents>Settings>Document Class.  Hellobook is in my drop down list but
when I select it I get the following error

"LyX: Could not load class.  The document class hellobook could not be
loaded"

When I click ok I get another error

"LyX: Error.  Unable to set document class"

This is the same error I get no matter what .layout I create.  I know there
is something simple I'm missing but after searching for two days I at my
wits end.  If anyone could give me some pointers it would be much
appreciated.

Danny


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
Thanks again.  I got mixed results but ultimately successful.  I tried
making the changes you suggested, reconfigured, restarted and I got the same
error.  I then downloaded the file you included and it worked.  When I
opened your file in notepad to see what was different I noticed that yours
showed the formatting characters.  For example where there should be line
returns there were boxes and the next word didn't start on the next line.  I
wonder if notepad was putting control characters in that were causing the
error.

I'd also like to understand why that fixed my problem.  From my
understanding the arguments in the [ ] are the necessary classes and the { }
is what is displayed in LyX.  Inside my msuthesis.cls there is a line

\LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}

so I thought it was derived from the book class and thus needed the
[msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
misunderstand the help file?  Thanks again for all your help.  It's much
appreciated.

Danny

On Fri, Jun 19, 2009 at 10:20 AM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> Thanks for the reply. I appreciate the help.
>>
>> I see now that my example was too simplistic but I'm still having the same
>> problem.  I'm actually trying to do what is in 5.2.4 and my layout file is
>> msuthesis.layout and is save in C:\Program Files (x86)\LyX
>> 1.6.3\Resources\layouts
>>
>> I took the book.layout and changed the \Declare line to include the
>> msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
>> Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
>> class so I tried it with and without the Preable. I still get the same
>> errors I described earlier.  Also, I've checked to make sure MikTeX has
>> msuthesis.cls by compiling the example document from the command line.  It
>> created the .ps file correctly.  My layout file is below.
>>
>>  I'm sorry the errors are not very informative. I should fix that.
>
>  #% Do not delete the line below; configure depends on this
>> #  \DeclareLaTeXClass[msuthesis,book]{msuthesis}
>>
>>  Try taking out what is in the square brackets, thus:
>
> #  \DeclareLaTeXClass{msuthesis}
>
> and then make sure you save it as msuthesis.layout. I think this is your
> problem now.
>
>  # Book textclass definition file. Taken from initial LyX source code
>> # Author : Matthias Ettrich <ettr...@informatik.uni-tuebingen.de > ettr...@informatik.uni-tuebingen.de>>
>> # Transposed by Pascal André <an...@via.ecp.fr <mailto:an...@via.ecp.fr>>
>> # Heavily modifed and enhanced by serveral developers.
>>
>>
>> Format 11
>> Input stdclass.inc
>> Input numreport.inc
>>
>>
>> Sides   2
>> PageStyle   Headings
>>
>>
>> NoStyle Abstract
>>
>>
>> Style Bibliography
>>TopSep4
>>LabelString   "Bibliography"
>>LabelFont
>>  Series  Bold
>>  SizeHuge
>>EndFont
>> End
>>
>> Preamble
>>
>>  I'd use AddToPreamble here. Otherwise, you overwrite the preamble.
>
>  \usepackage{msuthesis}
>> EndPreamble
>>
>>  Otherwise, it looks as if it should be fine. What I'm attaching works for
> me, though I do get errors about not having the msuthesis file.
>
> Richard
>
>
> #% Do not delete the line below; configure depends on this
> #  \DeclareLaTeXClass{msuthesis}
> # Book textclass definition file. Taken from initial LyX source code
> # Author : Matthias Ettrich <ettr...@informatik.uni-tuebingen.de>
> # Transposed by Pascal André <an...@via.ecp.fr>
> # Heavily modifed and enhanced by serveral developers.
>
>
> Format 11
> Input stdclass.inc
> Input numreport.inc
>
>
> Sides   2
> PageStyle   Headings
>
>
> NoStyle Abstract
>
>
> Style Bibliography
>TopSep4
>LabelString   "Bibliography"
>LabelFont
>  Series  Bold
>  SizeHuge
>EndFont
> End
>
> Preamble
> \usepackage{msuthesis}
> EndPreamble
>
>
>


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
Thanks for the reply. I appreciate the help.

I see now that my example was too simplistic but I'm still having the same
problem.  I'm actually trying to do what is in 5.2.4 and my layout file is
msuthesis.layout and is save in C:\Program Files (x86)\LyX
1.6.3\Resources\layouts

I took the book.layout and changed the \Declare line to include the
msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
class so I tried it with and without the Preable. I still get the same
errors I described earlier.  Also, I've checked to make sure MikTeX has
msuthesis.cls by compiling the example document from the command line.  It
created the .ps file correctly.  My layout file is below.

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[msuthesis,book]{msuthesis}
# Book textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettr...@informatik.uni-tuebingen.de>
# Transposed by Pascal André <an...@via.ecp.fr>
# Heavily modifed and enhanced by serveral developers.


Format 11
Input stdclass.inc
Input numreport.inc


Sides   2
PageStyle   Headings


NoStyle Abstract


Style Bibliography
TopSep4
LabelString   "Bibliography"
LabelFont
  Series  Bold
  SizeHuge
EndFont
End

Preamble
\usepackage{msuthesis}
EndPreamble


On Fri, Jun 19, 2009 at 9:39 AM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> I'm trying to create a .layout file for a .cls file I've been given.  I've
>> tried following the Customization tutorial but I am having no luck after
>> two
>> frustrating days.  So I tried to back up and make the most basic layout
>> file
>> I could.
>>
>> #% Do not delete the line below; configure depends on this
>>
>> #  \DeclareLaTeXClass[book]{hellobook}
>>
>> Input stdclass.inc
>>
>> I save the file as hellobook.layout in my C:\Program Files (x86)\LyX
>> 1.6.3\Resources\layouts directory.  I then do a Tools>Reconfigure and a
>> restart of LyX.  When I restart I start a new file then go to
>> Documents>Settings>Document Class.  Hellobook is in my drop down list but
>> when I select it I get the following error
>>
>> "LyX: Could not load class.  The document class hellobook could not be
>> loaded"
>>
>> When I click ok I get another error
>>
>> "LyX: Error.  Unable to set document class"
>>
>> This is the same error I get no matter what .layout I create.  I know
>> there
>> is something simple I'm missing but after searching for two days I at my
>> wits end.  If anyone could give me some pointers it would be much
>> appreciated.
>>
>>
>>
> You need to declare the layout format, e.g.:
>   Format 11
> Otherwise, LyX chokes. See section 5.3.1.
>
> rh
>
>


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
I think it's definitely windows text editors that have been causing me the
problems.  I went and edited the file you gave me by deleting the Preamble
and it stopped working correctly.  I've tried both windows notepad and
wordpad are these known problems or do I not have some settings correct?

Danny

On Fri, Jun 19, 2009 at 10:39 AM, Danny Parker <dparke...@gmail.com> wrote:

> Thanks again.  I got mixed results but ultimately successful.  I tried
> making the changes you suggested, reconfigured, restarted and I got the same
> error.  I then downloaded the file you included and it worked.  When I
> opened your file in notepad to see what was different I noticed that yours
> showed the formatting characters.  For example where there should be line
> returns there were boxes and the next word didn't start on the next line.  I
> wonder if notepad was putting control characters in that were causing the
> error.
>
> I'd also like to understand why that fixed my problem.  From my
> understanding the arguments in the [ ] are the necessary classes and the { }
> is what is displayed in LyX.  Inside my msuthesis.cls there is a line
>
>
> \LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}
>
> so I thought it was derived from the book class and thus needed the
> [msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
> misunderstand the help file?  Thanks again for all your help.  It's much
> appreciated.
>
> Danny
>
> On Fri, Jun 19, 2009 at 10:20 AM, rgheck <rgh...@bobjweil.com> wrote:
>
>> Danny Parker wrote:
>>
>>> Thanks for the reply. I appreciate the help.
>>>
>>> I see now that my example was too simplistic but I'm still having the
>>> same problem.  I'm actually trying to do what is in 5.2.4 and my layout file
>>> is msuthesis.layout and is save in C:\Program Files (x86)\LyX
>>> 1.6.3\Resources\layouts
>>>
>>> I took the book.layout and changed the \Declare line to include the
>>> msuthesis.cls and to report the name to LyX as msuthesis.  I also added the
>>> Preamble as described in 5.2.3.  I wasn't sure that I needed that with a
>>> class so I tried it with and without the Preable. I still get the same
>>> errors I described earlier.  Also, I've checked to make sure MikTeX has
>>> msuthesis.cls by compiling the example document from the command line.  It
>>> created the .ps file correctly.  My layout file is below.
>>>
>>>  I'm sorry the errors are not very informative. I should fix that.
>>
>>  #% Do not delete the line below; configure depends on this
>>> #  \DeclareLaTeXClass[msuthesis,book]{msuthesis}
>>>
>>>  Try taking out what is in the square brackets, thus:
>>
>> #  \DeclareLaTeXClass{msuthesis}
>>
>> and then make sure you save it as msuthesis.layout. I think this is your
>> problem now.
>>
>>  # Book textclass definition file. Taken from initial LyX source code
>>> # Author : Matthias Ettrich <ettr...@informatik.uni-tuebingen.de>> ettr...@informatik.uni-tuebingen.de>>
>>> # Transposed by Pascal André <an...@via.ecp.fr <mailto:an...@via.ecp.fr
>>> >>
>>> # Heavily modifed and enhanced by serveral developers.
>>>
>>>
>>> Format 11
>>> Input stdclass.inc
>>> Input numreport.inc
>>>
>>>
>>> Sides   2
>>> PageStyle   Headings
>>>
>>>
>>> NoStyle Abstract
>>>
>>>
>>> Style Bibliography
>>>TopSep4
>>>LabelString   "Bibliography"
>>>LabelFont
>>>  Series  Bold
>>>  SizeHuge
>>>EndFont
>>> End
>>>
>>> Preamble
>>>
>>>  I'd use AddToPreamble here. Otherwise, you overwrite the preamble.
>>
>>  \usepackage{msuthesis}
>>> EndPreamble
>>>
>>>  Otherwise, it looks as if it should be fine. What I'm attaching works
>> for me, though I do get errors about not having the msuthesis file.
>>
>> Richard
>>
>>
>> #% Do not delete the line below; configure depends on this
>> #  \DeclareLaTeXClass{msuthesis}
>> # Book textclass definition file. Taken from initial LyX source code
>> # Author : Matthias Ettrich <ettr...@informatik.uni-tuebingen.de>
>> # Transposed by Pascal André <an...@via.ecp.fr>
>> # Heavily modifed and enhanced by serveral developers.
>>
>>
>> Format 11
>> Input stdclass.inc
>> Input numreport.inc
>>
>>
>> Sides   2
>> PageStyle   Headings
>>
>>
>> NoStyle Abstract
>>
>>
>> Style Bibliography
>>TopSep4
>>LabelString   "Bibliography"
>>LabelFont
>>  Series  Bold
>>  SizeHuge
>>EndFont
>> End
>>
>> Preamble
>> \usepackage{msuthesis}
>> EndPreamble
>>
>>
>>
>


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
That is the best I can track it down too.  I'm including two files.
msuthesis.layout was done with notepad++ and msuthesis2 was done with
windows notepad.  I don't know if it makes a difference but I'm using XPx64.

Danny

On Fri, Jun 19, 2009 at 12:39 PM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> I downloaded notepad++ to do the text editing and that seems to have fixed
>> the problem of not being able to edit the files.
>>
>>
>>
> This is strange. LyX is supposed to be able to handle either Windows- or
> *nix-style line endings.
>
> rh
>
>


msuthesis2.layout
Description: Binary data


msuthesis.layout
Description: Binary data


Re: Creating New Layout Help

2009-06-19 Thread Danny Parker
So you don't need the book class even though the msuthesis class calls it?

Danny

On Fri, Jun 19, 2009 at 12:41 PM, rgheck <rgh...@bobjweil.com> wrote:

> Danny Parker wrote:
>
>> Thanks again.  I got mixed results but ultimately successful.  I tried
>> making the changes you suggested, reconfigured, restarted and I got the
>> same
>> error.  I then downloaded the file you included and it worked.  When I
>> opened your file in notepad to see what was different I noticed that yours
>> showed the formatting characters.  For example where there should be line
>> returns there were boxes and the next word didn't start on the next line.
>>  I
>> wonder if notepad was putting control characters in that were causing the
>> error.
>>
>> I'd also like to understand why that fixed my problem.  From my
>> understanding the arguments in the [ ] are the necessary classes and the {
>> }
>> is what is displayed in LyX.  Inside my msuthesis.cls there is a line
>>
>>
>> \LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}
>>
>> so I thought it was derived from the book class and thus needed the
>> [msuthesis,book].  This is almost exactly the case in 5.2.4.  Did I
>> misunderstand the help file?  Thanks again for all your help.  It's much
>> appreciated.
>>
>>
>>
> In the DeclareLaTeXClass line, the optional argument, in [], specifies what
> class file to use. It's optional because LyX will otherwise assume that the
> class name is the same as the filename---with the extensions changed, of
> course.
>
> rh
>
>