From mboxrd@z Thu Jan 1 00:00:00 1970 From: org-mode@axelkielhorn.de Subject: Bilingual text in org Date: Sun, 26 Nov 2017 09:07:44 +0100 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_8CFCC138-A89C-40D0-A69F-29111EC64BCE" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIryg-0000n1-8o for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 03:07:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIryf-0004bS-Ce for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 03:07:50 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:36416) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIryf-0004aR-1w for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 03:07:49 -0500 Received: from [IPv6:2003:73:2f59:4a00:cc24:5375:3700:4a25] (p200300732F594A00CC24537537004A25.dip0.t-ipconnect.de [IPv6:2003:73:2f59:4a00:cc24:5375:3700:4a25]) by smtp.strato.de (RZmta 42.9 AUTH) with ESMTPSA id 30713ctAQ87jWmr (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Sun, 26 Nov 2017 09:07:45 +0100 (CET) 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" To: Org-Mode Mailing List --Apple-Mail=_8CFCC138-A89C-40D0-A69F-29111EC64BCE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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=20 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=E2=80=99t = 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=20 --Apple-Mail=_8CFCC138-A89C-40D0-A69F-29111EC64BCE Content-Disposition: attachment; filename*=utf-8''U%CC%88bersetzung.org Content-Type: application/octet-stream; name="=?utf-8?Q?U=CC=88bersetzung=2Eorg?=" Content-Transfer-Encoding: quoted-printable #+OPTIONS:=20':t=20*:t=20-:t=20::t=20<:t=20H:3=20\n:nil=20^:{}=20= arch:headline=20author:t=0A#+OPTIONS:=20broken-links:nil=20c:nil=20= creator:nil=20d:(not=20"LOGBOOK")=0A#+OPTIONS:=20date:t=20e:t=20= email:nil=20f:t=20inline:t=20num:t=20p:nil=20pri:nil=0A#+OPTIONS:=20= prop:nil=20stat:t=20tags:nil=20tasks:t=20tex:t=20timestamp:t=20title:t=0A= #+OPTIONS:=20toc:nil=20todo:t=20|:t=0A#+TITLE:=20=C3=9Cbersetzung=0A= #+DATE:=20<2017-11-22=20Wed>=0A#+AUTHOR:=20Axel=20Kielhorn=0A#+LANGUAGE:=20= de=0A#=20+SELECT_TAGS:=20export=20german=0A#=20+SELECT_TAGS:=20export=20= english=0A#+EXCLUDE_TAGS:=20noexport=0A#+CREATOR:=20Emacs=2025.3.1=20= (Org=20mode=209.1.2)=0A=0A*=20Text=20deutsch=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20:german:=0A= \begin{otherlanguage}{german}=20=0A=20=20Hier=20ist=20ein=20Text.=0A= \end{otherlanguage}=0A=0A*=20Text=20englisch=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20:english:=0A= \begin{otherlanguage}{english}=20=0A=20=20Here=20is=20some=20text.=0A= \end{otherlanguage}=0A=0A=0A= --Apple-Mail=_8CFCC138-A89C-40D0-A69F-29111EC64BCE--