emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Russo <mestre.adamastor@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Multiple (natural) languages in a single org-file
Date: Thu, 01 Mar 2012 10:45:16 +0000	[thread overview]
Message-ID: <jinjvp$8lf$1@dough.gmane.org> (raw)

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

             reply	other threads:[~2012-03-01 10:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 10:45 Carlos Russo [this message]
2012-03-01 11:05 ` Multiple (natural) languages in a single org-file Carlos Russo
2012-03-01 12:37   ` Nicolas Goaziou
2012-04-11  1:19     ` François Pinard
2012-04-11  5:23       ` Nick Dokos
2012-04-11  6:30         ` Bastien
2012-04-11  6:18       ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jinjvp$8lf$1@dough.gmane.org' \
    --to=mestre.adamastor@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).