From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 0HRKAn3Wy2JBYAAAbAwnHQ (envelope-from ) for ; Mon, 11 Jul 2022 09:51:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2A4/An3Wy2LYRwEAauVa8A (envelope-from ) for ; Mon, 11 Jul 2022 09:51:25 +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 9F0343D06F for ; Mon, 11 Jul 2022 09:51:24 +0200 (CEST) Received: from localhost ([::1]:38252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAoCR-0001xl-Qb for larch@yhetil.org; Mon, 11 Jul 2022 03:51:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAoC2-0001xd-CO for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 03:50:58 -0400 Received: from basilikum.nobis-admin.de ([89.238.71.130]:39464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAoC0-0001Bx-3H for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 03:50:58 -0400 From: Stefan Nobis DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=snobis.de; s=default; t=1657525851; bh=u7MrATfraaE+E1WuBaRhQR+Ngh4MNePZyuhusxoxXvA=; h=From:To:Subject:References:Date:In-Reply-To:From; b=OKS+/V2n9lhOJ4VWvH95e6zG/fLmexhAuNeBOvDBFxth2u4kxcfi43di1LCoCi0Tn 8tXC84CvxaYab4DYNstvdFHHCQaXswppgnI8cAYdR3MnCW5sF0TokHNApd1/yrOqm6 n5bhH+FW9I/zcoD/Fs/r6aLzqTcBv/SUi+/lV+qo= 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> <87pmicqtko.fsf@localhost> Mail-Followup-To: emacs-orgmode@gnu.org Date: Mon, 11 Jul 2022 09:50:51 +0200 In-Reply-To: <87pmicqtko.fsf@localhost> (Ihor Radchenko's message of "Mon, 11 Jul 2022 10:19:51 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain 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=1657525884; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Encu+EQ8Z1+mScoJnNnbGeDaSqMphNwoDWDjGEW1mWE=; b=fH20oa8nlqdGmDCQuDEj/gL/6TZI3g6WXrpXHTSfr6nw7uHGBYjjno0fvAXohicUNPlRFe nkicWxxmArgDWRwoIhp5FCGOklNaDlPAtD5mvGeReEK4UxCf/BL8M/6U8ipqHz1tmeVl2P Pn0nFyCFhkbpmRnrOMCNGhWAJPziyjpcvHuxRh0tFcfdWaeEm827WTIrI09nVE8wr6gnPO UskVF1W8j6ytW8LLmpFscIVi9EPfA5OrSiplvTUCQtSLpgrOCJp9E/Rvaypavgdk06ccr5 GO54UaUIWF28FHeyILSCLJUM6H1UbkbOLsNbCBns2+x0t65b6BynB6WZSZNZxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657525884; a=rsa-sha256; cv=none; b=TtG8Kzh0IShjZsIbR42fVHHVU8wwW61wtrWLN+fmZXBE32f+4zspj86xAoZcqeN8rkEnIL Euiqio+23LowUDLuJ8oVrunFKm/PMCbivR8Za6ntjEgui461N5RU/O3OVttrx1BpMw2zIo Az/0fCrA9sMN2PvUqC41rcmkR5V7WgcL73NJoNI4wXCcuHntaNFXNVT5OsIANsIT/pZq0X Q6kmtekH+gIDgo6a7GhzBvNxBmorwWeA12FFrAmuB5aSOBt1VE0fS3+cNiyOJ//ovc1obL 48G8bvwYdyazX+hHYBlxLrYeJjTD4GBoIixrY7cMggq110qfmG1etGyiqpSGrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=snobis.de header.s=default header.b="OKS+/V2n"; 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.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=snobis.de header.s=default header.b="OKS+/V2n"; 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: 9F0343D06F X-Spam-Score: -3.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: FwWGZR1svCEF Ihor Radchenko writes: > But can someone check if Free* fonts are available on Windows and > Mac by default? I just checked TeXLive (on MacOS, but should be the same on all systems): The Free* fonts are part of TeXLive as truetype and as opentype versions (and partly in other formats). For Windows I remember vaguely that some prefer the MikTeX distribution (TeXLive is also available for Windows and has the same fonts as everywhere). A short search shows that the gnu-freefont set is also availabe for MikTeX, but I currently don't know whether it will be installed with a default MikTeX installation. > This unified preamble approach is consistent with what we do now. > However, our currently used large preambles will slow down compilation. Not that much. The time consuming packages like tikz/pgf (used by beamer) are not part of out default preamble. There is not that much speed to gain (all times are for a single lualatex run): 1) Only hyperref loaded, no other packages: 0.46s user 0.10s system 99% cpu 0.568 total 2) Complete default preamble for lualatex: 0.48s user 0.14s system 99% cpu 0.623 total 3) The same as above, but with babel and mathtools: 0.51s user 0.15s system 99% cpu 0.673 total 4) And another variant (same as before, but package caption instead of capt-of): 0.53s user 0.14s system 98% cpu 0.674 total 5) Back to our default preamble, but adding fontspec: 0.60s user 0.14s system 99% cpu 0.748 total 6) With fontspec, unicode-math, babel, mathtools, caption: 1.02s user 0.19s system 99% cpu 1.220 total Therefore most of out default packages (and even the addition of babel) does not change much for the speed of compilation. I don't think its worth to try to further optimize this default preamble. Adding fontspec and especially unicode-math adds quite some time, so maybe its worth to take care to only add these if necessary (only for lualatex/xelatex and only if e.g. if a font has been selected or math seems to be used in the document). And, by the way, our preamble is neither large nor complex. For my LaTeX documents, the preamble is usually *much* larger. :) Here is the test file for the default preamble (but with mathtools instead of amsmath and with babel; test run 3): --8<---------------cut here---------------start------------->8--- % Intended LaTeX compiler: lualatex \documentclass{article} \usepackage[english, safe=none, math=normal]{babel} \usepackage{graphicx} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{mathtools} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \date{\today} \title{Test Document} \hypersetup{ pdfcreator={Emacs 28.1 (Org mode 9.5.4)}, pdflang={English}} \begin{document} This is a short test document. \end{document} --8<---------------cut here---------------end--------------->8--- Here is the test file for the last run with all extra packages: --8<---------------cut here---------------start------------->8--- % Intended LaTeX compiler: lualatex \documentclass{article} \usepackage{fontspec} \usepackage[english, safe=none, math=normal]{babel} \usepackage{graphicx} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{mathtools} \usepackage{amssymb} \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} \usepackage{caption} \usepackage{hyperref} \date{\today} \title{Test Document} \hypersetup{ pdfcreator={Emacs 28.1 (Org mode 9.5.4)}, pdflang={English}} \begin{document} This is a short test document. \end{document} --8<---------------cut here---------------end--------------->8--- -- Until the next mail..., Stefan.