From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wA6AGpaSsmX2NQEA62LTzQ:P1 (envelope-from ) for ; Thu, 25 Jan 2024 17:55:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wA6AGpaSsmX2NQEA62LTzQ (envelope-from ) for ; Thu, 25 Jan 2024 17:55:50 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=nMObCCvR; dmarc=pass (policy=none) header.from=gmail.com; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706201750; 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=DoEypKwa5ddXeGgD18Wx+RFeq2eTHbhTNk2JkG4o/L0=; b=sjRXsdViikY2jsgVGJXaFBzgjMZma6CuwtjeNWs7AK3HsfPM0brbYxqYYQyf/AR35qoDys Mb18tWmAl1dY9ZeqfFDnL/YNH9H5padfB4Fnj5GzGoj/M3IvAJLw5mpNMDSvah4tDWhWzJ q/RtVaA/U7q5m1ybF7fBUFe6Jek7bUveNWOjxzh3RyLHtg8kmB9yXodCjZ9XH42BjIPicg /tItu9IjC4F83HxDFR+QEjr7kwdIYHzOBAGrMOOivAI64Ih/hWmulACMZYaoJgJ/cIjqIv UfCpwSoSiqeYmTrJ3olHxLIUgMnCoiMaHRcgpBbEbF7rvY0HS/3GDp/C1tjB1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=nMObCCvR; dmarc=pass (policy=none) header.from=gmail.com; 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=1706201750; a=rsa-sha256; cv=none; b=QGURPFYbllzNiYQkfVDMYstJO8NsBBw/dWvqdjBm5aETQM/DKgaV3YH9w9UGAHFWUKn4T+ ARHNAsWJpXWM/wdKqtE2dq+YOk7wLs/EXeGTCHojxRIW3jWcbPjCOp/pPIjaB/C2stpHvE fdSxsZlL1k46kjuqRUIqs76RtHothl3HQFSNPr7KQ81YsSL+b0blJTMMUQTyR/NXEJtFly /kCrmUX1ODTry7hfXHqsjk0BGNTufwBLcTfp/v2H5OJMp+7uXZrr8ERBZp6qezz8IjL3pc glPrqhu+9pSeAsWlQ0pTjphCmSdKtRdTXMA/1wBsED7XOVIMeUkairXCIO+bVg== 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 3809B26C7F for ; Thu, 25 Jan 2024 17:55:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT30D-00068e-CM; Thu, 25 Jan 2024 11:54:57 -0500 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 1rT30B-00067m-0t for emacs-orgmode@gnu.org; Thu, 25 Jan 2024 11:54:55 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rT308-0008IL-TC for emacs-orgmode@gnu.org; Thu, 25 Jan 2024 11:54:54 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40eb033c192so6229795e9.0 for ; Thu, 25 Jan 2024 08:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706201691; x=1706806491; darn=gnu.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=DoEypKwa5ddXeGgD18Wx+RFeq2eTHbhTNk2JkG4o/L0=; b=nMObCCvR7brnMxKEuqbZL1Av4fSc74TWa28+vwuMgCbCmUp8Sdr/2bTBX+ZDQejWcA +rQPvrEluRf2e/J3aGjg3mArouXtbNLHKhKWm9WCYD/6LFrWRKaY0tupomlRNfltWVGh neROT/ki1lqXM7b4eY3xsAktIshau67wBuCD7Tp4K+U4IjDIVDfCjwhdY6IImcf5MwVv rE3ms2h3DL/VVGmW9UB2XwdtCiVriczQwjzNzQPCn2lWVnWkG27GOugVb42VgaeAvHE2 LtsehCI3hVpFY7sEAYTjNdX5u3f5K0NdCMQiQEDoTN1Y3EOo7FRoUjg9a1VuwsIqbaqL 2Oig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706201691; x=1706806491; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=DoEypKwa5ddXeGgD18Wx+RFeq2eTHbhTNk2JkG4o/L0=; b=ryy0iZpr2EsKiOaGiOjaI45lXQEryfdhxbMcTLahi5SzsF1TV7ZScOAdB/STrEwaqH ZzVL0HUoX3R1M49JWLnxK6US0eqH+tzLL9sYA4SL4MRtok84mY+oEB92Ut5xTBh350gx DiH4jY1MIpaPkfIenyz+1lurM4c0OHk7bftPxbLyMm9pbsK03X82W++StVNZduLxqbTL o7KJfDI3puHvsXDQbayYLQeAilO3lZ1WLNz2JK3sIDZymxZALMkeHn+/a7iDkYZWJHvG u5IY1N+togt5jAK5yetNis3rMWLlllyYybOFrRC9xplefVewS0BliJb1c8xzb4eVvXWP xvMg== X-Gm-Message-State: AOJu0Yxgu4ND/ldiyMQDZVYlwFakIVjS986crSk1c1w8Ox6m3XCg4EOM 7548bQQ92+MvN2A1LatLsCJwDPgN6YJx4MDlSVPA0spXug2koPz4 X-Google-Smtp-Source: AGHT+IGz2U4flwkjZz6OgcKDb8+HznB1VvVwtZ6ZplyBU2aZ6mnr0MEK7GQscW1S8kUQJepBLCDUEw== X-Received: by 2002:a05:600c:3d06:b0:40e:76e1:e55 with SMTP id bh6-20020a05600c3d0600b0040e76e10e55mr49923wmb.92.1706201691063; Thu, 25 Jan 2024 08:54:51 -0800 (PST) Received: from [192.168.1.39] (185.red-79-148-95.dynamicip.rima-tde.net. [79.148.95.185]) by smtp.gmail.com with ESMTPSA id g8-20020a05600c310800b0040e703ad630sm3147183wmo.22.2024.01.25.08.54.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jan 2024 08:54:50 -0800 (PST) Content-Type: multipart/mixed; boundary="------------8f9KO1uXSlqCaG0SKW1gYepM" Message-ID: <8126b66a-f598-4069-bc5f-f11dc3c2365f@gmail.com> Date: Thu, 25 Jan 2024 17:54:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: New try at multi-lingual export to latex/pdf using pdflatex and babel To: Ihor Radchenko Cc: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= , Org Mode List References: <87sf2qg7pg.fsf@localhost> <878r4i37eh.fsf@posteo.net> <87zfwxtvp0.fsf@localhost> <87v87lzdsy.fsf@posteo.net> <878r4eg0m7.fsf@localhost> <235ab244-f7fb-4bb9-bac1-8676b6f1897a@gmail.com> <87cytpledm.fsf@localhost> Content-Language: en-US From: "Pedro A. Aranda" In-Reply-To: <87cytpledm.fsf@localhost> Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=paaguti@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.87 X-Spam-Score: -8.87 X-Migadu-Queue-Id: 3809B26C7F X-Migadu-Scanner: mx12.migadu.com X-TUID: dq4wUcKWuDRc This is a multi-part message in MIME format. --------------8f9KO1uXSlqCaG0SKW1gYepM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi I've been reading a bit. What I propose is an alternative way to handle all the tricky parts of font and character handling with fontspec in lualatex and xetex. This package restricts the use of the ams* packages to pdflatex, because fontenc handles that internally and produces package collisions. Attached is the final version of the patch. Best, /PA On 25/1/24 14:41, Ihor Radchenko wrote: > "Pedro A. Aranda" writes: > >> As stated, this was only a PoC. If you find it useful, I would give it a >> go in the free window. > I understand. > My question is to clarify how useful it is. > Because I am not deeply familiar with how fontenc works for non-English > languages, it is hard to judge how useful it will be in practice. > >> ... I'm also playing with >> org-latex-default-packages-alist, refining it to use fontspec in >> lualatex and xetex and restricting inputenc and fontenc to pdflatex only. > Aren't inputenc and fontenc already restricted to pdflatex only? > --------------8f9KO1uXSlqCaG0SKW1gYepM Content-Type: text/x-patch; charset=UTF-8; name="0001-Refine-font-management-for-lualatex-and-xetex.patch" Content-Disposition: attachment; filename="0001-Refine-font-management-for-lualatex-and-xetex.patch" Content-Transfer-Encoding: base64 RnJvbSA0ODFhMzU3NTBmY2I0MDk4ZmU0NjllZmM4MDYyM2M1YzI4OWI2ZjlmIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiAiUGVkcm8gQS4gQXJhbmRhIiA8cGFhZ3V0aUBnbWFp bC5jb20+CkRhdGU6IFRodSwgMjUgSmFuIDIwMjQgMTc6NDc6MTUgKzAxMDAKU3ViamVjdDog W1BBVENIXSBSZWZpbmUgZm9udCBtYW5hZ2VtZW50IGZvciBsdWFsYXRleCBhbmQgeGV0ZXgK Ci0tLQogbGlzcC9vcmcuZWwgfCA4ICsrKysrLS0tCiAxIGZpbGUgY2hhbmdlZCwgNSBpbnNl cnRpb25zKCspLCAzIGRlbGV0aW9ucygtKQoKIGxpc3Avb3JnLmVsOiBzd2l0Y2ggdG8gZm9u dHNwZWMgZm9yIGNoYXJhY3RlciBhbmQgZm9udCBtYW5hZ2VtZW50CiAgIGluIGx1YWxhdGV4 IGFuZCB4ZXRleC4gVGhpcyBpbXBsaWVzIGV4cGxpY2l0bHkgaW1wb3J0aW5nIHRoZQogICBh bXMqIHBhY2thZ2VzIGlzIG9ubHkgbmVlZGVkIHdpdGggcGRmbGF0ZXguCgpkaWZmIC0tZ2l0 IGEvbGlzcC9vcmcuZWwgYi9saXNwL29yZy5lbAppbmRleCBjZjlhYmFmYWMuLmY1MDUzMWU3 ZSAxMDA2NDQKLS0tIGEvbGlzcC9vcmcuZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTM0M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