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 OCmPMhEWymLh4gAAbAwnHQ (envelope-from ) for ; Sun, 10 Jul 2022 01:58: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 g92xMREWymITLQEAG6o9tA (envelope-from ) for ; Sun, 10 Jul 2022 01:58: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 432DD8D2D for ; Sun, 10 Jul 2022 01:58:09 +0200 (CEST) Received: from localhost ([::1]:56374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAKKt-0000vf-AR for larch@yhetil.org; Sat, 09 Jul 2022 19:58:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAKKN-0000vF-Jl for emacs-orgmode@gnu.org; Sat, 09 Jul 2022 19:57:35 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:51745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAKKL-0004ue-B9 for emacs-orgmode@gnu.org; Sat, 09 Jul 2022 19:57:34 -0400 Received: by mail-pj1-x102b.google.com with SMTP id o15so2009944pjh.1 for ; Sat, 09 Jul 2022 16:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=EhvawqI1JT9BSKptZq7AVW5sH85FbzhMSSsQ/ExNS0o=; b=ba8wHd+k+KAxiNk0xCE4FsP12tT2nxIkbdEG7yhHZhTV98H5MujO/um7bmS2r5yQha b8B6ZaZ1OJ0sjYFX7XvUb4s6DI+SMRL4MQkYgyTafWY6CgE6GehiIIJkxAUPUD9P/pXv gGaAJDIhtVdROKakwhTKxX8h/yqKuae7Kz23QR5wcWZrw8XBYmOTJ5JHMFsapoakQniF NwVom1IYVCxtG71cIlkJ28eRAyROuB/Gd6My7TkkTYjmTBVe29mFSsw8lL9glyr4dLbv Ky1cYLr5XRIvmyTlm1/ByhMBQnagMb2Bfh13qrfH5KZ670WHOZotch/avb9ZsvoC+Pg9 qgDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=EhvawqI1JT9BSKptZq7AVW5sH85FbzhMSSsQ/ExNS0o=; b=kCOJQYWyu+cV7AE5aHBmVgLk6uUEJP/lnn4WSVzhra2dO3lQw7ybNmwxRn1KYRioNP DO9kqj8X7lmi0d8nFATzfPs4FcYdjVSNEiR3N0F3ViBKGZNQZ2knz2TSmzH5ZCEwXAqR x7qFGRe3x9udyntF6BYrmnViAXfI+eigJ+PMKUyO3bWoKko7zSdQDlruIpdyUHWcYHx1 ejFBhhmVR5h+fnrVTkC0h1nfqOCSeyjQnS0dfhJQ2tsLGo/iD9yM8nwvS2YRKHA2gENC zn8Bs2Uj7/ScrbOwOnu71QuhkROHHsh+VbXgN+UPG0DwW1sYbyxBSjCZWSjws+0VttBl xZ8A== X-Gm-Message-State: AJIora8x7dyNrM+MSSo/h28ofRiNBNxpMkhwlv8pXTSuFpIMC3Olu2J7 vEK6Ddy7k8vk/5kTxIzTT+k0qWiHftqw6g== X-Google-Smtp-Source: AGRyM1uVTCUOKTJPK9OCOjF0LhHZV+gA+WUTKVx8aDgHeQKWjujKNjo4bu+qrrZIVWMPOhxHOB4APA== X-Received: by 2002:a17:90b:38c6:b0:1ef:f1cc:679e with SMTP id nn6-20020a17090b38c600b001eff1cc679emr8649808pjb.178.1657411050574; Sat, 09 Jul 2022 16:57:30 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-b665-0603-ea8d-22c8.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:b665:603:ea8d:22c8]) by smtp.gmail.com with ESMTPSA id d6-20020a170902654600b0016c0c82e85csm1844461pln.75.2022.07.09.16.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 16:57:30 -0700 (PDT) References: <87ilo7ztm3.fsf@posteo.net> <87ilo7tp78.fsf@tsdye.online> <87o7xzdkc0.fsf@gmail.com> <87sfna8v37.fsf@posteo.net> User-agent: mu4e 1.8.5; emacs 29.0.50 From: Tim Cross To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: Maxim Nikulin , Ihor Radchenko , Matt Huszagh , "Thomas S. Dye" , Dominik Schrempf , orgmode Subject: Re: LaTeX export: when is it more useful to use LuaTeX instead of pdfTeX? Date: Sun, 10 Jul 2022 09:49:28 +1000 In-reply-to: <87sfna8v37.fsf@posteo.net> Message-ID: <877d4lg7q3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x102b.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=1657411089; 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=EhvawqI1JT9BSKptZq7AVW5sH85FbzhMSSsQ/ExNS0o=; b=ZYMBoUg20QeT9ekBdV7tFaBpSlqmaRs+91+tfA8lAV1M0tbfU60GVqmRXLDHdhLxqYt3w/ qM3vHugA2e5kY/2Mr6qq1Drt+loHIYqn1oss1BJjV/LICvuQjC7OUOcf2esGkHXaxOupk2 1P1GdqkJsu1uFB8LPx3fazIHawQjz1MoKhQ7H1R/ZFhT2LRbLK5q+i/o4ymHcLaGKjbi/x DBe3rp4b0tav0Zd+IJlmHmDEdKVnPmRgF3VxR5yErzehqi4MDTrfvexFvs06zCIT87SSJX ByES0lpEDsbPkNT8RwYocCpOOSw7GdO6U7Ajxhv/PlW7f9SODauxzn7QZXQmNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657411089; a=rsa-sha256; cv=none; b=Nt6cCc01SUx79yrjzU0oDImml69KSJmkotIfEnjzxpf813A7qqmfPljF68NzNTrK4GzhLo nZqQE0jZJAaLFSbithkgaEUMMYuaG6/CtwQfQDxPI1QaqVMMewgCz1/61tLpjJsSFI6gi5 KsivWQPmFjvo4qb6/bz3QznqnyABpSbomUos46PWb4REiO5Jgnbby/4lTZVi8LOkMhnSlr z5hLQGOuxqpr7+ThlP4lKppwDLr+mAaj8Mem7JYuHwufeZlDdwgkW/vV5GvGNVC1UADAaV csplnQ+bnplCYVUjHp2Kr1xcGj0pxF/Ja+oghzzSmKc3eHk/BFUWlWVPYk6Rzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ba8wHd+k; 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: -1.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ba8wHd+k; 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: 432DD8D2D X-Spam-Score: -1.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZYnrmUea5Jud Juan Manuel Mac=C3=ADas writes: > 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 > Thanks Juan. It will be fairly trivial to compile the information you have provided into a basic org document which I can then add to org. If on the other hand you would prefer to write it up, all I need is an org document which is based on the (current) org 'worg' template, which is very simple i.e. #+:begin_src org #+TITLE: [No title for now, please update] #+AUTHOR: Worg people #+OPTIONS: H:3 num:nil toc:t \n:nil ::t |:t ^:t -:t f:t *:t tex:t d:(HID= E) tags:not-in-toc #+STARTUP: align fold nodlcheck hidestars oddeven lognotestate #+SEQ_TODO: TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@) #+TAGS: Write(w) Update(u) Fix(f) Check(c)=20 #+LANGUAGE: en #+PRIORITIES: A C B #+CATEGORY: worg #+HTML_LINK_UP: index.html #+HTML_LINK_HOME: https://orgmode.org/worg/ # This file is released by its authors and contributors under the GNU # Free Documentation license v1.3 or later, code examples are released # under the GNU General Public License v3 or later. # This file is the default header for new Org files in Worg. Feel free # to tailor it to your needs. #+end_src