From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GJJ7EZ08zGIFqgAAbAwnHQ (envelope-from ) for ; Mon, 11 Jul 2022 17:07:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aFuBEJ08zGLEawEAG6o9tA (envelope-from ) for ; Mon, 11 Jul 2022 17:07:09 +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 D49E383A4 for ; Mon, 11 Jul 2022 17:07:08 +0200 (CEST) Received: from localhost ([::1]:60824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAv07-0000dx-Hi for larch@yhetil.org; Mon, 11 Jul 2022 11:07:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAuQ5-0007YT-7k for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 10:29:53 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:45895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAuQ3-00063t-75 for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 10:29:52 -0400 Received: by mail-pl1-x635.google.com with SMTP id d5so4566787plo.12 for ; Mon, 11 Jul 2022 07:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=/r3cm/vj9FPWrE8NL5JXR/N3Y8a5iX6aQ2Cgeow57BA=; b=YET3jYLz9AVKlKU735NBEXooUm/vXoiP9PpVqsfShwd5vkSIO4Z5H+P1xs3mbSLXin yVJxleKDOoitwQhQC0K6FiBQcxY8IbDOgb0sF0z4O4SmH013Oq5w+qlph7jbCJ6vl7HJ ZnkPObqXjmc5pDDQx+sN1yvEnsSBJt/Ve+8dbPaHwICjbSWN716S9TOPr+kSvzL+EEdB bO3x/sY0lUh8vcqewCKZkBhy29OI7Z74gwg4/d2ajq94W//t70Uo+n53eC2Qwl0GPa9t 13mny/KTU1Rrr/ug7OWSoN5ZAY6aPIMP3y24z9p/0y2uItYDN/VjKgyCApe6c2GWQxQS Jjzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=/r3cm/vj9FPWrE8NL5JXR/N3Y8a5iX6aQ2Cgeow57BA=; b=t+ZgH/84vY3DACZ89cVehW5+UqRRP1kq90Ud7Dy6TbKkqbQYywZ0PJ0Ry1SoFQMlVI vkKrf+57y2vC5ovU8i/TdB1vR/4XuWqlpm7aMv6FxgvFJNjkZvahP4zU7vzI5GmslvPU ISZBwF8dBJyQX51HILUbt65NDhb6OTuuC3DvJ8kDjeMhlGMWE937+LVKo7yCDPXwxc2K 4YwGboYTe4aLCuFZ+v7yn+arIlXTkbXgD2pBRV1ZhDmRzNH0zMNe9xeLI0HYNTQAWnLi DFn0qu40TpZUpS0H1JjCZPfXoNEhEbH4+VVWEGxbYlqBxQpxrwJqI7UtSR1UrG1sR5qO HhhQ== X-Gm-Message-State: AJIora9UNe1tzg1+txYgTyI2ZBUqe6svtwgseLG9cXYgmw4P+BdVfJg9 eNUT/NrNtFJ8aY/DfTNgsXA= X-Google-Smtp-Source: AGRyM1vGp1vhbNmLQduSzQfkpS8T0Vl66Qp7G7NytlfV/Vl8ltTdo9Ozu9IiTyEL+oH3VFlGo4OSww== X-Received: by 2002:a17:90b:3849:b0:1f0:1898:1b51 with SMTP id nl9-20020a17090b384900b001f018981b51mr13852401pjb.100.1657549788249; Mon, 11 Jul 2022 07:29:48 -0700 (PDT) Received: from localhost (2403-580e-91f7--5dcb-1344-eeb4-7191.ip6.aussiebb.net. [2403:580e:91f7:0:5dcb:1344:eeb4:7191]) by smtp.gmail.com with ESMTPSA id b4-20020a170902d50400b0016c16648213sm4856600plg.20.2022.07.11.07.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 07:29:47 -0700 (PDT) From: Timothy To: Ihor Radchenko Cc: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , orgmode Subject: Re: [possible patch] Basic fontspec code for LuaLaTeX and XelaTeX (was "LaTeX export: when is it more useful...") Date: Mon, 11 Jul 2022 22:19:41 +0800 References: <87ilo7ztm3.fsf@posteo.net> <87ilo7tp78.fsf@tsdye.online> <87o7xy8t4g.fsf@posteo.net> <87a69i8ha1.fsf@posteo.net> <87tu7qnij4.fsf@posteo.net> <87r12ssonv.fsf_-_@posteo.net> <87pmicqtko.fsf@localhost> User-agent: mu4e 1.8.5; emacs 28.1.50 In-reply-to: <87pmicqtko.fsf@localhost> Message-ID: <87pmiblo2v.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x635.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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657552029; 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=/r3cm/vj9FPWrE8NL5JXR/N3Y8a5iX6aQ2Cgeow57BA=; b=MEiK7vTWxfHak8mrAMweJlbwwCL+VPS8ArUasojJdrsM1jdDEtiZydI9gu6g0SZhb6yemP JDTBXQqD+/twkS4oq9aEQAqaj3UUP2naLgcRVMIvCz7eD6zgJMa28D4dv1k5+yiL3n6Ot4 v0SD6+h6/VPswenuQrg8R6acR+W4JaY9JyHBht731QKvkiD7Kxxg7Tw0sBn7dDHrX3dLj1 mPoxT4kXAG5kIf1MwHrOsx34RT9c1AftoPtz7gVv+yZgfbjtGTWoGonEcwJk1zGuLY0xeB dI2NnpfnIGitr9XD0G8MCxANCn2AZpGoXoC7qTU8aGtNqACY21o/BCnJJdtUww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657552029; a=rsa-sha256; cv=none; b=JIAykBkfiISdGe6pOsMS0H98Urq6nid5piq1QhxnpkNZjHa1tyMn183CHrOC/zOjMpJAhA nvjAROhGdDYOR38fblvDEn1zadEcXjOB8+EdAGThw2eT0Q4Gm+6kzB5iBWIHDLUoRpyDiC sAWGWKKwQZFCMgtciqFi4ZFYNaDxBj8RvE8xrkXSRmn2rm0VJ9xny9QwzNWyYVG1R2i6c5 wvjMValyiIVkr/8m9Sq2/ua8Awy6ZHKsug2qo+RNNbITV54Z89hXH37mLo1DEXIuJlMG6U B1Hk6zSc1yAUPAvtvvHhzkN8aMsGWaySeXyPeCyMYE2mQCC5MccksQbTU2OzOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YET3jYLz; 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" X-Migadu-Spam-Score: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YET3jYLz; 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" X-Migadu-Queue-Id: D49E383A4 X-Spam-Score: -2.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: q2KXm4c/cQ8q --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ihor & co., > As I recall, Timothy has been working on simplifying preamble > generation. If we do not put unnecessary packages into preamble, > compilation will be significantly faster. > > If Timothy can come up with a patch some time soon, I=E2=80=99d prefer to= have a > more targeted preamble. Otherwise, the proposed approach is the way to > go. Yep, I=E2=80=99ve got something in my config currently that intercepts LaTe= X preamble creation and generates it only the fly from a list of detected features bas= ed on the exported document and capability providers. I use this in my config to automatically switch to LuaLaTeX when necessary and use pdfLaTeX the rest o= f the time. This should also be able to be able clean up some of the currently kludgy preamble modifications like in oc-csl.el. This has been on the back-burner for a while (I want to implement this is a= way that can be generalised across all output backends), but I=E2=80=99ll see i= f I can make some progress and hopefully have a preliminary patch set in the next few we= eks. Lastly, there=E2=80=99s something extra I want to note. If we talk about in= cluding a font customisation, I=E2=80=99d advocate for supporting font sets, not font= s. Once again, this is something I=E2=80=99m a fan of from my config, and this coul= d potentially be supported across multiple export formats. As an illustrative example, if I include this in one of my documents and cr= eate a PDF: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 #+options: fontset:biolinum =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Then I=E2=80=99ll get text with: =E2=81=83 libertine roman as the serif font =E2=81=83 biolinum as the serif, and default, font =E2=81=83 source code pro as the mono font =E2=81=83 newtxmath as the maths font Similarly I can do `fontset:noto' and you can guess what that does. All the best, Timothy --=-=-=--