From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 WO06Lw9SyWIa2gAAbAwnHQ (envelope-from ) for ; Sat, 09 Jul 2022 12:01:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SMw5Lw9SyWKNEAEA9RJhRA (envelope-from ) for ; Sat, 09 Jul 2022 12:01:51 +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 3BD2E3294C for ; Sat, 9 Jul 2022 12:01:51 +0200 (CEST) Received: from localhost ([::1]:54210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oA7Ha-00031A-FN for larch@yhetil.org; Sat, 09 Jul 2022 06:01:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA7Ft-0002Yi-Gu for emacs-orgmode@gnu.org; Sat, 09 Jul 2022 06:00:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:58937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA7Fr-0004kW-4Z for emacs-orgmode@gnu.org; Sat, 09 Jul 2022 06:00:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D9A56240107 for ; Sat, 9 Jul 2022 12:00:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1657360800; bh=9sm69RqbQmm9tAfUud+G4PUMVkqY49gh2RnJmEE2NBY=; h=From:To:Cc:Subject:Date:From; b=Zd7VZBIwtNP+c2BV++swqh/23CsdaJPv1rgvPAQ+he8Nfk9ZWZ9Aox8+CDks8i4nI OE/UqJ2aLaOh5OAXhqXitvz9AVIAiwLeAeVXBU4Epua4xAceEUvX4NkamJNGSlncb3 1pE3wh2VXQgjdmchgEehZZosVior0RPYfJTTASYFDbRI1E53O5LemalUmFvscWRV9Z Pl/tXwUK1nuNzqyamrbyQsYVGcP3kTi/e/Utls4UPKGj9/BZUXX8Jwirl8me9D5eJY OExukrqUX0PAveP3iI6aiEt+N/9CUS84kWfQJBgf3jUz3AcpFvcn7f355RRXECmsxi 5Mo6lUdreQrsw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Lg5H31PKcz9rxT; Sat, 9 Jul 2022 11:59:58 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Tim Cross Cc: Maxim Nikulin , Ihor Radchenko , Matt Huszagh , "Thomas S. Dye" , Dominik Schrempf , orgmode , orgmode Subject: Re: LaTeX export: when is it more useful to use LuaTeX instead of pdfTeX? References: <87ilo7ztm3.fsf@posteo.net> <87ilo7tp78.fsf@tsdye.online> <87o7xzdkc0.fsf@gmail.com> Date: Sat, 09 Jul 2022 09:59:56 +0000 In-Reply-To: <87o7xzdkc0.fsf@gmail.com> (Tim Cross's message of "Sat, 09 Jul 2022 13:24:06 +1000") Message-ID: <87sfna8v37.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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_H2=-0.001, 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=1657360911; 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: 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=9sm69RqbQmm9tAfUud+G4PUMVkqY49gh2RnJmEE2NBY=; b=OvYm/+ZBgIGur5t7p2QnoxRb0ALv4fu+OH+XfRFcrqF7w5rpPtOduDC1Bk+iY+veL+kKXx Dz6SiQExwmY74VXkEjzIiY8ZaV4uQclt2Hn9effm2cp7fZB03FWIb6ONoD4Ub1SKhuwUxx 3tr+M0CrkQUus0GIvuF0/Mul5bjyN44GyqU+bKmuU902dvwzmbtQBXZ3EGjGQxRJqPNH0P C2A/K6OJB08+vcWngihChNEp0D9EdMWQ5Gzy78Kj9xLSDQFdMomlkztPBanBndKexkqf2J 6wKWEJ6LWf5e5k2qfWZveriauGqF6CZ6eXhOLab6ZDDWw1wb923hLF7DgGjYPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657360911; a=rsa-sha256; cv=none; b=c7AlDF1Gt2agY7IN/vYK8htIZJellrd1dM6XfuBXlEkat5tqZ4mRqbZDpS2VJDY+kxCVkk 9aL5Fqjm/ei8lDuU/7XjMraj33GYTKoRNLlyBz+C6Bu4de7fldVsclIBZ0QUN2+jPPinkH E3NbwDYjqqqWyI+hlk4a0urcdZz0dSu9lq8GQuC977x+yA/ImAyuyLjdC8fTw8ygjIZI9q O15YPATmHVP4AuYmaEyHsBkwPAv2lfo83qUjaL8cx89/avKXEp3d8MlPL/nIGM9jsRNyFr vDtyNZADq9K2FOFN45jff663cHejSkFpuyM7q2EPtNjkgBYxbRCFspj9kjplSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Zd7VZBIw; 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-Spam-Score: -1.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Zd7VZBIw; 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: 3BD2E3294C X-Spam-Score: -1.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: bHan0nRctcIU Hi, Tim, thank you for your comments, Tim Cross writes: > Juan, I think it would be great to add your post to worg. I'm happy to > do this, but I think it wold also be good if we could include a basic > 'setup' i.e. what changes people might need to (or should do to maximise > benefit) in order to try out luatex. For example, what settings to put > in org-latex-pdf-process (I'm guessing something like "lualatex > -interaction nonstopmode -output-directory %o %f") and what (if any) > packages to add/remove from the org-latex-packages-alist etc (I'm > guessing that perhaps some font related packages may need tweaking?). > > Ideally, what would be good is a very simple recipe for what someone > should do in order to try out luatex and get the most out of it (or at > least see potential). I have no problem with my post being added to worg, but I don't have much experience in working with worg... Of course, I can prepare everything you need, if you think it might be useful. The *only* difference between a minimal document for lualatex and a minimal document for pdfLaTeX is that for LuaLaTeX it is not necessary to load the fontenc and inputenc packages. The following mwe compiles perfectly in LuaLaTeX: \documentclass{article} \begin{document} Hello world! =C3=A1 =C3=A9 =C3=AD =C3=B3 =C3=BA =C3=B1 =C3=A0 =C3=A8 =C3=AC =C3=B2 =C3=B9 \end{document} LuaTeX defaults to an otf version of the Computer Modern font, so any user who isn't interested in fonts and writing in non-Latin languages, but wants to work in a real Unicode environment, won't need to fine-tune fonts, nor load any special package. The rest is exactly the same as any document for pdfLaTeX. If in the Org document is added: #+LATEX_COMPILER: lualatex=20 the fontenc and inputenc packages are not loaded in the output, which is correct and it is the minimum requirement for LuaLaTeX. I think Org is already doing a good job here. If the user wants to use other fonts, the fontspec package must be loaded. Depending on the user's needs, you can go from the simplest to the most complex configurations (the different options and possibilities are explained in detail in the fontspec manual). The simplest: if a user just wants to use the Times New Roman font as the main font in his document, this lines would suffice: \usepackage{fontspec} \setmainfont{Times New Roman} That is, by indicating the name of the family (Times New Roman), luatex would use this family for normal text, italics, bold, etc. Of course, it's a good idea to load a family that has italic, bold, bold italic, and other subtypes. Fontspec has tons more options, but this would be the basics. But I think this aspect is more on the LaTeX side than in the Org side. LuaTeX can use the fonts installed on the system, without the need to add more (that is, simply by putting the name of the family, LuaTeX accesses them); and you can also use any font in any directory, just by giving the path. I wrote BTW this little package to preview any font in Emacs, and test the opentype features. it uses org-latex-preview in the background and compiles with LuaTeX: https://gitlab.com/maciaschain/org-font-spec-preview Best regards, Juan Manuel=20