Re: Customizing article with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

Hello,

Fresh new user of LyX for a week now, I have been reading the documentation
ever since to try and be as at ease as possible with this great tool.

One thing I didn't find how to do is this :

I am using the article layout, which is as close as possible from the
layout I want (I am currently writing an internship report). The only
problem is that I want page breaks after the title page, the ToC page and
before every new section.

  
For the title page, just use the document option titlepage 
(DocumentSettingsOptions).



I could use the report layout but it is more different of what I'm
looking for (I don't need the parts and chapters, for isntance).

  
You could also try the koma-script article class, which is very 
customizable.


I know I can insert a newpage with the LaTeX command \newpage, 

  

In LyX you can do it with InsertFormattingPage Break.


that I've
been using so far, but I'd rather customize a layout so these break pages
were automatic (what is the point of using LyX otherwise ?).

  

It's kind of a hack, but something like this in the preamble ought to work:

\let\oldtoc=\tableofcontents
\renewcommand\tableofcontents{\oldtoc{}\newpage{}}
\let\oldsec=\section
\renewcommand\section{\pagebreak\oldsec}

It'd probably be neater to do this via the titlesec package.


I navigated among the .layout and .inc files, trying to find a property to
change, but I couldn't. I also heard about package inclusion but I didnt'
find any matching my needs.

  

This kind of thing mostly has to be done at the LaTeX level.

rh



Re: Customizing article with page breaks

2008-07-31 Thread Steve Litt
On Thursday 31 July 2008 11:53, Paul Morin wrote:
 Hello,

 Fresh new user of LyX for a week now, I have been reading the documentation
 ever since to try and be as at ease as possible with this great tool.

 One thing I didn't find how to do is this :

 I am using the article layout, which is as close as possible from the
 layout I want (I am currently writing an internship report). The only
 problem is that I want page breaks after the title page, the ToC page and
 before every new section.

 I could use the report layout but it is more different of what I'm
 looking for (I don't need the parts and chapters, for isntance).

 I know I can insert a newpage with the LaTeX command \newpage, that I've
 been using so far, but I'd rather customize a layout so these break pages
 were automatic (what is the point of using LyX otherwise ?).

 I navigated among the .layout and .inc files, trying to find a property to
 change, but I couldn't. I also heard about package inclusion but I didnt'
 find any matching my needs.

 I would truly appreciate any help.

Hi Paul,

In my opinion, frontmatter should be fine tuned (put LaTeX code in the doc 
using LyX's LaTeX Code button, also called Evil Red Text (ERT)). That's how 
I'd handle the page breaks after the title page and the ToC page.

For the section pages, I recommend doing just what you said and modifying the 
\section environment inside a layout file of your creation. I've done a lot 
of writing on how to do that on my LyX subsite:

http://www.troubleshooters.com/linux/lyx/index.htm

IMHO what you want to do is fairly easy.

HTH

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Customizing article with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

2008/7/31 rgheck [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


I could use the report layout but it is more different of
what I'm
looking for (I don't need the parts and chapters, for
isntance).

 


You could also try the koma-script article class, which is very
customizable.


Thanks for the detailed answer, it helps ! Can you tell me which files 
are related to the article koma script, I didn't find them in the 
/usr/share/lyx/layouts directory...


This is scrartcl.layout, but you'll want to look at the koma-script 
documentation, which is in scrguien.pdf. Try locate scrguien.pdf at a 
shell prompt, or use whatever file finder thingy you have available. Or 
here:
   
http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
These kinds of changes all go into the preamble. LyX won't help you once 
you're down to this level of customization.


Oh, and keep replies on list, if only so they're archived for future users.

rh



Re: Customizing article with page breaks

2008-07-31 Thread Paul Morin
2008/7/31 rgheck [EMAIL PROTECTED]

 Paul Morin wrote:

 2008/7/31 rgheck [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



I could use the report layout but it is more different of
what I'm
looking for (I don't need the parts and chapters, for
isntance).


You could also try the koma-script article class, which is very
customizable.


 Thanks for the detailed answer, it helps ! Can you tell me which files are
 related to the article koma script, I didn't find them in the
 /usr/share/lyx/layouts directory...

  This is scrartcl.layout, but you'll want to look at the koma-script
 documentation, which is in scrguien.pdf. Try locate scrguien.pdf at a
 shell prompt, or use whatever file finder thingy you have available. Or
 here:

 http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
 These kinds of changes all go into the preamble. LyX won't help you once
 you're down to this level of customization.


I'll look into it and hopefully find what I need. Thanks for the time and
help.

Paul Morin


Re: Customizing article with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

Hello,

Fresh new user of LyX for a week now, I have been reading the documentation
ever since to try and be as at ease as possible with this great tool.

One thing I didn't find how to do is this :

I am using the article layout, which is as close as possible from the
layout I want (I am currently writing an internship report). The only
problem is that I want page breaks after the title page, the ToC page and
before every new section.

  
For the title page, just use the document option titlepage 
(DocumentSettingsOptions).



I could use the report layout but it is more different of what I'm
looking for (I don't need the parts and chapters, for isntance).

  
You could also try the koma-script article class, which is very 
customizable.


I know I can insert a newpage with the LaTeX command \newpage, 

  

In LyX you can do it with InsertFormattingPage Break.


that I've
been using so far, but I'd rather customize a layout so these break pages
were automatic (what is the point of using LyX otherwise ?).

  

It's kind of a hack, but something like this in the preamble ought to work:

\let\oldtoc=\tableofcontents
\renewcommand\tableofcontents{\oldtoc{}\newpage{}}
\let\oldsec=\section
\renewcommand\section{\pagebreak\oldsec}

It'd probably be neater to do this via the titlesec package.


I navigated among the .layout and .inc files, trying to find a property to
change, but I couldn't. I also heard about package inclusion but I didnt'
find any matching my needs.

  

This kind of thing mostly has to be done at the LaTeX level.

rh



Re: Customizing article with page breaks

2008-07-31 Thread Steve Litt
On Thursday 31 July 2008 11:53, Paul Morin wrote:
 Hello,

 Fresh new user of LyX for a week now, I have been reading the documentation
 ever since to try and be as at ease as possible with this great tool.

 One thing I didn't find how to do is this :

 I am using the article layout, which is as close as possible from the
 layout I want (I am currently writing an internship report). The only
 problem is that I want page breaks after the title page, the ToC page and
 before every new section.

 I could use the report layout but it is more different of what I'm
 looking for (I don't need the parts and chapters, for isntance).

 I know I can insert a newpage with the LaTeX command \newpage, that I've
 been using so far, but I'd rather customize a layout so these break pages
 were automatic (what is the point of using LyX otherwise ?).

 I navigated among the .layout and .inc files, trying to find a property to
 change, but I couldn't. I also heard about package inclusion but I didnt'
 find any matching my needs.

 I would truly appreciate any help.

Hi Paul,

In my opinion, frontmatter should be fine tuned (put LaTeX code in the doc 
using LyX's LaTeX Code button, also called Evil Red Text (ERT)). That's how 
I'd handle the page breaks after the title page and the ToC page.

For the section pages, I recommend doing just what you said and modifying the 
\section environment inside a layout file of your creation. I've done a lot 
of writing on how to do that on my LyX subsite:

http://www.troubleshooters.com/linux/lyx/index.htm

IMHO what you want to do is fairly easy.

HTH

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Customizing article with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

2008/7/31 rgheck [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


I could use the report layout but it is more different of
what I'm
looking for (I don't need the parts and chapters, for
isntance).

 


You could also try the koma-script article class, which is very
customizable.


Thanks for the detailed answer, it helps ! Can you tell me which files 
are related to the article koma script, I didn't find them in the 
/usr/share/lyx/layouts directory...


This is scrartcl.layout, but you'll want to look at the koma-script 
documentation, which is in scrguien.pdf. Try locate scrguien.pdf at a 
shell prompt, or use whatever file finder thingy you have available. Or 
here:
   
http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
These kinds of changes all go into the preamble. LyX won't help you once 
you're down to this level of customization.


Oh, and keep replies on list, if only so they're archived for future users.

rh



Re: Customizing article with page breaks

2008-07-31 Thread Paul Morin
2008/7/31 rgheck [EMAIL PROTECTED]

 Paul Morin wrote:

 2008/7/31 rgheck [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



I could use the report layout but it is more different of
what I'm
looking for (I don't need the parts and chapters, for
isntance).


You could also try the koma-script article class, which is very
customizable.


 Thanks for the detailed answer, it helps ! Can you tell me which files are
 related to the article koma script, I didn't find them in the
 /usr/share/lyx/layouts directory...

  This is scrartcl.layout, but you'll want to look at the koma-script
 documentation, which is in scrguien.pdf. Try locate scrguien.pdf at a
 shell prompt, or use whatever file finder thingy you have available. Or
 here:

 http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
 These kinds of changes all go into the preamble. LyX won't help you once
 you're down to this level of customization.


I'll look into it and hopefully find what I need. Thanks for the time and
help.

Paul Morin


Re: Customizing "article" with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

Hello,

Fresh new user of LyX for a week now, I have been reading the documentation
ever since to try and be as at ease as possible with this great tool.

One thing I didn't find how to do is this :

I am using the "article" layout, which is as close as possible from the
layout I want (I am currently writing an internship report). The only
problem is that I want page breaks after the title page, the ToC page and
before every new section.

  
For the title page, just use the document option "titlepage" 
(Document>Settings>Options).



I could use the "report" layout" but it is more different of what I'm
looking for (I don't need the "parts" and "chapters", for isntance).

  
You could also try the koma-script article class, which is very 
customizable.


I know I can insert a newpage with the LaTeX command "\newpage", 

  

In LyX you can do it with Insert>Formatting>Page Break.


that I've
been using so far, but I'd rather customize a layout so these break pages
were automatic (what is the point of using LyX otherwise ?).

  

It's kind of a hack, but something like this in the preamble ought to work:

\let\oldtoc=\tableofcontents
\renewcommand\tableofcontents{\oldtoc{}\newpage{}}
\let\oldsec=\section
\renewcommand\section{\pagebreak\oldsec}

It'd probably be neater to do this via the titlesec package.


I navigated among the .layout and .inc files, trying to find a property to
change, but I couldn't. I also heard about package inclusion but I didnt'
find any matching my needs.

  

This kind of thing mostly has to be done at the LaTeX level.

rh



Re: Customizing "article" with page breaks

2008-07-31 Thread Steve Litt
On Thursday 31 July 2008 11:53, Paul Morin wrote:
> Hello,
>
> Fresh new user of LyX for a week now, I have been reading the documentation
> ever since to try and be as at ease as possible with this great tool.
>
> One thing I didn't find how to do is this :
>
> I am using the "article" layout, which is as close as possible from the
> layout I want (I am currently writing an internship report). The only
> problem is that I want page breaks after the title page, the ToC page and
> before every new section.
>
> I could use the "report" layout" but it is more different of what I'm
> looking for (I don't need the "parts" and "chapters", for isntance).
>
> I know I can insert a newpage with the LaTeX command "\newpage", that I've
> been using so far, but I'd rather customize a layout so these break pages
> were automatic (what is the point of using LyX otherwise ?).
>
> I navigated among the .layout and .inc files, trying to find a property to
> change, but I couldn't. I also heard about package inclusion but I didnt'
> find any matching my needs.
>
> I would truly appreciate any help.

Hi Paul,

In my opinion, frontmatter should be fine tuned (put LaTeX code in the doc 
using LyX's LaTeX Code button, also called Evil Red Text (ERT)). That's how 
I'd handle the page breaks after the title page and the ToC page.

For the section pages, I recommend doing just what you said and modifying the 
\section environment inside a layout file of your creation. I've done a lot 
of writing on how to do that on my LyX subsite:

http://www.troubleshooters.com/linux/lyx/index.htm

IMHO what you want to do is fairly easy.

HTH

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Customizing "article" with page breaks

2008-07-31 Thread rgheck

Paul Morin wrote:

2008/7/31 rgheck <[EMAIL PROTECTED] >


I could use the "report" layout" but it is more different of
what I'm
looking for (I don't need the "parts" and "chapters", for
isntance).

 


You could also try the koma-script article class, which is very
customizable.


Thanks for the detailed answer, it helps ! Can you tell me which files 
are related to the article koma script, I didn't find them in the 
/usr/share/lyx/layouts directory...


This is scrartcl.layout, but you'll want to look at the koma-script 
documentation, which is in scrguien.pdf. Try "locate scrguien.pdf" at a 
shell prompt, or use whatever file finder thingy you have available. Or 
here:
   
http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
These kinds of changes all go into the preamble. LyX won't help you once 
you're down to this level of customization.


Oh, and keep replies on list, if only so they're archived for future users.

rh



Re: Customizing "article" with page breaks

2008-07-31 Thread Paul Morin
2008/7/31 rgheck <[EMAIL PROTECTED]>

> Paul Morin wrote:
>
>> 2008/7/31 rgheck <[EMAIL PROTECTED] >
>>
>>
>>
>>I could use the "report" layout" but it is more different of
>>what I'm
>>looking for (I don't need the "parts" and "chapters", for
>>isntance).
>>
>>
>>You could also try the koma-script article class, which is very
>>customizable.
>>
>>
>> Thanks for the detailed answer, it helps ! Can you tell me which files are
>> related to the article koma script, I didn't find them in the
>> /usr/share/lyx/layouts directory...
>>
>>  This is scrartcl.layout, but you'll want to look at the koma-script
> documentation, which is in scrguien.pdf. Try "locate scrguien.pdf" at a
> shell prompt, or use whatever file finder thingy you have available. Or
> here:
>
> http://tug.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf
> These kinds of changes all go into the preamble. LyX won't help you once
> you're down to this level of customization.


I'll look into it and hopefully find what I need. Thanks for the time and
help.

Paul Morin