Re: Linebreaks in paragraphs and character entities
James Devenish <[email protected]> Sat, 13 Dec 2003 10:00:13 +0800
| Newsgroups | gmane.text.docbook.db2latex.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, In message <[email protected]> on Fri, Dec 12, 2003 at 01:13:23PM +0100, bvh wrote: > 1. Use of character entities [...] > Entity references in the latin1 set like (à etc) are converted to > latin1 encoding by db2latex It's the way XML works :-/ > Character entities like € (I believe this to be the euro symbol) are > left alone by db2latex. Again the problem is that (my installation of) LaTeX > doesn't know how to handle these. What should I do to get that working? There are several solutions provided by DB2LaTeX. You will need to turn these features on, though. I personally go for Unicode handling. This means that I have install the 'ucs' ('unicode') LaTeX package and then use the following variables in my XSL files: <xsl:output encoding="UTF-8"/> <xsl:variable name="latex.inputenc">utf8</xsl:variable> <xsl:variable name="latex.use.ucs">1</xsl:variable> <xsl:variable name="latex.ucs.options">postscript</xsl:variable> Some examples are available in the snapshot 'samples' tarball or can be viewed on the web: <http://cvs.sourceforge.net/viewcvs.py/db2latex/db2latex/xsl/sample/test_entities/>. > 2. Line breaks in paragraphs [...] > <para> > This is > > one paragraph > </para> [...] > However when I convert to LaTeX with db2latex the single white line is > still there and becomes a hard line break in the typeset document. This doesn't happen to me. Maybe I worked around it in CVS. Could you try a snapshot? <http://db2latex.sourceforge.net/snapshot/> I tried to track down where this was fixed, but I couldn't find it. Confusing. > 3. We have documents where the scaling factor for the imagedata has a fraction. > This didn't work with db2latex. However when rereading the docbook specification > before posting I saw that the scaling factor must be an integer so I'll have > to change those sources then. Yep, the @scale attribute is a percentage (0--100). See also <http://db2latex.sourceforge.net/reference/rn30re79.html>. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click