[docbook-apps] Re: qanda listings in html output
On Wed, Oct 27, 2010 at 14:13, Tom Browder tom.brow...@gmail.com wrote: On Wed, Oct 27, 2010 at 10:42, Tom Browder tom.brow...@gmail.com wrote: I found why the weird spacing and have kludged a fix: In db style sheets 1.75.2/html/qandasets.xsl the label is put in a paragraph (p/p) which causes the funny offset since each entry is a table row with two columns. I removed paragraph blocks from both cells for question and answer. That seemed to take care of the offset. Yesterday I changed to use the xhtml style sheets and it looks fine without my hack for the html sheets. My only complaint now is the spacing between entries is way too much and I can't figure out how to reduce it. I've tried inputs in the css and negative cellpadding through the dbhtml PIs to no avail. -Tom Thomas M. Browder, Jr. Niceville, Florida USA Even after David's pointer to Bob's book I still think the paragraph label elements in html/qandssets is a bug. Bob does say you can customize the qandaset but one shouldn't have to do that for that label problem IMHO. Regards, -Tom - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] PNGs not appearing in PDF (appearing fine in HTML)
On 27 Oct 2010, at 19:54, Mauritz Jeanson wrote: | BTW, the links on this page: | http://wiki.docbook.org/topic/MacOsx | result in 404 errors. Is there a better place to go to find | out how to install the latest and greatest docbook on Mac OS X? I hope there is... But I know very little about Mac OS X, sorry. You can install the docbook schemas and stylesheets using the normal Unix tarballs of course. However what I usually do is to use MacPorts, as that won't modify any Apple-supplied stuff, it patches things (if necessary) to make them build and work on OS X, and is a convenient way of installing packages like this. Go to http://www.macports.org/install.php#pkg and then when it is installed set up, run: sudo port install docbook-xsl Cheers, Chris - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Re: qanda listings in html output
Hi, I think this is more of a browser problem than an HTML coding problem. Using p inside a table cell is commonly done, and should not create extra space at the top of the table cell. Only Firefox pushes the qanda number down to the second line. Neither Internet Explorer or Chrome do that. Does anyone know of any other browsers that have this problem? In general, Firefox handles a p in a table cell correctly, as you can see from the second column entries which all have p and display at the top of the table cell. Firefox seems to have a problem with the empty named anchor tags just prior to the p in the numbering table cell. If I delete the a name tags, then the numbering p formats at the top of its table cell. Since emtpy a tags should take up no space, I don't think the p should trigger a line break there in Firefox. If I move the named anchor tags inside p, they also don't trigger the line break. I don't see how to work around this problem with CSS. You could customize the template with match=question to move the anchor tags inside the p. That seems to fix the problem in Firefox. This change could also be rolled into the distribution, as it should not have any other side effects. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Tom Browder tom.brow...@gmail.com To: Docbook Apps Help list docbook-apps@lists.oasis-open.org Sent: Wednesday, October 27, 2010 12:13 PM Subject: [docbook-apps] Re: qanda listings in html output On Wed, Oct 27, 2010 at 10:42, Tom Browder tom.brow...@gmail.com wrote: I found why the weird spacing and have kludged a fix: In db style sheets 1.75.2/html/qandasets.xsl the label is put in a paragraph (p/p) which causes the funny offset since each entry is a table row with two columns. I removed paragraph blocks from both cells for question and answer. That seemed to take care of the offset. Even after David's pointer to Bob's book I still think the paragraph label elements in html/qandssets is a bug. Bob does say you can customize the qandaset but one shouldn't have to do that for that label problem IMHO. Regards, -Tom - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Re: qanda listings in html output
On Thu, Oct 28, 2010 at 13:07, Bob Stayton b...@sagehill.net wrote: Hi, I think this is more of a browser problem than an HTML coding problem. Using p inside a table cell is commonly done, and should not create extra space at the top of the table cell. Only Firefox pushes the qanda number down to the second line. Neither Internet Explorer or Chrome do that. Does anyone know of any other browsers that have this problem? Bob, I don't have any complaint now that I went to the xhtml--the label problem doesn't exist. However, as I said in my last nessage, my only complaint now is the spacing between entries is way too much and I can't figure out how to reduce it. I've tried inputs in the css and negative cellpadding through the dbhtml PIs to no avail. This occurs with firefox, google, and IE 8. -Tom Thomas M. Browder, Jr. Niceville, Florida USA - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Re: qanda listings in html output
On Thu, Oct 28, 2010 at 16:02, Bob Stayton b...@sagehill.net wrote: Hi Tom, This CSS seems to work for me to reduce that extra space from the p tags: div.qandaset td p { margin-top: 0em; margin-bottom: 0em; } Argh! I was trying to use tr.qandaset! Works great, Bob--thanks a heap! Regards, -Tom - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
RE: [docbook-apps] Re: qanda listings in html output
-Original Message- From: Tom Browder [mailto:tom.brow...@gmail.com] Sent: Thursday, October 28, 2010 1:59 PM To: Bob Stayton Cc: Docbook Apps Help list Subject: Re: [docbook-apps] Re: qanda listings in html output On Thu, Oct 28, 2010 at 13:07, Bob Stayton b...@sagehill.net wrote: Hi, I think this is more of a browser problem than an HTML coding problem. Using p inside a table cell is commonly done, and should not create extra space at the top of the table cell. Only Firefox pushes the qanda number down to the second line. Neither Internet Explorer or Chrome do that. Does anyone know of any other browsers that have this problem? Bob, I don't have any complaint now that I went to the xhtml--the label problem doesn't exist. Hmm, my guess is that Firefox is rendering the html output in quirks mode[1] and the xhtml in standards mode. Staying out of quirks mode is a good thing if you want to keep your sanity while writing css. David [1] http://en.wikipedia.org/wiki/Quirks_mode - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org