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

Bug#547978: texlive-latex-extra: envlab + utf-8 result in "! Argument of has an extra }"



Subject: texlive-latex-extra: envlab + utf-8 result in "! Argument of �has an extra }"
Package: texlive-latex-extra
Version: 2007.dfsg.17-2
Severity: normal

We have a system which automatically generates latex input files to
generate letters and envelopes.  The system operates entirely on utf-8
data.  A fair portion of the data is western text -- i.e. we could
represent it using ASCII or 8859-1 -- we do have a non-trivial amount of
material which includes characters drawn from IPA, oriental sets,
Arabic, etc.

We recently encountered a case where a letter works, but the related
envelope (same addressee, same source data for the addresses) fails.
I've guessed based on this pair documents that the envlab package is
somehow to blame for the problem, and continuing on from that guess,
I've assigned this to the texlive-latex-extra debian package.

Relevant (hopefully...) bit of the envelope .log:

	(/usr/share/texmf-texlive/tex/latex/ae/t1aess.fd)
	! Argument of �has an extra }.
	<inserted text> 
					\par 
	l.13 ...g utf-8 char (ü)\\City postcode\\country}

	?  

I've included the two test case input files, which are cut down from the
system-generated input files, and the letrinfo.tex file needed for the
newlfm-based letter.

Googling produced the fragile command/moving argument faq, so I spent
some time dropping \protect into the input document in various ways, and
I also tried creating a copy of the envlab package and trying \protect
there, to no avail.

Fair warning: I'm in way over my head; on a good day I can construct a
simple working latex input document with lots of help from google.  In
particular, while the latex inputs we generate automatically seem to
_work_ for most cases, I don't know that they're _correct_.

De

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

This input file fails with the error:

	\documentclass{letter}
	\usepackage[businessenvelope]{envlab}
	\usepackage{autofe}
	\usepackage{ucs}
	\usepackage[utf8,utf8x]{inputenc}
	\usepackage{textcomp}
	\usepackage{ae,aecompl}
	\makelabels
	\begin{document}
	\startlabels
	\mlabel{%
	  Sender department\\Sender organization\\Sender address\\Sender city, state postal code}{%
	  Addressee\\Addressee organization\\Addressee address including utf-8 char (ü)\\City postcode\\country}
	\end{document}

This input file works:

	\documentclass[busletter,letterpaper,nofromaddress,12pt]{newlfm}
	\usepackage{mathpazo}
	\usepackage{autofe}
	\usepackage{ucs}
	\usepackage[utf8,utf8x]{inputenc}
	\usepackage{CJKutf8}
	\usepackage{textcomp}
	\usepackage{ae,aecompl}
	\begin{document}
	\addrto{Addressee \\%
	Organization \\%
	Address containing utf-8 char (ü) \\%
	City Postcode   \\%
	Country}
	\nolines
	\topmarginskip{0.25in}
	\headermarginskip{0.5in}
	\Lheader{\Huge{\it Ipsum Lorum}}
	\lthX
	\greetto{Greetings:}
	\begin{newlfm}
	Letter body containing utf-8 char (ü).
	\sigX
	\end{newlfm}
	\end{document}

##################################
other files

\newsavebox{\XB}%
\sbox{\XB}{%
	\begin{minipage}[t]{1.75in}%
		\begin{flushright}%
			\vspace{0.1in}%
			\tiny{%
				{\bf%
					Organization \\%
					Address \\%
					City, State \\%
					Postal code \\%
					tel: digits \\%
					fax: digits \\%
					url \\%
				}%
			}%
		\end{flushright}%
	\end{minipage}
}%

\makeletterhead{X}{%
	\Lmargin{%
		\usebox{\XB}%
	}%
}%

\makesignature{X}{%
	\signame{Signer \\%
		Position}%
	\closeline{Sincerely,}%
}%

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

-rw-r--r-- 1 root root 1764 Sep 17 07:42 /var/lib/texmf/ls-R
-rw-rw-r-- 1 root staff 7771 Sep 17 07:41 /usr/local/share/texmf/ls-R
lrwxrwxrwx 1 root root 29 Aug 21 17:05 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 Aug 21 17:05 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 Aug 21 17:05 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE

######################################
 Config files

lrwxrwxrwx 1 root root 20 Aug 21 17:05 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 11437 Sep 17 07:41 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 20869 Sep 17 07:41 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 14710 Sep 17 07:41 /var/lib/texmf/tex/generic/config/language.dat

######################################
 Files in /etc/texmf/web2c/

total 4
-rw-r--r-- 1 root root 283 Jun  9 16:40 mktex.cnf

######################################
 md5sums of texmf.d

42c20d7e8bd343542772b5a145bf8ad8  /etc/texmf/texmf.d/05TeXMF.cnf
5f7f6652cc8b8071c9e4ea6ba9e9f0a1  /etc/texmf/texmf.d/15Plain.cnf
f68e5add6afd6585b982f2f78e2e6a92  /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c  /etc/texmf/texmf.d/55Fonts.cnf
afccf1d3f87057411166a77c58e00bd1  /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068  /etc/texmf/texmf.d/75DviPS.cnf
7ae52efac46feb97010986e57877d12e  /etc/texmf/texmf.d/80DVIPDFMx.cnf
055e06548bac99958d8ab2dd1248f2b4  /etc/texmf/texmf.d/80tex4ht.cnf
37329819f1109e8a457e64b8b58fecdb  /etc/texmf/texmf.d/85Misc.cnf
a8952d594677235951d447665ec46e9c  /etc/texmf/texmf.d/90TeXDoc.cnf
30f4f13357c2761ed01a6a15f28725a5  /etc/texmf/texmf.d/95NonPath.cnf
1df66bc319cec731e202eaf39f5d85e1  /etc/texmf/texmf.d/96JadeTeX.cnf

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=es_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages texlive-latex-extra depends on:
ii  dpkg                       1.15.4        Debian package management system
ii  preview-latex-style        11.83-8       extraction of elements from LaTeX 
ii  tex-common                 1.20          common infrastructure for building
ii  texlive-common             2007.dfsg.2-4 TeX Live: Base component
ii  texlive-latex-base         2007.dfsg.2-4 TeX Live: Basic LaTeX packages
ii  texlive-pictures           2007.dfsg.2-4 TeX Live: Packages for drawings gr

Versions of packages texlive-latex-extra recommends:
ii  texlive-generic-extra     2007.dfsg.17-2 TeX Live: Miscellaneous extra gene
ii  texlive-humanities        2007.dfsg.17-2 TeX Live: LaTeX support for the hu
ii  texlive-latex-extra-doc   2007.dfsg.17-2 TeX Live: Documentation files for 
ii  texlive-latex-recommended 2007.dfsg.2-4  TeX Live: LaTeX recommended packag
pn  texpower                  <none>         (no description available)

texlive-latex-extra suggests no packages.

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
ii  dpkg                          1.15.4     Debian package management system
ii  ucf                           3.0022     Update Configuration File: preserv

Versions of packages texlive-latex-extra is related to:
pn  tetex-base                    <none>     (no description available)
pn  tetex-bin                     <none>     (no description available)
pn  tetex-extra                   <none>     (no description available)
ii  tex-common                    1.20       common infrastructure for building

-- debconf information:
  tex-common/check_texmf_wrong:
  tex-common/check_texmf_missing:



Reply to: