Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Kosta Welke
On Thu, 21 May 2009 23:45:55 -0700 (PDT)
elaliberte etiennelalibe...@gmail.com wrote:

 My University provides the
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file

Where did you put that file? It is not sufficient to just put it in the
same folder as the .lyx file, it needs to be in some latex path,
like /usr/local/share/texmf/tex/latex/

You have to run `texhash` as root afterwards.

Also, did you put your .layout file to ~/.lyx/layouts/ and
reconfigured lyx afterwards?

I know, this doesn't exactly fit your error report, but sometimes lyx
shows really weird errors...

HTH,
Kosta


Re: Can't get my university thesis .cls class to work

2009-05-22 Thread elaliberte

Sorry, I forgot to mention that:

1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
2) I ran 'texhash' from the command line
3) I put my uocthesis.layout file in usr/share/lyx/layouts
4) I reconfigured Lyx

The uocthesis class appears in LyX. The problem is converting to PDF.
Thanks for your help!



elaliberte wrote:
 
 Hi,
 
 My University provides the 
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
 formatting PhD theses with LaTeX. This file is based on 
 http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/
 uwthesis.cls .
 
 I've followed the instructions on this 
 http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the
 following layout file:
 
 
 #  \DeclareLaTeXClass{uocthesis}
 Input stdclass.inc
 
 
 I then imported the example file given by our university (
 http://n2.nabble.com/file/n2955951/example-thesis.tex example-thesis.tex
 ), and selected the new uocthesis document class.
 
 However, I can't get it to work. When I try to export to PDF I get the
 following error:
 
  \titlepage

 The control sequence at the end of the top line
 of your error message was never \def'ed. If you have
 misspelled it (e.g., `\hobx'), type `I' and the correct
 spelling (e.g., `I\hbox'). Otherwise just continue,
 and I'll forget about whatever was undefined.
 
 
 Any help would be much appreciated.
 

-- 
View this message in context: 
http://n2.nabble.com/Can%27t-get-my-university-thesis-.cls-class-to-work-tp2955951p2956003.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Richard Heck

elaliberte wrote:
My University provides the 
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
 formatting PhD theses with LaTeX. This file is based on 
 http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/

 uwthesis.cls .
 
 I've followed the instructions on this 
 http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the

 following layout file:
 
 
 #  \DeclareLaTeXClass{uocthesis}

 Input stdclass.inc

  
Since your class is based upon book, you'd be better off copying the 
book.layout file over to uocthesis.layout, and then changing the first 
line to what you have here.


How do I know it's based on book? Because this line:
\LoadClass{book}
is in the cls file.


Sorry, I forgot to mention that:

1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
2) I ran 'texhash' from the command line
3) I put my uocthesis.layout file in usr/share/lyx/layouts
4) I reconfigured Lyx

The uocthesis class appears in LyX. The problem is converting to PDF.
Thanks for your help!

  
I can't seem to compile it even directly. I.e., by running latex 
example-thesis from the command line. I get the same error. There's 
something wrong in the definition of the \titlepage macro. Anyway, if 
you add this line:

\Committee{Some People}
in ERT right before the \titlepage macro, then it'll work.

Richard



Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Etienne Laliberté
Thanks Richard!

Adding \Committee{Some People} did the job.

2009/5/23 Richard Heck rgh...@bobjweil.com

 elaliberte wrote:

 My University provides the 
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
  formatting PhD theses with LaTeX. This file is based on 
 http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/
  uwthesis.cls .
   I've followed the instructions on this 
 http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the
  following layout file:
#  \DeclareLaTeXClass{uocthesis}
  Input stdclass.inc



 Since your class is based upon book, you'd be better off copying the
 book.layout file over to uocthesis.layout, and then changing the first line
 to what you have here.

 How do I know it's based on book? Because this line:
 \LoadClass{book}
 is in the cls file.

  Sorry, I forgot to mention that:

 1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
 2) I ran 'texhash' from the command line
 3) I put my uocthesis.layout file in usr/share/lyx/layouts
 4) I reconfigured Lyx

 The uocthesis class appears in LyX. The problem is converting to PDF.
 Thanks for your help!



 I can't seem to compile it even directly. I.e., by running latex
 example-thesis from the command line. I get the same error. There's
 something wrong in the definition of the \titlepage macro. Anyway, if you
 add this line:
 \Committee{Some People}
 in ERT right before the \titlepage macro, then it'll work.

 Richard




-- 
Etienne Laliberté

Rural Ecology Research Group
School of Forestry
University of Canterbury
Private Bag 4800
Christchurch 8140, New Zealand
Phone: +64 3 366 7001 ext. 8365
Fax: +64 3 364 2124
www.elaliberte.info


Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Kosta Welke
On Thu, 21 May 2009 23:45:55 -0700 (PDT)
elaliberte etiennelalibe...@gmail.com wrote:

 My University provides the
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file

Where did you put that file? It is not sufficient to just put it in the
same folder as the .lyx file, it needs to be in some latex path,
like /usr/local/share/texmf/tex/latex/

You have to run `texhash` as root afterwards.

Also, did you put your .layout file to ~/.lyx/layouts/ and
reconfigured lyx afterwards?

I know, this doesn't exactly fit your error report, but sometimes lyx
shows really weird errors...

HTH,
Kosta


Re: Can't get my university thesis .cls class to work

2009-05-22 Thread elaliberte

Sorry, I forgot to mention that:

1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
2) I ran 'texhash' from the command line
3) I put my uocthesis.layout file in usr/share/lyx/layouts
4) I reconfigured Lyx

The uocthesis class appears in LyX. The problem is converting to PDF.
Thanks for your help!



elaliberte wrote:
 
 Hi,
 
 My University provides the 
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
 formatting PhD theses with LaTeX. This file is based on 
 http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/
 uwthesis.cls .
 
 I've followed the instructions on this 
 http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the
 following layout file:
 
 
 #  \DeclareLaTeXClass{uocthesis}
 Input stdclass.inc
 
 
 I then imported the example file given by our university (
 http://n2.nabble.com/file/n2955951/example-thesis.tex example-thesis.tex
 ), and selected the new uocthesis document class.
 
 However, I can't get it to work. When I try to export to PDF I get the
 following error:
 
  \titlepage

 The control sequence at the end of the top line
 of your error message was never \def'ed. If you have
 misspelled it (e.g., `\hobx'), type `I' and the correct
 spelling (e.g., `I\hbox'). Otherwise just continue,
 and I'll forget about whatever was undefined.
 
 
 Any help would be much appreciated.
 

-- 
View this message in context: 
http://n2.nabble.com/Can%27t-get-my-university-thesis-.cls-class-to-work-tp2955951p2956003.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Richard Heck

elaliberte wrote:
My University provides the 
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
 formatting PhD theses with LaTeX. This file is based on 
 http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/

 uwthesis.cls .
 
 I've followed the instructions on this 
 http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the

 following layout file:
 
 
 #  \DeclareLaTeXClass{uocthesis}

 Input stdclass.inc

  
Since your class is based upon book, you'd be better off copying the 
book.layout file over to uocthesis.layout, and then changing the first 
line to what you have here.


How do I know it's based on book? Because this line:
\LoadClass{book}
is in the cls file.


Sorry, I forgot to mention that:

1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
2) I ran 'texhash' from the command line
3) I put my uocthesis.layout file in usr/share/lyx/layouts
4) I reconfigured Lyx

The uocthesis class appears in LyX. The problem is converting to PDF.
Thanks for your help!

  
I can't seem to compile it even directly. I.e., by running latex 
example-thesis from the command line. I get the same error. There's 
something wrong in the definition of the \titlepage macro. Anyway, if 
you add this line:

\Committee{Some People}
in ERT right before the \titlepage macro, then it'll work.

Richard



Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Etienne Laliberté
Thanks Richard!

Adding \Committee{Some People} did the job.

2009/5/23 Richard Heck rgh...@bobjweil.com

 elaliberte wrote:

 My University provides the 
 http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
  formatting PhD theses with LaTeX. This file is based on 
 http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/
  uwthesis.cls .
   I've followed the instructions on this 
 http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the
  following layout file:
#  \DeclareLaTeXClass{uocthesis}
  Input stdclass.inc



 Since your class is based upon book, you'd be better off copying the
 book.layout file over to uocthesis.layout, and then changing the first line
 to what you have here.

 How do I know it's based on book? Because this line:
 \LoadClass{book}
 is in the cls file.

  Sorry, I forgot to mention that:

 1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
 2) I ran 'texhash' from the command line
 3) I put my uocthesis.layout file in usr/share/lyx/layouts
 4) I reconfigured Lyx

 The uocthesis class appears in LyX. The problem is converting to PDF.
 Thanks for your help!



 I can't seem to compile it even directly. I.e., by running latex
 example-thesis from the command line. I get the same error. There's
 something wrong in the definition of the \titlepage macro. Anyway, if you
 add this line:
 \Committee{Some People}
 in ERT right before the \titlepage macro, then it'll work.

 Richard




-- 
Etienne Laliberté

Rural Ecology Research Group
School of Forestry
University of Canterbury
Private Bag 4800
Christchurch 8140, New Zealand
Phone: +64 3 366 7001 ext. 8365
Fax: +64 3 364 2124
www.elaliberte.info


Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Kosta Welke
On Thu, 21 May 2009 23:45:55 -0700 (PDT)
elaliberte  wrote:

> My University provides the
> http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file

Where did you put that file? It is not sufficient to just put it in the
same folder as the .lyx file, it needs to be in some latex path,
like /usr/local/share/texmf/tex/latex/

You have to run `texhash` as root afterwards.

Also, did you put your .layout file to ~/.lyx/layouts/ and
"reconfigure"d lyx afterwards?

I know, this doesn't exactly fit your error report, but sometimes lyx
shows really weird errors...

HTH,
Kosta


Re: Can't get my university thesis .cls class to work

2009-05-22 Thread elaliberte

Sorry, I forgot to mention that:

1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
2) I ran 'texhash' from the command line
3) I put my uocthesis.layout file in usr/share/lyx/layouts
4) I reconfigured Lyx

The uocthesis class appears in LyX. The problem is converting to PDF.
Thanks for your help!



elaliberte wrote:
> 
> Hi,
> 
> My University provides the 
> http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
> formatting PhD theses with LaTeX. This file is based on 
> http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/
> uwthesis.cls .
> 
> I've followed the instructions on this 
> http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the
> following layout file:
> 
> 
> #  \DeclareLaTeXClass{uocthesis}
> Input stdclass.inc
> 
> 
> I then imported the example file given by our university (
> http://n2.nabble.com/file/n2955951/example-thesis.tex example-thesis.tex
> ), and selected the new "uocthesis" document class.
> 
> However, I can't get it to work. When I try to export to PDF I get the
> following error:
> 
>  \titlepage
>
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., `\hobx'), type `I' and the correct
> spelling (e.g., `I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
> 
> 
> Any help would be much appreciated.
> 

-- 
View this message in context: 
http://n2.nabble.com/Can%27t-get-my-university-thesis-.cls-class-to-work-tp2955951p2956003.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Richard Heck

elaliberte wrote:
My University provides the 
> http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
> formatting PhD theses with LaTeX. This file is based on 
> http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/

> uwthesis.cls .
> 
> I've followed the instructions on this 
> http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the

> following layout file:
> 
> 
> #  \DeclareLaTeXClass{uocthesis}

> Input stdclass.inc

  
Since your class is based upon book, you'd be better off copying the 
book.layout file over to uocthesis.layout, and then changing the first 
line to what you have here.


How do I know it's based on book? Because this line:
\LoadClass{book}
is in the cls file.


Sorry, I forgot to mention that:

1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
2) I ran 'texhash' from the command line
3) I put my uocthesis.layout file in usr/share/lyx/layouts
4) I reconfigured Lyx

The uocthesis class appears in LyX. The problem is converting to PDF.
Thanks for your help!

  
I can't seem to compile it even directly. I.e., by running "latex 
example-thesis" from the command line. I get the same error. There's 
something wrong in the definition of the \titlepage macro. Anyway, if 
you add this line:

\Committee{Some People}
in ERT right before the \titlepage macro, then it'll work.

Richard



Re: Can't get my university thesis .cls class to work

2009-05-22 Thread Etienne Laliberté
Thanks Richard!

Adding \Committee{Some People} did the job.

2009/5/23 Richard Heck 

> elaliberte wrote:
>
>> My University provides the >
>> http://n2.nabble.com/file/n2955951/uocthesis.cls uocthesis.cls  file for
>> > formatting PhD theses with LaTeX. This file is based on >
>> http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis/
>> > uwthesis.cls .
>> > > I've followed the instructions on this >
>> http://wiki.lyx.org/Layouts/CreatingLayouts page  and created the
>> > following layout file:
>> > > > #  \DeclareLaTeXClass{uocthesis}
>> > Input stdclass.inc
>>
>>
>>
> Since your class is based upon book, you'd be better off copying the
> book.layout file over to uocthesis.layout, and then changing the first line
> to what you have here.
>
> How do I know it's based on book? Because this line:
> \LoadClass{book}
> is in the cls file.
>
>  Sorry, I forgot to mention that:
>>
>> 1) I put the uocthesis.cls file in usr/share/texmf/tex/latex/
>> 2) I ran 'texhash' from the command line
>> 3) I put my uocthesis.layout file in usr/share/lyx/layouts
>> 4) I reconfigured Lyx
>>
>> The uocthesis class appears in LyX. The problem is converting to PDF.
>> Thanks for your help!
>>
>>
>>
> I can't seem to compile it even directly. I.e., by running "latex
> example-thesis" from the command line. I get the same error. There's
> something wrong in the definition of the \titlepage macro. Anyway, if you
> add this line:
> \Committee{Some People}
> in ERT right before the \titlepage macro, then it'll work.
>
> Richard
>
>


-- 
Etienne Laliberté

Rural Ecology Research Group
School of Forestry
University of Canterbury
Private Bag 4800
Christchurch 8140, New Zealand
Phone: +64 3 366 7001 ext. 8365
Fax: +64 3 364 2124
www.elaliberte.info