From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maximilian Matthe Subject: Latex-Export with custom commands Date: Tue, 12 Oct 2010 20:35:09 +0200 Message-ID: Reply-To: Maxi.Matthe@web.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=36221 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5jvu-0004om-6l for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 14:51:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5jvO-0002cl-JM for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 14:50:41 -0400 Received: from lo.gmane.org ([80.91.229.12]:36499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5jvO-0002cU-DT for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 14:50:10 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P5jvJ-0002Sw-1J for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 20:50:05 +0200 Received: from f053086226.adsl.alicedsl.de ([78.53.86.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Oct 2010 20:50:05 +0200 Received: from Maxi.Matthe by f053086226.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Oct 2010 20:50:05 +0200 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: emacs-orgmode@gnu.org Hi, I'm having a .tex-file named style.tex which contains the following: > \usepackage{xspace} > \newcommand{\cA}{\ensuremath{\mathcal{A}}\xspace} I'm including this file into my org-file with > #+LATEX_HEADER: \input{style} Now, when I type sth. like this: > Inside normal text \cA just works fine. But when I want to add superscripts to that A: > Now adding a superscript to \cA^n because I need it. In the pdf-Output there is a space between the superscript and the A. That is because of the latex-export does sth like: > \ensuremath{\mathcal{A}}$^n$ Is there some workaround for that behaviour? Best regards, Max