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

Bug#348636: marked as done (tetex-extra: listings package in tetex-3 conflicts with cjk-latex)



Your message dated Thu, 28 Dec 2006 15:12:24 +0100
with message-id <20061228141224.GB1568@PC23>
and subject line Bug#348636: tetex-extra: listings package in tetex-3 conflicts with cjk-latex
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
On 18.01.06 Wang Xu (gnawux@gmail.com) wrote:

Hi,

> 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
> 
Note from upstream:

Note that this incompatibility is documented behaviour of the
`listings' package!  If you don't use Chinese within listings, add

  \lstset{extendedchars=false}

at the beginning of your document to make GB2312 work.

submitter agreed to close.

H.
-- 
sigmentation fault

--- End Message ---

Reply to: