ERT with cupbook.cls

2008-01-15 Thread Holliday, Ian E
Hi Lyx people

I am a new user and am struggling to implement features of the Cambridge 
university press latex class cupbook.cls that I need to use. This includes 
alternative \authorindex and \subjectindex commands, and also \endnote. I've 
made a layout that invokes the cls OK, but having messed around with it for 
ages and read the manual about using layouts and I'm not sure I can use layouts 
for simple commands, so have now attempted to apply the endnote command in a 
simple file with latex and with ERT in lyx.

Here is my Latex file that works fine:

\documentclass{cupbook}

\begin{document}

\title{Test CUPBOOK}

\section{Introduction}
Here is the text of your introduction \endnote{Fist para.}.



\section{Conclusion}
Write your conclusion here.

\theendnotes
\end{document}

---

I then made a similar file in Lyx. Here is the latex preview.

% Preview source code
%% LyX 1.5.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\makeatletter
[EMAIL PROTECTED]C:/Documents and Settings/hollidie/Desktop/\string/}}
\makeatother
\documentclass[oneside,english]{cupbook}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\usepackage{babel}
\makeatother
\begin{document}
\title{Here is the title.}
\maketitle
\chapter{The first chapter.}
\paragraph{First things first.}
\paragraph{Here is a section on stuff. Stuff is OK to use for things like this.
Yak Yak \endnote{Stuff}.}
\theendnotes
\end{document}

--

But this will not compile to a dvi OK in LyX.  The error log claims there is a 
'}' missing, but I can't spot anything wrong (and even if I could I don't know 
how I'd fix it!):

\theendnotes
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Any ideas?

Thanks

Ian



Re: ERT with cupbook.cls

2008-01-15 Thread Holliday, Ian E
OK - I sorted it out. It was of course simply that I'd tried to put ERT into a 
non-standard environment - paragraph - having forgotten that 'standard' is what 
I should normally use, and paragraph is a level in the section hierarchy. There 
have been a couple of others I noticed lower down the list that have also got 
caught with this one.


ERT with cupbook.cls

2008-01-15 Thread Holliday, Ian E
Hi Lyx people

I am a new user and am struggling to implement features of the Cambridge 
university press latex class cupbook.cls that I need to use. This includes 
alternative \authorindex and \subjectindex commands, and also \endnote. I've 
made a layout that invokes the cls OK, but having messed around with it for 
ages and read the manual about using layouts and I'm not sure I can use layouts 
for simple commands, so have now attempted to apply the endnote command in a 
simple file with latex and with ERT in lyx.

Here is my Latex file that works fine:

\documentclass{cupbook}

\begin{document}

\title{Test CUPBOOK}

\section{Introduction}
Here is the text of your introduction \endnote{Fist para.}.



\section{Conclusion}
Write your conclusion here.

\theendnotes
\end{document}

---

I then made a similar file in Lyx. Here is the latex preview.

% Preview source code
%% LyX 1.5.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\makeatletter
[EMAIL PROTECTED]C:/Documents and Settings/hollidie/Desktop/\string/}}
\makeatother
\documentclass[oneside,english]{cupbook}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\usepackage{babel}
\makeatother
\begin{document}
\title{Here is the title.}
\maketitle
\chapter{The first chapter.}
\paragraph{First things first.}
\paragraph{Here is a section on stuff. Stuff is OK to use for things like this.
Yak Yak \endnote{Stuff}.}
\theendnotes
\end{document}

--

But this will not compile to a dvi OK in LyX.  The error log claims there is a 
'}' missing, but I can't spot anything wrong (and even if I could I don't know 
how I'd fix it!):

\theendnotes
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Any ideas?

Thanks

Ian



Re: ERT with cupbook.cls

2008-01-15 Thread Holliday, Ian E
OK - I sorted it out. It was of course simply that I'd tried to put ERT into a 
non-standard environment - paragraph - having forgotten that 'standard' is what 
I should normally use, and paragraph is a level in the section hierarchy. There 
have been a couple of others I noticed lower down the list that have also got 
caught with this one.


ERT with cupbook.cls

2008-01-15 Thread Holliday, Ian E
Hi Lyx people

I am a new user and am struggling to implement features of the Cambridge 
university press latex class cupbook.cls that I need to use. This includes 
alternative \authorindex and \subjectindex commands, and also \endnote. I've 
made a layout that invokes the cls OK, but having messed around with it for 
ages and read the manual about using layouts and I'm not sure I can use layouts 
for simple commands, so have now attempted to apply the endnote command in a 
simple file with latex and with ERT in lyx.

Here is my Latex file that works fine:

\documentclass{cupbook}

\begin{document}

\title{Test CUPBOOK}

\section{Introduction}
Here is the text of your introduction \endnote{Fist para.}.



\section{Conclusion}
Write your conclusion here.

\theendnotes
\end{document}

---

I then made a similar file in Lyx. Here is the latex preview.

% Preview source code
%% LyX 1.5.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\makeatletter
[EMAIL PROTECTED]"C:/Documents and Settings/hollidie/Desktop/\string"/}}
\makeatother
\documentclass[oneside,english]{cupbook}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\usepackage{babel}
\makeatother
\begin{document}
\title{Here is the title.}
\maketitle
\chapter{The first chapter.}
\paragraph{First things first.}
\paragraph{Here is a section on stuff. Stuff is OK to use for things like this.
Yak Yak \endnote{Stuff}.}
\theendnotes
\end{document}

--

But this will not compile to a dvi OK in LyX.  The error log claims there is a 
'}' missing, but I can't spot anything wrong (and even if I could I don't know 
how I'd fix it!):

\theendnotes
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Any ideas?

Thanks

Ian



Re: ERT with cupbook.cls

2008-01-15 Thread Holliday, Ian E
OK - I sorted it out. It was of course simply that I'd tried to put ERT into a 
non-standard environment - paragraph - having forgotten that 'standard' is what 
I should normally use, and paragraph is a level in the section hierarchy. There 
have been a couple of others I noticed lower down the list that have also got 
caught with this one.