How to determine where I am on a page.

2010-01-25 Thread Philip Stubbs
I have hacked up my own class file. It does 95% of what I set out to
achieve. However, I am stuck with the final bit of polish.

I have an element that I don't want to appear at the bottom of a page.
Therefore, I need to test to find out how far down the page I am, and
if more than 75% of the page is used, insert a \newpage.

Any pointers of where to find a solution to this would be appreciated.

-- 
Philip Stubbs


How to determine where I am on a page.

2010-01-25 Thread Philip Stubbs
I have hacked up my own class file. It does 95% of what I set out to
achieve. However, I am stuck with the final bit of polish.

I have an element that I don't want to appear at the bottom of a page.
Therefore, I need to test to find out how far down the page I am, and
if more than 75% of the page is used, insert a \newpage.

Any pointers of where to find a solution to this would be appreciated.

-- 
Philip Stubbs


How to determine where I am on a page.

2010-01-25 Thread Philip Stubbs
I have hacked up my own class file. It does 95% of what I set out to
achieve. However, I am stuck with the final bit of polish.

I have an element that I don't want to appear at the bottom of a page.
Therefore, I need to test to find out how far down the page I am, and
if more than 75% of the page is used, insert a \newpage.

Any pointers of where to find a solution to this would be appreciated.

-- 
Philip Stubbs


\title before \begin{document}

2010-01-18 Thread Philip Stubbs
Hi,

I have developed my own LaTeX class file, based on the article class.
It has been developed over some time, but is now working just how I
like. My documents start as follows

\documentclass[draft,approved]{danrep}
\title{This is a test report title that I will make quite long.}
\repnum{10-00}
\author{Philip Stubbs}
\date{2010-01-12}
\begin{document}
\section{Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
justo nisi, sagittis pharetra sagittis id,

I now would like to go the next step, and leave vim and use LyX as my
editor. I started looking at the *.layout files to see what I need to
do. What I cant seem to work out is how to place the \title etc before
the \begin{document}

Any suggestions would be welcome. I don't really want to start
chopping about the class file at this stage.

-- 
Philip Stubbs


Re: \title before \begin{document}

2010-01-18 Thread Philip Stubbs
2010/1/18 Uwe Stöhr uwesto...@web.de:
 Philip Stubbs schrieb:

 \documentclass[draft,approved]{danrep}
 \title{This is a test report title that I will make quite long.}
 \repnum{10-00}
 \author{Philip Stubbs}
 \date{2010-01-12}
 \begin{document}

 The next LyX version will support this structure, but why have you chosen to
 have the title before \begin{document}? I mean the article class have it
 behind \begin{document} and I cannot see the benefit of changing this.

There may well be no benefit at all. It is just the way it turned out.
I have been developing my class file for some time. It is more
recently that I decided to try and start using LyX. When I first
started using LaTeX, the hacking made the boring job of writing
reports more fun. Now I am more inclined to want to just do the
report, so I need to streamline the process, but there is no way I
could cope with going back to Word. :-)

Anyhow, since I can't be bothered to wait for version 2.0, I spent a
quick half hour redoing my class file. It looks like I am 95% there,
so will be able to start work on my LyX layout soon.

Thanks for the help.
-- 
Philip Stubbs


\title before \begin{document}

2010-01-18 Thread Philip Stubbs
Hi,

I have developed my own LaTeX class file, based on the article class.
It has been developed over some time, but is now working just how I
like. My documents start as follows

\documentclass[draft,approved]{danrep}
\title{This is a test report title that I will make quite long.}
\repnum{10-00}
\author{Philip Stubbs}
\date{2010-01-12}
\begin{document}
\section{Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
justo nisi, sagittis pharetra sagittis id,

I now would like to go the next step, and leave vim and use LyX as my
editor. I started looking at the *.layout files to see what I need to
do. What I cant seem to work out is how to place the \title etc before
the \begin{document}

Any suggestions would be welcome. I don't really want to start
chopping about the class file at this stage.

-- 
Philip Stubbs


Re: \title before \begin{document}

2010-01-18 Thread Philip Stubbs
2010/1/18 Uwe Stöhr uwesto...@web.de:
 Philip Stubbs schrieb:

 \documentclass[draft,approved]{danrep}
 \title{This is a test report title that I will make quite long.}
 \repnum{10-00}
 \author{Philip Stubbs}
 \date{2010-01-12}
 \begin{document}

 The next LyX version will support this structure, but why have you chosen to
 have the title before \begin{document}? I mean the article class have it
 behind \begin{document} and I cannot see the benefit of changing this.

There may well be no benefit at all. It is just the way it turned out.
I have been developing my class file for some time. It is more
recently that I decided to try and start using LyX. When I first
started using LaTeX, the hacking made the boring job of writing
reports more fun. Now I am more inclined to want to just do the
report, so I need to streamline the process, but there is no way I
could cope with going back to Word. :-)

Anyhow, since I can't be bothered to wait for version 2.0, I spent a
quick half hour redoing my class file. It looks like I am 95% there,
so will be able to start work on my LyX layout soon.

Thanks for the help.
-- 
Philip Stubbs


\title before \begin{document}

2010-01-18 Thread Philip Stubbs
Hi,

I have developed my own LaTeX class file, based on the article class.
It has been developed over some time, but is now working just how I
like. My documents start as follows

\documentclass[draft,approved]{danrep}
\title{This is a test report title that I will make quite long.}
\repnum{10-00}
\author{Philip Stubbs}
\date{2010-01-12}
\begin{document}
\section{Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
justo nisi, sagittis pharetra sagittis id,

I now would like to go the next step, and leave vim and use LyX as my
editor. I started looking at the *.layout files to see what I need to
do. What I cant seem to work out is how to place the \title etc before
the \begin{document}

Any suggestions would be welcome. I don't really want to start
chopping about the class file at this stage.

-- 
Philip Stubbs


Re: \title before \begin{document}

2010-01-18 Thread Philip Stubbs
2010/1/18 Uwe Stöhr <uwesto...@web.de>:
> Philip Stubbs schrieb:
>
>> \documentclass[draft,approved]{danrep}
>> \title{This is a test report title that I will make quite long.}
>> \repnum{10-00}
>> \author{Philip Stubbs}
>> \date{2010-01-12}
>> \begin{document}
>
> The next LyX version will support this structure, but why have you chosen to
> have the title before \begin{document}? I mean the article class have it
> behind \begin{document} and I cannot see the benefit of changing this.

There may well be no benefit at all. It is just the way it turned out.
I have been developing my class file for some time. It is more
recently that I decided to try and start using LyX. When I first
started using LaTeX, the hacking made the boring job of writing
reports more fun. Now I am more inclined to want to just do the
report, so I need to streamline the process, but there is no way I
could cope with going back to Word. :-)

Anyhow, since I can't be bothered to wait for version 2.0, I spent a
quick half hour redoing my class file. It looks like I am 95% there,
so will be able to start work on my LyX layout soon.

Thanks for the help.
-- 
Philip Stubbs