Fwd: Issues with db2latex
James Devenish <[email protected]> Sun, 14 Dec 2003 21:46:37 +0800
| Newsgroups | gmane.text.docbook.db2latex.general |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone, This message is for <[email protected]>. (I wasn't able to send a direct e-mail reply to this person's off-list e-mail because his/her mail server was having trouble resolving DNS.) I shall put some of these answers into the FAQ. We may also be making a 0.8 'alpha' release of DB2LaTeX so that 0.7 doesn't get used any more. ----- Forwarded message from James Devenish <[email protected]> ----- Date: Sun, 14 Dec 2003 19:43:18 +0800 From: James Devenish <[email protected]> To: ?ncor Gonz?lez Sosa <[email protected]> Cc: [email protected] Subject: Re: Issues with db2latex Message-ID: <[email protected]> Hi, Before we start: I recommend using the latest DB2LaTeX "snapshot": <http://db2latex.sourceforge.net/snapshot/> instead of using DB2LaTeX v0.7. In message <[email protected]> on Sun, Dec 14, 2003 at 11:19:17AM +0000, ?ncor Gonz?lez Sosa wrote: > * Localization: Localisation is being overhauled for the next release, so that might help you out in future. However, note that there are two sources of localisation: - XSL stylesheets - LaTeX packages When you typeset with DB2LaTeX, some localisations will come from DB2LaTeX and some will come from LaTeX itself. > I'm spanish and I get things like "Section 1" (instead > of (Secci?n 1) in my spanish document. However, I get "figura 1" exactly > as I expected (I know you are working on localization). The first thing I would suggest is making sure that you have marked up your XML document. E.g. use <book xml:lang="es"> rather than <book>. If you have already done this, perhaps you need to set a variable such as $latex.babel.language or $latex.language.option. Ramon has used DB2LaTeX with Spanish and French in the past, so he might be able to help out if my instructions do not work. > * accents and special chars didn't work (for example € converts to > its character entity € but latex doesn't parse that. Other accents > work only if they are in the latin1 character set and you load the > appropriate package) This is due to a "conflict" between XML and LaTeX. It cannot be overcome with XSLT version 1.0 (which is what DB2LaTeX is written in). There are a few workarounds. I am not sure how the Euro symbol is normally handled in LaTeX. If you know, please let me know. > * this input: [...] > \item[\hypertarget{glos_palabra1}{Palabra 1}] > Definition > Ver tambi?n “\hyperlink{glos_palabra2}{Segunda palabra}”. > ... > > As you can see, localization works perfectly ("Ver tambi?n") but the > quotation marks are wrongly especified as “ and ” instead of > ``and '' (Well, this is a special ocurrence of the above problem). I'm don't know about this. If you try using a Snapshot and specifying lang="es", does that help? > * <imagedata scale="0.5" fileref="screen.png" format="png"/> You should use scale="50", because the scale is a "percentage". See DocBook: <http://docbook.org/tdg/en/html/imagedata.html>. > * <screen> > > became > > \begin{Verbatim} \end{Verbatim} > > take note of the uppercase V That is correct. <screen> is very difficult in LaTeX. It requires $latex.use.fancyvrb='1' (the default setting). I'm not sure why this doesn't work for you. If you are using a snapshot, let me know. > * This text: > <para> [...] > Note the extre linebreaks. In docbook they are irrelevant and everything > is one paragraph. In LaTeX a white line means a paragraph break so this > text become two independent paragraphs. I fixed this a while ago (in the snapshots). > PS.- Por tu nombre deduzco que debes hablas espa?ol perfectamente, con > lo que mi esfuerzo para escribir todo este correo en ingl?s puede haber > sido absurdo. Si hay cualquier parte que no entiendas (mi ingl?s es > realmente nefasto), escr?beme y te lo explicar? en espa?ol. I am too ignorant to know what you are saying, but I'm sure it means something to Ramon :-) ----- End forwarded message ----- ------------------------------------------------------- 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