From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +AdzFCidoWTYZgEASxT56A (envelope-from ) for ; Sun, 02 Jul 2023 17:52:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yOt+EyidoWQkVQAAG6o9tA (envelope-from ) for ; Sun, 02 Jul 2023 17:52:08 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 023492E37 for ; Sun, 2 Jul 2023 17:52:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFzLK-0008NJ-N8; Sun, 02 Jul 2023 11:50:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFzLI-0008C0-MM for emacs-orgmode@gnu.org; Sun, 02 Jul 2023 11:50:28 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFzLG-0007pO-9b for emacs-orgmode@gnu.org; Sun, 02 Jul 2023 11:50:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1300A240027 for ; Sun, 2 Jul 2023 17:50:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688313023; bh=rqlqRrgah1OhXakO90XzNLxqyN67jxFf/OWV9BigqlQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Rno7Gs2EByiDslyd0X3flg3tsafucoMNpckHmD6mOSKTjQyJ9Wm0T3TtOhpS6Zq7G 0jEOrlznSZ/Vz13UsrMAIT08t4NURA+56blZSrFBjI+zrXUYBhiqmYq44SX5lYGmZu fHAkMyBd2H6uAvXNrE+j/HJjDT7YYjNdkystMsei3Z02jtSq9+gevREK4IlKoS0+Ac ZBZ48EHPk7STopbfYm1VghHlVXsNSskNOdEokMSWlR0d9A0qifFcnIng1IkpAwXV6R KNMENwyoP9xFPXKhIPat6CQIiFk1jx6DXQJwnDilNExoK7hClEdkprdLgxqeE2NBlW oMceOOwDlpVwQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QvD664T4Jz9rxM; Sun, 2 Jul 2023 17:50:22 +0200 (CEST) From: Ihor Radchenko To: Stefan Nobis Cc: emacs-orgmode@gnu.org Subject: Re: exporting to PDF multi-lingual document In-Reply-To: References: <873528n00q.fsf@web.de> <87ttum4s1k.fsf@localhost> Date: Sun, 02 Jul 2023 15:50:23 +0000 Message-ID: <87v8f28g8w.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688313128; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RS4XggAQncW1y6mbyJcVLipgPRxTY4xkgvmku9jEOeA=; b=cgj82mZsX3tyJj3hXZh1AE9LAv4S8hj73EdxxA+IFalS4CRPpZmmbyO36HgMBFs4PLIz0y TlE5JEgPVryXBZjnoIek6mtbSEal2SDA9N13fGnqs/F2DRE1WCYr9SVlDUETQXF81zoOOm JBDKXQpvS1BL600QcrffwhztDnbRN+OA6I6ebnO/wdr21Q7va9ojTeySK3Kuyt46hpinWU OG10qrOn+vocd14xgHE9BQXxX0TDYLtgNUhqFyb4+DuDsZvAJPIUqfZwsK3N3ZxpTdPLiN 9oqvJoN0vfO42Yab1ZZ3R9rtLXUGvTnVy27nEmz/gbY3eZJ6b2kKCsAltI9zEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Rno7Gs2E; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688313128; a=rsa-sha256; cv=none; b=lF0vPdXUEVURIrTqIH36wM/nXiWdUCdMZaPqfgChVfw0NTolK0uAJppsDwFwma1mtX5qQL k2kl1B9Rs+4lajp9TRgPF+4Gmyoo0hq1hADjs0FCBmNPabsrtIudvKR+MdoaLJjdmr8Lr6 sCwVJ2louF/mfnUtr9xdYPGOwB8834C73w3O0BpyNZ8HIlqUR4yE6ABCHTs0K76fgu53YL XbLox0nMj4QMH9IxGhgvf3dsTFyBOB9VdcAiy4Emlru8s3+DbSmUVcrhViT2gulBM/qXPx kXQyFt44AsvTpo//Fj9/6BKGoo2E75RYQTh4DubYUYRA5PAx5xfpfnuFGv5usw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Rno7Gs2E; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 023492E37 X-Spam-Score: -4.73 X-TUID: h6KQWndTHTyH Stefan Nobis writes: > On the other hand: Luatex is much more flexible and has better support > for modern fonts and modern font render engines. So does xelatex, AFAIU. > It depends what one assumes to be the most common use case for Org. If > it's many rather short and simple documents then pdftex should suffice > most of the time and the fast compile speed will matter. If we want to > support as many different situations out of the box, I think luatex > would be the better/easier way - at the cost of slower compilation > speeds. The problem with luatex (and xelatex) is export to .tex files. Org is sometimes used when writing research papers and journals generally demand pdflatex, not luatex. Also, some people explicitly add LaTeX headers to their documents - headers that may or may not be compatible with LuaTeX. What could be done is having #+LATEX_COMPILER set to something like 'auto by default - use luatex for some non-English #+LANGUAGE settings, but fall back when headers are customized. > Additionally, we might try to detect situations in which > luatex would be the better choice (e.g. certain languages). But this > would certainly be more work and lead to more complex code. The most immediate problem to solve is figuring out a good universal preamble that will work with UTF8 Org sources that can contain arbitrary (known) languages. The code will be more complex, but Timothy's work on conditional preamble should make things much easier. So, complexity should not stop us - the necessary infrastructure will be in place sooner or later. https://list.orgmode.org/orgmode/875yc95rxp.fsf@tec.tecosaur.net/ > Another approach: Use pdftex for simple/short documents and make > selection of luatex as backend engine per document as easy as > possible. It is already easy - #+LATEX_COMPILER -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at