docbook-apps

  • 1.  Long programlisting

    Posted 06-06-2011 14:41
    Output pdf,

    I've crashed xep with a 'two page' or more programlisting?
    Are these split at all please?

    If so how might it be done?

    I'd like to xinclude the file (as text) rather than copy/past/s/replace


    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk




  • 2.  Re: [docbook-apps] Long programlisting

    Posted 06-06-2011 14:49
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Is the programlisting in an <example>? If so, you can either change the
    default for examples or use :

    http://lists.oasis-open.org/archives/docbook-apps/201103/msg00046.html
    http://www.sagehill.net/docbookxsl/PageBreaking.html

    David

    On 06/06/2011 09:40 AM, davep wrote:
    > Output pdf,
    >
    > I've crashed xep with a 'two page' or more programlisting?
    > Are these split at all please?
    >
    > If so how might it be done?
    >
    > I'd like to xinclude the file (as text) rather than copy/past/s/replace
    >
    >
    > regards
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.11 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQEcBAEBAgAGBQJN7OjbAAoJEMHeSXG7afUhOnMIAJRgeqdMWMXgTCSGKHMfQNB5
    nKjdJTbMf05sNLbF02HLzop519E1VEHVSEJRI2CzWRsNkHbJZOh/8XkgpEW9s+jc
    0XQp1clQpBQpjPjp1JQL4l40YS0IArwBwEP6se8SUlaC1jc4Tmle6Jm8dqBfHpBv
    qa4D4+hgFMDXkXAc1U/3NDf1mV8rdE3kU3Fg6zemmZpNJYxkLXDiiSoQ9XV0QjDU
    OGBumqvVWnaTCobZwVX1PCwYNL/+dd4OzEaUYs/vRgWhl3fiNsOYkSqvU4Xi2N4e
    28DD2tATdcMp2O0oLgxlWVvN10W8MczVJ/cha+XUvhcrwPdSUd0aWHAV/bLiYBg=
    =z9Bc
    -----END PGP SIGNATURE-----



  • 3.  Re: [docbook-apps] Long programlisting

    Posted 06-06-2011 18:17
    On 06/06/2011 03:49 PM, David Cramer wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Is the programlisting in an<example>?
    Yes it is.

    > If so, you can either change the
    > default for examples or use:
    >
    > http://lists.oasis-open.org/archives/docbook-apps/201103/msg00046.html
    For a long listing, keep-together.always is a problem.
    Sounds like the source of my issue David?


    > http://www.sagehill.net/docbookxsl/PageBreaking.html
    Sounds like a plan....
    The example shows



    **


    how does that translate for example/programlisting?
    within example, outside programlisting?
    Seems about right.
    [Is this a candidate for a param?]


    Thanks David




    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk




  • 4.  Re: [docbook-apps] Long programlisting

    Posted 06-06-2011 18:57
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 06/06/2011 01:16 PM, davep wrote:
    > On 06/06/2011 03:49 PM, David Cramer wrote:
    >> -----BEGIN PGP SIGNED MESSAGE-----
    >> Hash: SHA1
    >>
    >> Is the programlisting in an<example>?
    > Yes it is.
    >
    >> If so, you can either change the
    >> default for examples or use:
    >>
    >> http://lists.oasis-open.org/archives/docbook-apps/201103/msg00046.html
    > For a long listing, keep-together.always is a problem.
    > Sounds like the source of my issue David?

    Yes, but the default behavior will change the next time we do a release.

    >> http://www.sagehill.net/docbookxsl/PageBreaking.html
    > Sounds like a plan....
    > The example shows
    >
    >
    >
    > **
    >
    >
    > how does that translate for example/programlisting?
    > within example, outside programlisting?
    > Seems about right.
    > [Is this a candidate for a param?]

    I think you can do:

    <example>


    OR (better yet, since this will be the default in the future) add this
    to your customization layer:

    <xsl:attribute-set name="example.properties"
    use-attribute-sets="formal.object.properties">
    <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
    </xsl:attribute-set>

    And then use the PI to set it to always when you have a short example
    that you want kept together.

    David

    >
    >
    > Thanks David
    >
    >
    >
    >
    > regards
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.11 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQEcBAEBAgAGBQJN7SMBAAoJEMHeSXG7afUhvhIH/RFNkLvekPo5j6DXB++ioWdL
    SeDmjg68Z5l10caCy5WDdKCxZLbjkpiSkNp3DRNVx5NFXAAmdH3/MEJsySXftU0j
    A4e/FnTH3K4j34g+9anlG48TBVJrOCukqsL/i9msYf8dqR4NDxSwWBrAOqmRnm5l
    YWoUDVMXtFh1KFN36KLvZ94/5GkMOqmPp9rY8ANrlk++yTKsEiZmLB8x91ffV2YU
    jGz/0bE4XJQepud2AFPpTyrxu/H2n3CWgfZuEm2YUHYFrA3UVLGmwHC/ECyxJuqT
    A2pO7Z5eyIIyUNA1wfQHbl9X5SkYMlxjamcCtBz5tBUSO1x2FusQVz+iIGD1kQo=
    =pdY6
    -----END PGP SIGNATURE-----



  • 5.  Re: [docbook-apps] Long programlisting

    Posted 06-07-2011 06:40
    On 06/06/2011 07:57 PM, David Cramer wrote:
    >>
    >> For a long listing, keep-together.always is a problem.
    >> Sounds like the source of my issue David?
    > Yes, but the default behavior will change the next time we do a release.
    I think that's an improvement.


    > I think you can do:
    >
    > <example>
    >
    > OR (better yet, since this will be the default in the future) add this
    > to your customization layer:
    >
    > <xsl:attribute-set name="example.properties"
    > use-attribute-sets="formal.object.properties">
    > <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
    > </xsl:attribute-set>
    >
    > And then use the PI to set it to always when you have a short example
    > that you want kept together.
    Why .within-column? I'd have thought .within-page
    would be more logical?





    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk




  • 6.  Re: [docbook-apps] Long programlisting

    Posted 06-07-2011 12:12
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 06/07/2011 01:40 AM, davep wrote:
    >>
    > Why .within-column? I'd have thought .within-page
    > would be more logical?

    Well, column and page are the same unless you do two-column output. If
    you're doing two column output, you would only need to use .within-page
    if you wanted a different value for .within-column, for example if you
    want to make .within-column auto and .within-page always.

    David
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.11 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQEcBAEBAgAGBQJN7hV+AAoJEMHeSXG7afUhtEoH/0qACpig8CBNJqBqSdjzoMh2
    xyJWouaW13OqQRS/U/VQSI8tsqCJLGIIAEw3/jKJgvdPEHdxKusVWtgAzBP+KlCK
    /PUFD4Sc5H3892JGdZlpAwl/hBkvCcVC/RCgvN3pNpLAcB4FnwS+qUTTJ1oDg50e
    ljm00fesq7JZNHHO6/cYhA/t109Rcx+/zCk6PY5JIsGUWPhDWNYGJvF4uNCFS0Ow
    L3k8AtkIkZgqNg4Xq1n2JukM93DooutHl8MdqI5kcSjjpvV5b8IHYhdxV0SOtA9k
    ddcQZJ66QkYoznIPMGpjNioQ0sPFs65ayyD/XsfIkjItmVLIaegXP471x9lms38=
    =sCtu
    -----END PGP SIGNATURE-----



  • 7.  Re: [docbook-apps] Long programlisting

    Posted 06-07-2011 12:46
    On 06/07/2011 01:11 PM, David Cramer wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > On 06/07/2011 01:40 AM, davep wrote:
    >> Why .within-column? I'd have thought .within-page
    >> would be more logical?
    > Well, column and page are the same unless you do two-column output. If
    > you're doing two column output, you would only need to use .within-page
    > if you wanted a different value for .within-column, for example if you
    > want to make .within-column auto and .within-page always.


    Noted.

    I tried the custom solution. Then XEP suggested
    reverting to java 1.6.0_25, which in combination, seems to
    do the trick.
    Unsure if there's a connection. Others have noted 64bit
    java on Linux as being 'iffy'.

    thanks for the suggestions David.




    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk