Re: Creating New Layout Help

2009-06-21 Thread Enrico Forestieri
Enrico Forestieri writes:

 I suggest that you file a bug report.

I did it: http://www.lyx.org/trac/ticket/6030






Re: Creating New Layout Help

2009-06-21 Thread Enrico Forestieri
Enrico Forestieri writes:

 I suggest that you file a bug report.

I did it: http://www.lyx.org/trac/ticket/6030






Re: Creating New Layout Help

2009-06-21 Thread Enrico Forestieri
Enrico Forestieri writes:

> I suggest that you file a bug report.

I did it: http://www.lyx.org/trac/ticket/6030






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 rgheck

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 rgheck

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 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 Murat Yildizoglu
Notepad++ is also a very good Windows ASCII editor with a lot of  
convenient functions (like auto-complete in Latex files). I love it!

Murat

--
Murat Yildizoglu
murat.yildizo...@univ-cezanne.fr

Le 19 juin 2009 à 18:33, Danny Parker dparke...@gmail.com a écrit :

I downloaded notepad++ to do the text editing and that seems to have  
fixed

the problem of not being able to edit the files.

Danny


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


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.comwrote:


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.f 
r



# 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 rgheck

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



Re: Creating New Layout Help

2009-06-19 Thread rgheck

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



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




Re: Creating New Layout Help

2009-06-19 Thread rgheck

Danny Parker wrote:

So you don't need the book class even though the msuthesis class calls it?

  
You need the class file, but LyX doesn't need to know that. That 
argument just tells LyX two things: (i) what class to write into the 
LaTeX file and (ii) what class to check for when it reconfigures. LyX 
does not check for dependencies, so if, by some chance, you had 
msuthesis.cls but didn't have book.cls, LyX wouldn't be any the wiser.


rh



Re: Creating New Layout Help

2009-06-19 Thread Steve Litt
Pssst: Vim!

It's free software, it's easy to install on Windows, and it has no such 
issues.

SteveT

On Friday 19 June 2009 11:55:48 am Danny Parker wrote:
 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]{bo
 ok}
 
  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 Enrico Forestieri
Danny Parker writes:

 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.

Notepad is writing a BOM (http://en.wikipedia.org/wiki/Byte-order_mark) at
the start of your file. You cannot see it in an editor but od reveals it:

$ od -c msuthesis2.layout | head -3
000 357 273 277   #   %   D   o   n   o   t   d   e   l
020   e   t   e   t   h   e   l   i   n   e   b   e   l
040   o   w   ;   c   o   n   f   i   g   u   r   e   d   e

The octal values 357 273 277 correspond to ef bb bf in hexadecimal, i.e.,
the BOM. This confuses LyX, apparently. Even if a BOM is not necessary
for UTF8, it is allowed by the standard and thus LyX should take it into
account. I suggest that you file a bug report.

-- 
Enrico



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 rgheck

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 rgheck

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 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 Murat Yildizoglu
Notepad++ is also a very good Windows ASCII editor with a lot of  
convenient functions (like auto-complete in Latex files). I love it!

Murat

--
Murat Yildizoglu
murat.yildizo...@univ-cezanne.fr

Le 19 juin 2009 à 18:33, Danny Parker dparke...@gmail.com a écrit :

I downloaded notepad++ to do the text editing and that seems to have  
fixed

the problem of not being able to edit the files.

Danny


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


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.comwrote:


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.f 
r



# 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 rgheck

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



Re: Creating New Layout Help

2009-06-19 Thread rgheck

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



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




Re: Creating New Layout Help

2009-06-19 Thread rgheck

Danny Parker wrote:

So you don't need the book class even though the msuthesis class calls it?

  
You need the class file, but LyX doesn't need to know that. That 
argument just tells LyX two things: (i) what class to write into the 
LaTeX file and (ii) what class to check for when it reconfigures. LyX 
does not check for dependencies, so if, by some chance, you had 
msuthesis.cls but didn't have book.cls, LyX wouldn't be any the wiser.


rh



Re: Creating New Layout Help

2009-06-19 Thread Steve Litt
Pssst: Vim!

It's free software, it's easy to install on Windows, and it has no such 
issues.

SteveT

On Friday 19 June 2009 11:55:48 am Danny Parker wrote:
 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]{bo
 ok}
 
  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 Enrico Forestieri
