[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Conditionally remove indent on FO programlistings?
That is a silly mistake I made. I'm using an editor that automatically aligns element contents - which are of course translated into spaces preserved by the programlisting element. Forcing the text back to the left margin of the editor fixes the problem. Thanks for your patience. -----Original Message----- From: Bob Stayton [mailto:bobs@sco.com] Sent: Saturday, April 05, 2003 7:50 PM To: Darren Richmond Cc: Docbook-Apps Subject: Re: [docbook-apps] Conditionally remove indent on FO programlistings? On Sat, Apr 05, 2003 at 10:03:54AM -0600, Darren Richmond wrote: > >In the stock fo stylesheet, programlisting is not indented. > >Perhaps you are referring to the text position relative > >to the section titles, which are actually outdented. > > Yes, my concern is with the position of the fo:block containing the > programlisting relative to the preceeding and following blocks, as seen in > the example below: > > some text > .., as seen in the code below: > > //The white space before the word "System" below is what I want to modify > System.out.println("Hello, World!"); > > more text ... > > > >Can you post the customization you use to set up your > >5.5 x 8.5 inch page? > > The position is fine at USLetter (8.5in x 11in), but wastes too much real > estate at halfletter (5.5in x 8.5in). > I was actually fairly happy with most of the results I got with just the > following customization: > > <!-- page size --> > <xsl:param name="page.width">5.5in</xsl:param> > <xsl:param name="page.height">8.5in</xsl:param> > > I want to nudge the text to the left a bit when I create halfletter PDFs. > Well, in my PDFs generated with the 1.60.1 stylesheets, a programlisting is not indented relative to the paragraphs above and below. My output with your example looks like this: some text .., as seen in the code below: //The white space before the word "System" below is what I want to modify System.out.println("Hello, World!"); more text ... I don't understand where your indent is coming from. Are there leading spaces or tabs in the programlisting itself? -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]