RE: Long code samples in shaded table

2009-12-02 Thread Fred Ridder
Oops. Right you are, Richard. My bad. But I could have sworn that my approach worked for me in the past. I must be getting early symptoms of what's-his-name's disease... -Fred Ridder > Subject: RE: Long code samples in shaded table > Date: Wed, 2 Dec 2009 12:09:30 -0700 &g

RE: Long code samples in shaded table

2009-12-02 Thread Combs, Richard
Fred Ridder wrote: > If you define a table format with the Top and Bottom settings for Default > Cell Margins set to 0 pts, the table will have no affect whatsoever on the > line spacing that you define for your code listing paragraph style. Piece > of cake. Not quite, Fred. If you do only that,

RE: Long code samples in shaded table

2009-12-02 Thread Fred Ridder
gt; To: fr...@daube.ch; framers@lists.frameusers.com > From: srick...@wordmongers.demon.co.uk > Subject: Re: Long code samples in shaded table > > At 11:28 +0100 2/12/09, Klaus Daube wrote: > > >How about this idea: > >- Convert all lines (paragraphs) of the code exam

RE: Long code samples in shaded table

2009-12-02 Thread Steve Rickaby
Richard... thanks for this. Yes, this sounds like the way to go... but tomorrow now, as it's 6:30 pm here. -- Steve ___ You are currently subscribed to Framers as arch...@mail-archive.com. Send list messages to fram...@lists.frameusers.com. To unsub

RE: Long code samples in shaded table

2009-12-02 Thread Combs, Richard
I wrote: > My Code pgf format is 9 pt with 12 pt line spacing, and there's no space > above or below the pgf. 12 - 9 = 3. So Cell Margins Top (on the Table > Cell properties tab) is set to 3.0 pt (and Bottom is 0 pt). Bingo. Code > text in two adjacent rows is spaced exactly the same as in two adj

RE: Long code samples in shaded table

2009-12-02 Thread Combs, Richard
Steve Rickaby wrote: > At 11:28 +0100 2/12/09, Klaus Daube wrote: > > >How about this idea: > >- Convert all lines (paragraphs) of the code example to a table (one > paragraph becoming one > >row. > >- Use a table format with no horizontal ruling between the rows. > >- The automatic breakting b

Re: Long code samples in shaded table

2009-12-02 Thread Steve Rickaby
At 11:28 +0100 2/12/09, Klaus Daube wrote: >How about this idea: >- Convert all lines (paragraphs) of the code example to a table (one paragraph >becoming one >row. >- Use a table format with no horizontal ruling between the rows. >- The automatic breakting between the rows should be no problem.

Re: Long code samples in shaded table

2009-12-02 Thread Klaus Daube
On 1 Dec 2009 at 9:48, Steve Rickaby wrote: > As an aside, I think a special torment in Hell should be reserved for > software textbook authors who insist on including code samples that are > longer than a single page. If they fall in the text flow there's no > problem, but for some books we set t