Re: Ho to write my own paragraph layout or how to change "LyX-Code"

2007-02-03 Thread Roland Schmitz
Hi Richard, Hi Steve,

thanx for your quick answer.
Now i know where to read about writing my own environment. Because i'm new to 
LaTeX, i think i'll need some support after reading, testing, ...

I'll be back ;-}

Roland Schmitz


Re: Ho to write my own paragraph layout or how to change "LyX-Code"

2007-02-02 Thread Steve Litt
On Friday 02 February 2007 06:47, Roland Schmitz wrote:
> Hi List,
>
> i'm looking for an code layout (environment) for LyX, wich automaticly
> inserts line numbers and a "table of contents" for all listings.
> If it's possible to configure this layout to look a bit like old "endless
> paper" (one line with white background, one with green) this would be
> exactly what i'm looking for, but that would be a goody.
> If there is a tutorial how to write layouts, a RTFM with a link will be
> enough.
> I knwo i can use the LaTeX "listing package", but ERT's are not really
> comfortable.

I've written some content on the subject of making your own environments in a 
layout file. Start here:

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

If you find a way to establish a line counter and print it on each line, 
please let the list know. I think if you find this, something similar to your 
solution will solve Jeremy Reed's "horizontal rule before every section 
unless at top or bottom of page?" question.

And frankly, I'm very interested myself, in ways that LaTeX can detect and act 
on automatic line and page breaking.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Ho to write my own paragraph layout or how to change "LyX-Code"

2007-02-02 Thread Richard Heck

The documentation for this is at Help>Customization>5.2. If you look at
that and then look at how similar layouts are implemented in the extant
layout classes, you shouldn't have too much trouble. Seeing the line
numbers and the white-green in LyX itself might be a challenge, but
making it possible to use the environments and commands provided by
listings.sty without ERT should not be difficult.

Richard

Roland Schmitz wrote:
> Hi List,
>
> i'm looking for an code layout (environment) for LyX, wich automaticly 
> inserts 
> line numbers and a "table of contents" for all listings.
> If it's possible to configure this layout to look a bit like old "endless 
> paper" (one line with white background, one with green) this would be exactly 
> what i'm looking for, but that would be a goody.
> If there is a tutorial how to write layouts, a RTFM with a link will be 
> enough.
> I knwo i can use the LaTeX "listing package", but ERT's are not really 
> comfortable.
>
>   


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto