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 0GGjDAZjyWKUtwAAbAwnHQ (envelope-from ) for ; Sat, 09 Jul 2022 13:14:14 +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 wACDDAZjyWJEFwEA9RJhRA (envelope-from ) for ; Sat, 09 Jul 2022 13:14:14 +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 C351533F54 for ; Sat, 9 Jul 2022 13:14:13 +0200 (CEST) Received: from localhost ([::1]:50168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oA8Pc-0008QE-Q3 for larch@yhetil.org; Sat, 09 Jul 2022 07:14:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA8MA-0006qS-RO for emacs-orgmode@gnu.org; Sat, 09 Jul 2022 07:10:38 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA8M6-0002jF-Vr for emacs-orgmode@gnu.org; Sat, 09 Jul 2022 07:10:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id ED461240027 for ; Sat, 9 Jul 2022 13:10:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1657365033; bh=22n4XV8JuciQb0AKUjMK57C1Z1KoyqbI3U8eyM7DMHY=; h=From:To:Cc:Subject:Date:From; b=HOS7xdZnoEJKkC5NxUlFQ9RXjiolZr6s4PdVksPojJKXSg4Gg9CH44yB9eU0r17au tud3QoLw1v2pjPKyOE+VBUc46/C1688pB9B+mgfVBWTiPJuEx3fbVwp8upcNsmqDma pnXFHBEJO+Mou6e2F5moYk/ZsNQ5AedQJcL2NutRJMSa17z6g8l5GOc2yzkPfzRCCl +DwBh0mypEiowyhJfJUhOEJKwqnAgsDK6Zv3ZeDDteSnUXNw8yOjZIrn1JyzpQNw3V xO3DDUa/IrlVIkaCm4/UpQ4ci+akJs3FNToz6A7BAybYo1sQNVNFcPClhkqXmwq2HV /qSZy8iOzwscw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Lg6rR4YrHz9rxf; Sat, 9 Jul 2022 13:10:31 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: "Thomas S. Dye" Cc: Maxim Nikulin , Ihor Radchenko , Matt Huszagh , "Thomas S. Dye" , Dominik Schrempf , Greg Minshall , orgmode , Tim Cross Subject: Re: LaTeX export: when is it more useful to use LuaTeX instead of pdfTeX? References: <87ilo7ztm3.fsf@posteo.net> <87ilo7tp78.fsf@tsdye.online> <87czeft1dd.fsf@tsdye.online> Date: Sat, 09 Jul 2022 11:10:29 +0000 In-Reply-To: <87czeft1dd.fsf@tsdye.online> (Thomas S. Dye's message of "Fri, 08 Jul 2022 17:23:58 -1000") Message-ID: <87k08m8rtm.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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, 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=1657365253; 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=a/M8/mFssXjcszXPQK4Ivt8ftIm3DaBMTO18gZ1oqoQ=; b=I9DVHsZmzE4yla00Ap7zPGrutWH/2GDJMrauxG5ChmgF2KxNuTpHcK7ZqUptdxZNRAblVT tLZXKkYRCrdpHKYlj/nw6elWJWcLq5wldZC7AUuHoLxnul5HeHjeH9jhOwc1FGIfDKKlAJ 0pLIdM6LqhTtuLuTtDWjaPcEs2CNATaCfvK90oSIqF3LNvqhOGY9ZvSrVvfoqWXdxkGdg0 HDv8NLTkyCAmIQZIrC7vFEw8plqhrYu9bXHPa+ogdqXnZM64zrb747KhFlIu0ChdWr7Udt T/ABt/4yzht0vr92ps/yGxhRv3R90DWrmdktwf8XcDVPDlIENZXsdg786uHZ7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657365253; a=rsa-sha256; cv=none; b=h5olVnhsn1I6cuYijtypFNkYQygn/m0VAR2K2I7SXgGEF2sz9n4K9osZKz7jcrSFa3LIJJ s8VJ28kpc3WUtDOS7W89xVVdsuylG1FfxUYBR3gSaKYYG1jPhaPQXxl6rb8HQSSss22WzX /HJtzosH++iXpLslyt1pK12EAJQj3W3JeWzPdNQzrFk7LWrxnJanOtQF2dUliZfQr5ojc5 LPGTAQgVQU3+kca/IGhu9svYl6jslQpcZOxrzhVXJab4U3OSZUQf9F3SUkLh5PSxyvjwjR jYpMm6ENItqDKXodX/Y8xcplGofbXx8pZWNwNylWH3qUKNCzlYqnREtlKj/UgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HOS7xdZn; 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=HOS7xdZn; 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: C351533F54 X-Spam-Score: -1.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: Dak3rEwut1HJ Hi Thomas, Thomas S. Dye writes: > Yes, what I called Babel you call org-babel. I don't know if the Lua > handler of source blocks in Org might be useful for someone interested > to write Lua extensions to LaTeX. I'm writing a package for LuaLaTeX in Org[1] using lua code blocks, and everything works fine. But if you mean to evaluate these blocks from Org, it wouldn't really make sense because LuaTeX uses its own Lua interpreter and that's where the code should be evaluated. For example, in LuaTeX you should use tex.print or tex.sprint to print a result in LaTeX, instead of 'print'. A simple example to create a counter using Lua: \newcommand{\mydefcounter}[2]{{\directlua{#1 = #2}}} \newcommand{\mycounter}[2]{\directlua{% function count () #1 = #1 + #2 tex.print (#1) end count() }} \mydefcounter{foo}{0} \mycounter{foo}{1} \mycounter{foo}{1} \mycounter{foo}{1} You might want to take a look at the chickenize package, which includes loads of examples and is very instructive. https://www.ctan.org/pkg/chickenize [1] btw, I thought I was the only one to write a LaTeX package in Org, instead of the 'official' LaTeX docstrip suite (doing it in Org is infinitely more comfortable!), but I've seen that the wallcalendar package has also taken the unorthodox route, with all source code and documentation in Org :-): https://github.com/profound-labs/wallcalendar/blob/master/Makefile Best regards, Juan Manuel