Package: latex2rtf
Version: 1.9.16a-1
Severity: normal

Translating the following test case

  \documentclass{article}
  \begin{document}

  \cite[page 1]{foo}

  \begin{thebibliography}{0}\bibitem{foo} Test\end{thebibliography}
  \end{document}

the '[page 1]' argument is ignored in the RTF translation (compare with the
DVI output). A quick glance at the source package indicates that this optional
argument is only taken into account when using the APACITE or AUTHORDATE
citation styles, which I don't understand. The following "patch" cures my
problem, although it is probably not the right thing to do:

--- latex2rtf-1.9.16a/xref.c.orig       2006-08-15 14:17:33.000000000 +0200
+++ latex2rtf-1.9.16a/xref.c    2006-08-15 14:17:39.000000000 +0200
@@ -1256,8 +1256,7 @@
     }

     /* final text after citation */
-    if (option && (g_document_bibstyle == BIBSTYLE_APACITE ||
-                   g_document_bibstyle == BIBSTYLE_AUTHORDATE)) {
+    if (option) {
         fprintRTF("%s", g_bibpunct_postnote_sep);
         ConvertString(option);
     }

Cheers,

  K.B.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=POSIX, LC_CTYPE=POSIX (charmap=ANSI_X3.4-1968)

Versions of packages latex2rtf depends on:
ii  imagemagick                7:6.2.4.5-0.8 Image manipulation programs
ii  libc6                      2.3.6-15      GNU C Library: Shared libraries
ii  tetex-bin                  3.0-18        The teTeX binary files

latex2rtf recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to