docbook-apps

  • 1.  programlistings, double spaced?

    Posted 04-30-2011 10:28


    I'm using programlisting, with xincluded content.
    What is already a long listing is now double spaced when
    I look at the PDF output (docbook 5).

    Anyone resolved this please?

    The fo is

    <?xml version="1.0" encoding="utf-8"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

    <fo:layout-master-set>
    <!-- -->
    <!-- Page descriptions -->
    <!-- SPM 1, basic page All regions
    present--> <fo:simple-page-master


    Note the (additional I think) & # x D ; at each line end?

    How to get rid of these?
    Linux based if it makes a difference.




    --

    regards

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



  • 2.  Re: [docbook-apps] programlistings, double spaced?

    Posted 04-30-2011 10:42
    On Sat, 30 Apr 2011 11:27:57 +0100
    Dave Pawson <davep@dpawson.co.uk> wrote:

    >
    >
    > I'm using programlisting, with xincluded content.
    > What is already a long listing is now double spaced when
    > I look at the PDF output (docbook 5).
    >
    > Anyone resolved this please?
    >
    > The fo is
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    >
    > <fo:layout-master-set>
    > <!-- -->
    > <!-- Page descriptions -->
    > <!-- SPM 1, basic page All regions
    > present--> <fo:simple-page-master
    >
    >
    > Note the (additional I think) & # x D ; at each line end?
    >
    > How to get rid of these?
    > Linux based if it makes a difference.

    Yes, it does make a difference?
    I'm on Linux, but using emacs a new file comes up in DOS ...
    mode/encoding?
    C-x RET f unix changes the file to a Linux file....
    and the & # x D ; disappear and the programlisting
    is nicely displayed!

    How to persuade emacs to generate unix encoding for new files anyone?



    --

    regards

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



  • 3.  Re: [docbook-apps] programlistings, double spaced?

    Posted 04-30-2011 12:31
    Hi again Dave

    Have a look at: http://www.gnu.org/software/emacs/manual/html_node/emacs/Text-and-Binary.html

    I don't use emacs myself, made a little script for conversions, but the pager seems to be the place.

    /Niels

    On Apr 30, 2011, at 12:42 PM, Dave Pawson wrote:

    > On Sat, 30 Apr 2011 11:27:57 +0100
    > Dave Pawson <davep@dpawson.co.uk> wrote:
    >
    >>
    >>
    >> I'm using programlisting, with xincluded content.
    >> What is already a long listing is now double spaced when
    >> I look at the PDF output (docbook 5).
    >>
    >> Anyone resolved this please?
    >>
    >> The fo is
    >>
    >> <?xml version="1.0" encoding="utf-8"?>
    >> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    >>
    >> <fo:layout-master-set>
    >> <!-- -->
    >> <!-- Page descriptions -->
    >> <!-- SPM 1, basic page All regions
    >> present--> <fo:simple-page-master
    >>
    >>
    >> Note the (additional I think) & # x D ; at each line end?
    >>
    >> How to get rid of these?
    >> Linux based if it makes a difference.
    >
    > Yes, it does make a difference?
    > I'm on Linux, but using emacs a new file comes up in DOS ...
    > mode/encoding?
    > C-x RET f unix changes the file to a Linux file....
    > and the & # x D ; disappear and the programlisting
    > is nicely displayed!
    >
    > How to persuade emacs to generate unix encoding for new files anyone?
    >
    >
    >
    > --
    >
    > regards
    >
    > --
    > Dave Pawson
    > XSLT XSL-FO FAQ.
    > http://www.dpawson.co.uk
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >




  • 4.  Re: [docbook-apps] programlistings, double spaced?

    Posted 04-30-2011 12:50
    On Sat, 30 Apr 2011 14:31:26 +0200
    Niels Muller Larsen <nml@acm.org> wrote:

    > Hi again Dave
    >
    > Have a look at:
    > http://www.gnu.org/software/emacs/manual/html_node/emacs/Text-and-Binary.html
    >
    > I don't use emacs myself, made a little script for conversions, but
    > the pager seems to be the place.
    >
    > /Niels

    I'm in a wholly Unix environment now, just that I have
    many legacy files created on M$ systems?
    (setq buffer-file-coding-system 'utf-8-unix) in .emacs
    seems to work for new files I create
    as I am told by that status line.
    And I don't have any odd drives formatted by windows... ATM :-)

    Thanks Niels.


    --

    regards

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



  • 5.  Re: [docbook-apps] programlistings, double spaced?

    Posted 04-30-2011 14:48
    Dave Pawson wrote:
    > On Sat, 30 Apr 2011 14:31:26 +0200
    > Niels Muller Larsen <nml@acm.org> wrote:
    >
    >
    >> Hi again Dave
    >>
    >> Have a look at:
    >> http://www.gnu.org/software/emacs/manual/html_node/emacs/Text-and-Binary.html
    >>
    >> I don't use emacs myself, made a little script for conversions, but
    >> the pager seems to be the place.
    >>
    >> /Niels
    >>
    >
    > I'm in a wholly Unix environment now, just that I have
    > many legacy files created on M$ systems?
    > (setq buffer-file-coding-system 'utf-8-unix) in .emacs
    > seems to work for new files I create
    > as I am told by that status line.
    > And I don't have any odd drives formatted by windows... ATM :-)
    >
    > Thanks Niels.
    >
    >
    The "dos2unix" CLI program is the traditional answer to this if you need
    automation for a large number of files or for inclusion in a pipeline.

    Nigel Hardy