From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: Org LaTeX export has broken encoding for extra headers [6.36trans (release_6.36.542.gc87b)] Date: Tue, 6 Jul 2010 15:04:32 +0200 Message-ID: <3C26FE29-56C3-490D-9A8C-3E5D3E6D051D@gmail.com> References: <877hl96qcj.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=57018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OW7pM-0006nn-FM for emacs-orgmode@gnu.org; Tue, 06 Jul 2010 09:04:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OW7pG-00043t-2W for emacs-orgmode@gnu.org; Tue, 06 Jul 2010 09:04:43 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:63352) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OW7pF-00043h-UX for emacs-orgmode@gnu.org; Tue, 06 Jul 2010 09:04:38 -0400 Received: by ewy28 with SMTP id 28so2094209ewy.0 for ; Tue, 06 Jul 2010 06:04:37 -0700 (PDT) In-Reply-To: <877hl96qcj.fsf@thinkpad.tsdh.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tassilo Horn Cc: emacs-orgmode@gnu.org On Jul 6, 2010, at 9:07 AM, Tassilo Horn wrote: > > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? =20= > See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > = ------------------------------------------------------------------------ > > I'm doing a LaTeX beamer presentation with org. The org doc starts =20= > with > these lines: > > --8<---------------cut here---------------start------------->8--- > #+STARTUP: beamer > #+LaTeX_CLASS: beamer > #+TITLE: Implementieren, Integrieren, Installieren > #+AUTHOR: Tassilo Horn > #+EMAIL: horn@uni-koblenz.de > #+LANGUAGE: de > #+BEAMER_FRAME_LEVEL: 2 > #+LaTeX_CLASS_OPTIONS: [presentation] > #+BEAMER_HEADER_EXTRA: \usetheme[secheader]{Boadilla} =20 > \institute{Universit=E4t Koblenz, IST} > --8<---------------cut here---------------end--------------->8--- > > In the presentation, the =E4 in Universit=E4t is printed as an A with = a =20 > ~ on > top, followed by a d'. The reason is that the BEAMER_HEADER_EXTRA is > put before the input encoding declaration. To be clear, org =20 > produces a > TeX file that starts with > > --8<---------------cut here---------------start------------->8--- > % Created 2010-07-06 Tue 08:57 > \documentclass[presentation]{beamer} > \usetheme[secheader]{Boadilla} \institute{Universit=E4t Koblenz, IST} > \usepackage[utf8]{inputenc} > \usepackage[T1]{fontenc} > --8<---------------cut here---------------end--------------->8--- > > but it should be at least: > > --8<---------------cut here---------------start------------->8--- > % Created 2010-07-06 Tue 08:57 > \documentclass[presentation]{beamer} > \usepackage[utf8]{inputenc} > \usetheme[secheader]{Boadilla} \institute{Universit=E4t Koblenz, IST} > \usepackage[T1]{fontenc} > --8<---------------cut here---------------end--------------->8--- > > In general, I'd say that it would be even more safe to put the extra > headers below all default headers. OK, I am doing that now - let's hope this will not break anything. Please note that you can specify the precise order of all those header =20= pieces by putting these cookies into you class definition: [DEFAULT-PACKAGES] \\usepackage statements for default packages [NO-DEFAULT-PACKAGES] do not include any of the default packages [PACKAGES] \\usepackage statements for packages [NO-PACKAGES] do not include the packages [EXTRA] the stuff from #+LaTeX_HEADER [NO-EXTRA] do not include #+LaTeX_HEADER stuff [BEAMER-HEADER-EXTRA] the beamer stuff HTH - Carsten