Danny Parker writes:

 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.

Notepad is writing a BOM (http://en.wikipedia.org/wiki/Byte-order_mark) at
the start of your file. You cannot see it in an editor but od reveals it:

$ od -c msuthesis2.layout | head -3
000 357 273 277   #   %   D   o   n   o   t   d   e   l
020   e   t   e   t   h   e   l   i   n   e   b   e   l
040   o   w   ;   c   o   n   f   i   g   u   r   e   d   e

The octal values 357 273 277 correspond to ef bb bf in hexadecimal, i.e.,
the BOM. This confuses LyX, apparently. Even if a BOM is not necessary
for UTF8, it is allowed by the standard and thus LyX should take it into
account. I suggest that you file a bug report.

-- 
Enrico



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 rgheck

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 rgheck

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 >

# Transposed by Pascal André >
# 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 
# Transposed by Pascal André 
# 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 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  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>>
>> # Transposed by Pascal André >
>> # 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 
> # Transposed by Pascal André 
> # 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 
# Transposed by Pascal André 
# 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  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  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  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>>
>>> # Transposed by Pascal André >> >>
>>> # 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 
>> # Transposed by Pascal André 
>> # 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 Murat Yildizoglu
Notepad++ is also a very good Windows ASCII editor with a lot of  
convenient functions (like auto-complete in Latex files). I love it!

Murat

--
Murat Yildizoglu
murat.yildizo...@univ-cezanne.fr

Le 19 juin 2009 à 18:33, Danny Parker  a écrit :

I downloaded notepad++ to do the text editing and that seems to have  
fixed

the problem of not being able to edit the files.

Danny


On Fri, Jun 19, 2009 at 10:55 AM, Danny Parker   
wrote:


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  
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   
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 >
# Transposed by Pascal André 
# Transposed by Pascal André 
# 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 rgheck

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



Re: Creating New Layout Help

2009-06-19 Thread rgheck

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



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  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  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
>
>


Re: Creating New Layout Help

2009-06-19 Thread rgheck

Danny Parker wrote:

So you don't need the book class even though the msuthesis class calls it?

  
You need the class file, but LyX doesn't need to know that. That 
argument just tells LyX two things: (i) what class to write into the 
LaTeX file and (ii) what class to check for when it reconfigures. LyX 
does not check for dependencies, so if, by some chance, you had 
msuthesis.cls but didn't have book.cls, LyX wouldn't be any the wiser.


rh



Re: Creating New Layout Help

2009-06-19 Thread Steve Litt
Pssst: Vim!

It's free software, it's easy to install on Windows, and it has no such 
issues.

SteveT

On Friday 19 June 2009 11:55:48 am Danny Parker wrote:
> 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  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]{bo
> >ok}
> >
> > 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  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>>
> >>> # Transposed by Pascal André  >>>
> >>> # 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 
> >> # Transposed by Pascal André 
> >> # 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 Enrico Forestieri
Danny Parker writes:

> 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.

Notepad is writing a BOM (http://en.wikipedia.org/wiki/Byte-order_mark) at
the start of your file. You cannot see it in an editor but od reveals it:

$ od -c msuthesis2.layout | head -3
000 357 273 277   #   %   D   o   n   o   t   d   e   l
020   e   t   e   t   h   e   l   i   n   e   b   e   l
040   o   w   ;   c   o   n   f   i   g   u   r   e   d   e

The octal values 357 273 277 correspond to ef bb bf in hexadecimal, i.e.,
the BOM. This confuses LyX, apparently. Even if a BOM is not necessary
for UTF8, it is allowed by the standard and thus LyX should take it into
account. I suggest that you file a bug report.

-- 
Enrico