[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#348636: tetex-extra: listings package in tetex-3 conflicts with cjk-latex



Package: tetex-extra
Version: 3.0-11
Severity: normal


If a LaTeX doc using listings (1.3) and CJK packages
  1) has a Chinese page heading, such as has a Chinese chapter name
     which will appear in the heading,
  2) and long contents in a lstlisting environment or lstinputlisting
     command which across page boundary, i.e. across the heading with
	 Chinese charaters,
an error will occur as following.
|! Incomplete \iffalse; all text was ignored after line 41.
|<inserted text>
|                \fi


And such condition will not lead to any problems in listings (1.2)
shipped tetex-2.02 and older version such as listings 1.1 . Hence,
I think it may be a bug of listings package.

A simple example was shown as following, and it need 
|cjk-latex
|tfm-arphic-gbsn00lp
packages to be compiled.

-- Package-specific info:

##################################
minimal input file

\documentclass{book}
\usepackage{CJK}
\usepackage{listings}
\begin{document}
\begin{CJK}{GB}{}
\chapter{中文}

blah blah

\begin{lstlisting}

some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
some verbatim contents here.
	
\end{lstlisting}

blah blah


\clearpage
\end{CJK}
\end{document}

######################################
 List of ls-R files

-rw-r--r-- 1 gnawux gnawux 120 2006-01-18 14:40 /home/gnawux/texmf/ls-R
-rw-r--r-- 1 root users 1064 2006-01-18 00:52 /var/lib/texmf/ls-R
-rw-rw-r-- 1 root staff 862 2006-01-09 10:23 /usr/local/share/texmf/ls-R
lrwxrwxrwx 1 root root 29 2006-01-02 16:30 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 35 2005-12-14 15:48 /usr/share/texmf-tetex/ls-R -> /var/lib/texmf/ls-R-TEXMFDIST-TETEX

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-gnawux-01
Locale: LANG=en_US, LC_CTYPE=zh_CN.GBK (charmap=GBK)

Versions of packages tetex-extra depends on:
ii  dpkg                          1.13.11.1  package maintenance system for Deb
ii  tetex-base                    3.0-11     Basic library files of teTeX
ii  tetex-bin                     3.0-13     The teTeX binary files
ii  ucf                           2.004      Update Configuration File: preserv

tetex-extra recommends no packages.

-- no debconf information



Reply to: