From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Russo Subject: Multiple (natural) languages in a single org-file Date: Thu, 01 Mar 2012 10:45:16 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S33WK-0006pS-OQ for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 05:46:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S33Vr-0006Hb-00 for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 05:46:00 -0500 Received: from plane.gmane.org ([80.91.229.3]:50374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S33Vq-0006HU-Po for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 05:45:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S33Vl-0004Uh-Kr for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 11:45:25 +0100 Received: from cmpxkeeper.ist.utl.pt ([193.136.137.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Mar 2012 11:45:25 +0100 Received: from mestre.adamastor by cmpxkeeper.ist.utl.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Mar 2012 11:45:25 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Is there a way to accommodate more than one natural language (e.g. english and portuguese) in a single org-file? I often prepare presentations in org-mode and export them using LaTeX's beamer class. There is usually little text and quite some math. Often I need to recycle an older presentation but using a different language, i.e. sometimes I prepare something in english, but later I will need to recycle it using english. So far, I get around this by defining a custom LaTeX command: #+LATEX_HEADER: \newcommand{\pt}[1]{} \newcommand{\en}[1]{#1} or #+LATEX_HEADER: \newcommand{\pt}[1]{#1} \newcommand{\en}[1]{} I use this command to write stuff like * \en{Example: sum of two numbers}\pt{Exemplo: soma de dois nĂºmeros} \en{Example 1}\pt{Exemplo 1} \[ 3 = 2 + 1 \] \en{Example 2}\pt{Exemplo 2} \[ 0 = 1 + e^{i\pi} \] I then export to pdf. Switching between languages is a matter of changing the LaTeX header and exporting again. Is there a more elegant way of doing this? I would like to be able to export to HTML and ODT... Carlos