From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2666: 23.0.91; TeX calendar and UTF-8 encoding Date: Fri, 13 Mar 2009 22:16:53 +0100 Message-ID: <94C0B520-AA49-4CA7-A4B3-93EC463793D2@Freenet.DE> Reply-To: Peter Dyballa , 2666@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236980700 23383 80.91.229.12 (13 Mar 2009 21:45:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2009 21:45:00 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 13 22:46:17 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LiFCo-0006G9-2O for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Mar 2009 22:46:14 +0100 Original-Received: from localhost ([127.0.0.1]:37899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiFBR-0005UD-PB for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Mar 2009 17:44:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiFAT-0004oZ-Sg for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 17:43:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiFAP-0004mm-NW for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 17:43:49 -0400 Original-Received: from [199.232.76.173] (port=42931 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiFAP-0004mb-Du for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 17:43:45 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60267) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LiFAO-0002gn-G5 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 17:43:45 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2DLhfYr004962; Fri, 13 Mar 2009 14:43:42 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2DLP4mZ032737; Fri, 13 Mar 2009 14:25:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Peter Dyballa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 13 Mar 2009 21:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2666 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123697903631277 (code B ref -1); Fri, 13 Mar 2009 21:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 13 Mar 2009 21:17:16 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2DLHCu9031265 for ; Fri, 13 Mar 2009 14:17:13 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:56845 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LiEkh-0008Vd-IK for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 17:17:11 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LiEkd-0005X7-QJ for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 17:17:11 -0400 Original-Received: from mout0.freenet.de ([195.4.92.90]:32769) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LiEkd-0005Wf-BR for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 17:17:07 -0400 Original-Received: from [195.4.92.15] (helo=5.mx.freenet.de) by mout0.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #79) id 1LiEkZ-0004EY-Cl for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 22:17:03 +0100 Original-Received: from p5b23e8ef.dip.t-dialin.net ([91.35.232.239]:61974 helo=[192.168.1.2]) by 5.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #79) id 1LiEkY-0006f2-UJ for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 22:17:03 +0100 X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 13 Mar 2009 17:43:49 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26306 gmane.emacs.pretest.bugs:24123 Archived-At: Hello! I have localised calendar to show month and day names in German. This =20= month is M=E4rz. When I create a (La)TeX calendar, it's in UTF-8 =20 (because of my shell environment), the =E4 is 0xC3 0xA4 or =C3=A4 in ISO = =20 8859-1 or =C3=80 in ISO 8859-15. The latter is my preferred LaTeX input =20= encoding since it allows to use our currency sign, the =80. This now =20 makes it necessary to use the textcomp package in LaTeX. Is it possible to make the output produced or its encoding more =20 flexible, adapt itself to the default encoding of GNU Emacs? If not, =20 could the documentation be updated to state which encoding is used =20 and that the user should use cal-tex-preamble-extra to adapt for that? I have some difficulties with the documentation of cal-tex-preamble-=20 extra. Its doc-string contains For example, to include extra packages: "\\usepackage{foo}\n\\usepackage{bar}\n". but when I use \\ and \n in the customisation interface these appear =20 unchanged in the calendar.tex buffer. (Actually LaTeX does not =20 complain when a few commands are concatenated to build a long line.) =20 I haven't yet saved my customisation =96 if this explains the =20 difference between theory and practise. I'd also recommend to use the report class instead of article in the =20 LaTeX output generated: no useless AUX file is created then. Other =20 differences won't show up. Another improvement would be to update some old LaTeX code, for =20 example the \special{landscape}{}% This would only work for ancient DVI output. Modern XeTeX and pdfTeX =20 do not understand this. A completely orthogonal solution is: \usepackage[landscape]{geometry} Between ``[=B4=B4 and ``]=B4=B4 is also the correct place to define the = margin: = \usepackage[landscape,nomarginpar,top=3D0pt,margin=3D{-2cm,-2cm}]{geometry= } It should be OK to just use: \usepackage[landscape,nomarginpar,top=3D0pt]{geometry} It's not necessary to set \textwidth and \textheight. There is =20 probably no-one using a TeX distribution elder then 15 years, i.e., =20 it will be teTeX or TeX Live based. In these distributions a TeX =20 configuration file sets the default paper size. To switch from =20 landscape to portrait just remove the ``landscape,=B4=B4 option from the = =20 line loading the geometry package or set clearly: \usepackage[portrait,nomarginpar,top=3D0pt]{geometry} This package is in all TeX distributions. Since some years (<10) this =20= is also true for the Latin Modern fonts (texdoc lm-info), which are =20 planned as a modernised update and substitute of all CM fonts in a =20 modern font format (OTF), which can be loaded via \usepackage{lmodern} (actually PostScript fonts are used here). It could also be thought =20 of making the LaTeX output XeTeX compatible (loading ifpdf and =20 ifxetex packages, loading the fontspec package for XeTeX and setting =20 a system font, for example Times, or leaving the default Latin Modern). In GNU Emacs 23.0.91.1 (powerpc-apple-darwin8.11.0, GTK+ Version 2.14.7) of 2009-03-13 on localhost Windowing system distributor `The XFree86 Project, Inc', version =20 11.0.40400000 configured using `configure '--without-sound' '--without-pop' '--=20 with-dbus' '--with-libotf' '--x-includes=3D/opt/local/include' '--x-=20 libraries=3D/opt/local/lib' '--enable-locallisppath=3D/Library/=20 Application Support/Emacs/calendar23:/Library/Application Support/=20 Emacs' 'PKG_CONFIG_PATH=3D/opt/local/lib/pkgconfig:/usr/local/lib/=20 pkgconfig:/usr/lib/pkgconfig' 'CFLAGS=3D-Wno-pointer-sign -H -pipe -=20 fPIC -mcpu=3D7450 -mtune=3D7450 -fast -mpim-altivec -ftree-vectorize -=20= foptimize-register-move -freorder-blocks -freorder-blocks-and-=20 partition -fthread-jumps -fpeephole -fno-crossjumping' 'LDFLAGS=3D-=20 dead_strip -multiply_defined suppress -L/opt/local/lib' 'CPPFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Info Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t show-paren-mode: t display-time-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t -- Mit friedvollen Gr=FC=DFen Pete Imbecility, n.: A kind of divine inspiration, or sacred fire affecting censorious critics of this dictionary. =96 Ambrose Bierce: _The Devil's Dictionary_