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 qVwmGyXay2L7iAAAbAwnHQ (envelope-from ) for ; Mon, 11 Jul 2022 10:07:01 +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 GEVDGSXay2K0AgAAG6o9tA (envelope-from ) for ; Mon, 11 Jul 2022 10:07:01 +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 44E313D4E2 for ; Mon, 11 Jul 2022 10:07:00 +0200 (CEST) Received: from localhost ([::1]:54168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAoRX-00051W-D5 for larch@yhetil.org; Mon, 11 Jul 2022 04:06:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAoPk-0004wn-6T for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 04:05:08 -0400 Received: from basilikum.nobis-admin.de ([89.238.71.130]:38348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAoPh-0000W6-7Y for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 04:05:07 -0400 From: Stefan Nobis DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=snobis.de; s=default; t=1657526701; bh=+hzJ/FsQjWensBQJVA/cVj3Zla8IkX46ES0PyGuVuTs=; h=From:To:Subject:References:Date:In-Reply-To:From; b=UAYA9irfpSHOsGE3xwNwS6YRflMH4pWKaKKX1UQ88RFbkj/FxnPkOW1ZMrDLxnPCJ W8DtiRO74zVDJfi73fjPB4U1VWefef4Ot1WAHVYJ3f0eqi1ylxWYqJ0Vd8uRq/mbdv 0LNrgHaCOvX+nxBO3KgrtVBkyadgZZpJsZjuYlc8= To: emacs-orgmode@gnu.org Subject: Re: [possible patch] Basic fontspec code for LuaLaTeX and XelaTeX (was "LaTeX export: when is it more useful...") 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> Mail-Followup-To: emacs-orgmode@gnu.org Date: Mon, 11 Jul 2022 10:05:01 +0200 In-Reply-To: <87r12ssonv.fsf_-_@posteo.net> ("Juan Manuel =?utf-8?Q?Mac?= =?utf-8?Q?=C3=ADas=22's?= message of "Sun, 10 Jul 2022 20:23:00 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=89.238.71.130; envelope-from=stefan-ml@snobis.de; helo=basilikum.nobis-admin.de 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, SPF_HELO_PASS=-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=1657526820; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jYeF73m55gM7i4ewljVC1KsTdM1gCZX6gcrCQX+2khw=; b=sajw3Nmw8vun7PXl9cBa5tbRo4sOjVPidw2fSPYxl6dUS3WRECXIco5HjUixGpjKOsmHPz dmJWZ7heKEEvzinquF15691ugWDO1dLcphPw5kxgQ4m3j5yh/7aryhNfTr6ZHL93bBZpYu KgB4eE0X65Sm6etyAyKqWysc7UIFoCu6ASGT2l3aun/96Vs2Udq0q3s8AvYUSnw9IHn9DO yl9c94nrepCEPC1xWJZdKall1zkE/+VS/Bx8I5EbJKKKbBXBSeBEgYlGBIpdVxSqVa0DTO Sn9I9ZKiXktPSFmJZM8b8TGk4CbJuy8FRkSej6SHmhswKI4osXVMdG713VbjCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657526820; a=rsa-sha256; cv=none; b=X9i66954cdgT5LGjLtGwyv/cMXUopv8Uyp/Ki4ZwpwrsbY43a9CAWuWAk+bElXZJxb1wTf iXvGPyjXI4GkR8F+gXPO1HOMBfFdRAuSYLwRJk6mi4+Y5DhSM1ZtmCbCK8gwb1F9wiLUhn ZzDW4NEck7fQs46hQEpSjjTitCIULC/r7h5cy6SPVF1JJbCQy3GAZngSiGKaeiF97enMOH VlaVieKV+JYnoX+vVG8wcwB9nui/syxEqjs554myrOLYdAe15WMkIneDcE0MKbV7oe1EFN zXf2ogw3wTs6UC7SoJXfO8zHsyAizV2AG/I1yjrsDFQyB+loG3ZGrvQN8PRnng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=snobis.de header.s=default header.b=UAYA9irf; dmarc=pass (policy=reject) header.from=snobis.de; 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: -3.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=snobis.de header.s=default header.b=UAYA9irf; dmarc=pass (policy=reject) header.from=snobis.de; 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: 44E313D4E2 X-Spam-Score: -3.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: xAIsITvcKR+3 Juan Manuel MacĂ­as writes: > 1. There could be a defcustom, something like 'org-latex-use-fontspec' > (I would vote for nil by default). I would vote to activate this by default. > (format > \\usepackage{iftex} > \\ifpdftex > \\relax > \\else > \\usepackage{fontspec} > \\usepackage{unicode-math} > \\defaultfontfeatures{Scale=MatchLowercase} > \\defaultfontfeatures[\\rmfamily]{Ligatures=TeX} > \\setmainfont{%s} > \\setsansfont{%s} > \\setmonofont{%s} > \\fi > org-latex-fontspec-mainfont > org-latex-fontspec-sansfont > org-latex-fontspec-monofont) I would prefer to make it easier to stick with the default fonts. So only add the font selection commands (including defaultfontfeatures) when the font variables are non-nil. If no font has been explicitly chosen, just use the default (in case of lualatex Latin Modern). For me, it does not matter whether the 'org-latex-fontspec-*' variables have a default of nil or set to the Free* fonts or something else. For my configuration, I would set these variable to nil in order to get the LaTeX default fonts and would like to go with the default preamble of Org and then add to this on a per document basis. This way, the whole configuration would be a little more composable, I think. -- Until the next mail..., Stefan.