From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adonay Felipe Nogueira Subject: Re: Bilingual text in org Date: Mon, 27 Nov 2017 12:16:22 -0200 Message-ID: <87y3mrerih.fsf@hyperbola.info> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJKD7-0002Ys-0n for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 09:16:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJKCx-0001jY-8L for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 09:16:36 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:44224) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJKCx-0001iC-1R for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 09:16:27 -0500 Received: from adfeno-pc1 (unknown [181.221.146.76]) (Authenticated sender: adfeno@hyperbola.info) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 11D00FB883 for ; Mon, 27 Nov 2017 15:16:24 +0100 (CET) In-Reply-To: (org-mode@axelkielhorn.de's message of "Sun, 26 Nov 2017 09:07:44 +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" To: emacs-orgmode@gnu.org Strange, I might be wrong but this might not be set by default. I have Org version 9.1.2 (9.1.2-15.g1d5142, which is of version 20171016 in GNU Guix package manager). Alternatively, per `texdoc babel', you can make the language as a document class option. 2017-11-26T09:07:44+0100 org-mode@axelkielhorn.de wrote: > 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 > > > --=20 - https://libreplanet.org/wiki/User:Adfeno - Palestrante e consultor sobre /software/ livre (n=C3=A3o confundir com gratis). - "WhatsApp"? Ele n=C3=A3o =C3=A9 livre. Por favor, veja formas de se comun= icar instantaneamente comigo no endere=C3=A7o abaixo. - Contato: https://libreplanet.org/wiki/User:Adfeno#vCard - Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft Office, MP3, MP4, WMA, WMV. - Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU GIMP, Inkscape SVG, JPG, LibreOffice (padr=C3=A3o ODF), OGG, OPUS, PDF (apenas sem DRM), PNG, TXT, WEBM.