emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Multiple (natural) languages in a single org-file
@ 2012-03-01 10:45 Carlos Russo
  2012-03-01 11:05 ` Carlos Russo
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Russo @ 2012-03-01 10:45 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-11  6:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-01 10:45 Multiple (natural) languages in a single org-file Carlos Russo
2012-03-01 11:05 ` 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

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).