emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: org-mode@axelkielhorn.de
To: Org-Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Bilingual text in org
Date: Sun, 26 Nov 2017 09:07:44 +0100	[thread overview]
Message-ID: <AA56FBC5-0AD3-4F4B-92D2-FAD6403475F2@axelkielhorn.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

Hi,

I want to use org-mode to translate a text from german to englisch.
In my current setup I have marked the section with a tag to select either (or both) languages.

This works fine for one language.
If I want to print both, I have to manually adjust the argument to babel.

My solution is to remove babel from 
org-latex-default-packages-alist
and add
#+LATEX_HEADER: \usepackage[englisch,german]{babel}

Is there a better way to pass two languages to babel?

(I could use Xelatex and polyglossia instead, but so far I don’t need any of the special features.)

My second question is about the otherlanguage environment.
Is there a way to wrap the text with the environment based on the tag?
Even with yasnippet that would save a lot of typing.

Axel 



[-- Attachment #2: Übersetzung.org --]
[-- Type: application/octet-stream, Size: 840 bytes --]

#+OPTIONS: ':t *:t -:t ::t <:t H:3 \n:nil ^:{} arch:headline author:t
#+OPTIONS: broken-links:nil c:nil creator:nil d:(not "LOGBOOK")
#+OPTIONS: date:t e:t email:nil f:t inline:t num:t p:nil pri:nil
#+OPTIONS: prop:nil stat:t tags:nil tasks:t tex:t timestamp:t title:t
#+OPTIONS: toc:nil todo:t |:t
#+TITLE: Übersetzung
#+DATE: <2017-11-22 Wed>
#+AUTHOR: Axel Kielhorn
#+LANGUAGE: de
# +SELECT_TAGS: export german
# +SELECT_TAGS: export english
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 25.3.1 (Org mode 9.1.2)

* Text deutsch                                                      :german:
\begin{otherlanguage}{german} 
  Hier ist ein Text.
\end{otherlanguage}

* Text englisch                                                    :english:
\begin{otherlanguage}{english} 
  Here is some text.
\end{otherlanguage}



             reply	other threads:[~2017-11-26  8:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-26  8:07 org-mode [this message]
2017-11-27 14:16 ` Bilingual text in org Adonay Felipe Nogueira
2017-12-02  7:14   ` org-mode
2017-12-08  8:38     ` org-mode
2018-01-13 13:31     ` Adonay Felipe Nogueira

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=AA56FBC5-0AD3-4F4B-92D2-FAD6403475F2@axelkielhorn.de \
    --to=org-mode@axelkielhorn.de \
    --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).