From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id VRyxN1TQbWCyPQEAgWs5BA (envelope-from ) for ; Wed, 07 Apr 2021 17:31:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uM51MFTQbWBOEwAAB5/wlQ (envelope-from ) for ; Wed, 07 Apr 2021 15:31:32 +0000 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 92B5920C97 for ; Wed, 7 Apr 2021 17:31:31 +0200 (CEST) Received: from localhost ([::1]:40460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUA9S-0007VA-Eu for larch@yhetil.org; Wed, 07 Apr 2021 11:31:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUA7q-0007Tq-6e for emacs-orgmode@gnu.org; Wed, 07 Apr 2021 11:29:51 -0400 Received: from mout02.posteo.de ([185.67.36.66]:37579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUA7k-0003u6-Rd for emacs-orgmode@gnu.org; Wed, 07 Apr 2021 11:29:49 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 70949240102 for ; Wed, 7 Apr 2021 17:29:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1617809379; bh=/rhIQ6SF9q3e3vyVF1Oe66wxYIwuzp8HQGZ71P6z8I0=; h=From:To:Cc:Subject:Date:From; b=KKY1FAZI2D8YiYPMXs6wraKkjhordCTeYxa1k6pGasDn5b+fBJuJKsZ8ma2fU657p wPZMGD/seUL6mOAXF2w5fSsow4hhtGsQckvkGG/4PeVm1V/qFCl6azLw49ltaaaF7A dDjn9FV3AmICk5ubKruKz0P0Ax2eaIVs7JQKgVf2P/eedLX2OMcbo57T2Xb/oXhhc9 ercOtx8iVpKlCJHpb2Re+60vsPr4U9u5HzF3gAT89zHpo8nu0aimbFd2PpECT/ajC3 Z/aouvtO+utnpIb9jKwsCZnma9SGntEq/DLPF5/i97sGxF3G+H0cktXahYLL9j/PY9 SxyQ/BE5VLctQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FFpGp2WBQz6tmW; Wed, 7 Apr 2021 17:29:38 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Diego Zamboni Subject: Re: Choosing a LaTeX Compiler (my predilection for LuaTeX) References: <87tuokh2z3.fsf@posteo.net> Date: Wed, 07 Apr 2021 17:29:36 +0200 In-Reply-To: (Diego Zamboni's message of "Wed, 7 Apr 2021 16:16:27 +0200") Message-ID: <874kgixgdb.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617809492; 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=p9NpeUGjanbIEvGupid+Sg9VyakrpswJVHr20PC6tLg=; b=BRTONUGDeNqJ0SVLInSz1KbI4GokaqI9G/sssFVdULTspkcjiNQFGZ3sB0IcjMfGOwOkrS /BtcXXyBaVJhJG6sZJMbgSAT3LDJZ5HmhQFIp2zGUCykffkPHRbjvYtmygNLKYXqwB2MFb +M+qAGTFsoaJMUe7pPCzhzelmXOqb/p7BRcWQxkG6ExTZmFPFg+ASD1Zia5cMamErpFEcH kXtkI+tBPPAblCJ2lpq4pOU3YzUAYNe1GfKK53dPkiH0CCtU9ZwbO0xuB1ghjnswADtWeC mHJ7sCwLQgdAp8CVZ4fi3zBH7qw82Rt0TbVbx31ECGDK65ABcJKMnRndBBOfsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617809492; a=rsa-sha256; cv=none; b=SDykSQ5J0Xsdqqzh3SZHMI1oCV9tOFNo8JkRI32C4PXzOmp4Mgyi40wdBceviZnJhEXTRj iASyfubQLvgQKPJcJbfTmoSc/rcupeM8pF9Sjs8pNSNGLYBI+bU7zbWoEEHLwV2bs+kJQM f16Ycv6wJ3TR9yIlNoP4gF2l40gcdQREcdKph3Vy7U87DHbZ/ixU0FVVWNqpGsE3/7Jy4y Y8+4tNV/wLJ8GPFPKDWM7dO1wov2sRvmZK6E++8EtTonl2+NqZMbaiAZJz88CqZEqoGPo+ XD5wvwjKw1ySzwoBh045eFbtkQV/8KCwxD2t92Op3Gm4So5EQxHArRe+kYrofw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KKY1FAZI; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KKY1FAZI; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 92B5920C97 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: Fjxgl2evIBVS Hi Diego Diego Zamboni writes: > Hi Juan Manuel, > > Thank you for writing this, which is the clearest explanation I have > seen of the advantages of LuaLaTeX/XeLaTeX. I have been using LaTeX > for nearly 30 years, but stopped using it intensively every day when > pdfLaTeX was still the bleeding edge. When I started again in the last > couple of years, it has been a bit confusing to understand why and > what all these different versions are. These days I use LuaLaTeX as > well, but most of the documents I process are exported from Org-mode. Certainly, LuaTeX has many possibilities, although perhaps we would have liked more if there was a "LispTeX" :-D (by the way, the most lispy thing I've seen on planet TeX is this strange and interesting package [a Lisp interpreter written in TeX! language]: https://www.ctan.org/pkg/lisp-on-tex) This is a very simple example of what can be done in LuaTeX through its Lua interpreter (from Org): we define a command, with a simple Lua function, that put all capital letters of the document in TeX Gyre Pagella font, in red and scaled; and all digits in bold. (Anyway, this can also be done in Org Mode with a custom filter...): #+NAME:luacode #+begin_src lua :exports none function change_test ( text ) text = string.gsub ( text, "%d", "\\textbf{%0}" ) text = string.gsub ( text, "%u", "{\\myfamily %0}" ) return text end #+end_src #+NAME:latexcode #+begin_src latex :exports none :noweb yes \usepackage{fontspec} \usepackage{luacode} \usepackage{xcolor} \setmainfont{Linux Libertine O} \newfontfamily\myfamily{TeX Gyre Pagella}[Scale=2,Color=red] \begin{luacode} <> \end{luacode} \newcommand\change{\directlua{luatexbase.add_to_callback ( "process_input_buffer" , change_test , "change_test" )}} \newcommand\nochange{\directlua{luatexbase.remove_from_callback ( "process_input_buffer" , "change_test" )}} #+end_src #+begin_src latex :noweb yes :results raw ,#+LaTeX_HEADER: <> #+end_src #+LaTeX:\change Lorem ImpsuM DoloR Sit aMet 1234567890 #+LaTeX:\nochange Lorem ImpsuM DoloR Sit aMet 1234567890 x----- For more esoteric features I recommend trying the chickenize package (very didactic): https://www.ctan.org/pkg/chickenize Best regards, Juan Manuel