From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +nu1I1R/ZWA4EAAAgWs5BA (envelope-from ) for ; Thu, 01 Apr 2021 10:07:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +IGCHFR/ZWAQSQAAB5/wlQ (envelope-from ) for ; Thu, 01 Apr 2021 08:07:48 +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 BA3A0B4A8 for ; Thu, 1 Apr 2021 10:07:47 +0200 (CEST) Received: from localhost ([::1]:49240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRsMk-0000Da-Tl for larch@yhetil.org; Thu, 01 Apr 2021 04:07:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRsM9-0000CN-Dk for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 04:07:09 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:45757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRsM6-0003ap-OE for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 04:07:09 -0400 Received: by mail-pg1-x532.google.com with SMTP id v10so1043827pgs.12 for ; Thu, 01 Apr 2021 01:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Gx2yv7km2TBY7bR3B7UzLXkNPA1bzbfSw0dPcTf7JJE=; b=Cupbtco9IxhBfgQMgkBNwA2WiT8u2+XaYu6bSa5PzFWB2ZAEkncAfg8MANu03xBenB fnFIA0CcrPpAzRHLm+EcrqzkG71rAu79WRrxk6DkTpgtVFQ8koGVuZVY1ZONbPx3fFTy aBAzDavAjmZ2FM2rYhM0rqv091vXyYSEf3gtNPvUhvm6+wD5jW17e6A2JsIiJSjaegKv +3D9bHtG3bcYJRU0xYasLlqFZQNKl+SNF9xowS6ZhVmHmV2KWdfWc1PdTH/8aekR96xZ 64bI94akc/PM9VcCkYi6o2o7m+/9+7vzxg1bGFPq8ArmlebV/gG3b25zgpmQfb1s5KND L+6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Gx2yv7km2TBY7bR3B7UzLXkNPA1bzbfSw0dPcTf7JJE=; b=rvX9yxXEEzqNJnC+6TIUN0atnFyJ5iNmASuPGqGhBTg3N+7g+042EIzHGKJOT4bRSi tLoWKn7W4tUzUm+WOqN24FcF5u6z00TsUPd4AtHwBeNxwKhl1bGBIUHwTKuMz1Ai2WUa 5BSMcqxX/5U74A0NwO0kvi2Y74V3Qxbrrfv0aofyCvoi097CltkXpDxkT8RQlzxBfdkv zwJ5EfgM9iF2XTQMPjJNly+Kv4Ks36zTTGS0o6hXgaC3ospOCv9XinnpgGDbNKDJxCbe IwuHv9Jho9MsxZmfCWAxgd5nOMKgHJC4UgFvyXlOL6cN1fqQXQroOOXTd3nHis+RykbD aC1g== X-Gm-Message-State: AOAM532l8IaRmda7s/lXRXxQWl064Z5rwo05HgBUzsAN5f+sNupTuwtn x6r/lpfxNbJ4DeDqZcVOJzoPqAmSA2Y= X-Google-Smtp-Source: ABdhPJxHNG8ai5FudVlXSxgTOc2SxCL0aAnzvBVX2w3rgGyrrrqsk1Kwiv5uga+H3/5B4Kii/JGiOw== X-Received: by 2002:a63:fd45:: with SMTP id m5mr6525551pgj.264.1617264424146; Thu, 01 Apr 2021 01:07:04 -0700 (PDT) Received: from [192.168.1.131] (222-154-27-167-vdsl.sparkbb.co.nz. [222.154.27.167]) by smtp.gmail.com with ESMTPSA id s76sm4613334pfc.110.2021.04.01.01.07.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Apr 2021 01:07:03 -0700 (PDT) Subject: Re: "Org" source blocks and minted To: emacs-orgmode@gnu.org References: <87k0pxyyam.fsf@gmail.com> <878s6adt9i.fsf@posteo.net> From: Michael Gauland Message-ID: <82ce0f04-bf55-94b6-73a2-52010bbaa2b0@gmail.com> Date: Thu, 1 Apr 2021 21:07:00 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <878s6adt9i.fsf@posteo.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=mikelygee@gmail.com; helo=mail-pg1-x532.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1617264467; 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: 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=Gx2yv7km2TBY7bR3B7UzLXkNPA1bzbfSw0dPcTf7JJE=; b=nvKlL3IEdtj8YbW9GdPlZQrqgfj1qI6+YBJDIhB5RZnyDoIGJimSCI3NxGG1QefdZ211jR QfT/nmxBKwmIXeM+K/IFQPA1rSDEYosuyCkFCnTJk2PZEtnjbqkFJPmERST7NuNnCRDlWv YOWnNgDV0hHIx+2J9iHMjGA50ZYdnVzOJaH7EURKqYSTUmFCydIzIt3V2t85ByhNjxPm8q +FyFOQYQHZ4hF47LF3bG/NRLOD9BI+wuNCbIXe1EhaqKu5MP/Z86H6Te84eYg1Go4k/FsW cPWErwdgdIzDLzfVuTFYe2t1pqr0pA1TlwhiN7I8emSiPkW4wK7b1z0FKoNTaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617264467; a=rsa-sha256; cv=none; b=Y1yveWZ/+5oXx3r5uTaNhttHh6nhODfzy6Otzr4ci8ArTmCn+N6rpftP29JMe5Syj9uMUL v1MAToShCzAk9QISgqH7pMdTkuUOymJHeZgLr/ZtWof3gU/s+HE5PdYyfhmc9iiQgiIAhR mtiV47LT9O3E/2iuKEwrNI4yYcZj3KDJ7cMXxoqdj3JriYgdFCpv8hvHbEtdrRQBT6xOKk v/lH+x3qM5+qtoNVFUlLtdo5BiS1YVaa8SdbbamanrXUnKnsUU9MBrkkpPECnDs4DCAJ9p PFOibg2Jjn1MNKVeSYH+uxl6ZfTqu2T01604+fUJ8Zu+kB3z3zjhL6NNCAegyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Cupbtco9; dmarc=pass (policy=none) header.from=gmail.com; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Cupbtco9; dmarc=pass (policy=none) header.from=gmail.com; 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: BA3A0B4A8 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: QNpi2Kb8fZzr Yes, this looks very promising. I'm looking forward to playing with it when I have more time. On 27/03/21 12:55 am, Juan Manuel MacĂ­as wrote: > Hi Timothy, > > I really like your approach. And it is org/emacscentric! Minted has > never quite convinced me, and gives me some trouble with certain > packages in LuaLaTeX that I have not been able to solve. Thank you for > this promising alternative. > > Best regards, > > Juan Manuel > > Timothy writes: > >> Juan mentioned an Org lexer exists, but another approach that may be of >> interest is using Emacs' own font-lock. I wrote a package that's like >> HTMLize but works with LaTeX and currently have it sitting in my config. >> >> I plan on submitting a patch to Org at some point on this, but for now: >> - https://github.com/tecosaur/engrave-faces >> - https://tecosaur.github.io/emacs-config/config.html#pretty-code-blocks >> >> Sample output: all the code blocks in >> https://tecosaur.github.io/emacs-config/config.pdf >> >> Since this uses Emacs' font-lock, this means that you can use any >> language that you have a syntax-highlighting-mode for :) >