V H wrote:
I am using quickbook and boostbook to generate the pdf file. Everything is fine. But when I try to display some long command lines in the certain style (I don't know how to call the style. In the .qbk file, it is with several blanks at the beginning of the line). Thoses lines seem good in html file but are out of range in the pdf file. Attached files are .pdf file and .qbk file. What's the reason?

For clarity, we call that style "code blocks".

Code blocks are treated like the HTML tag <pre>, which means long lines cannot be wrapped. In general, if this were to be done a convention for distinguishing between wrapped lines and non-wrapped lines would be needed.

Anyway, this behaviour is handled by the DocBook stylesheets and by the way the browser (for HTML) or FOP (for PDF) renders the markup. I don't think there is much we can do about it. Your best option may be to break the long lines manually, perhaps with an indication to the user that it's supposed to be a single long line:

    Several commands are

        >>>YOKO   = long command line long command line
            <continued> long command line long command line
            <continued> long line long command line


Although it would surely look nicer with a continuation image instead of "<continued>" ;-)

Not much of a help, but anyway...

Best Regards,


João



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to