From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8IYFJBG/WmDzBgAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 04:24:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sKiqHxG/WmDlLAAAbx9fmQ (envelope-from ) for ; Wed, 24 Mar 2021 04:24:49 +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 EFC60138D1 for ; Wed, 24 Mar 2021 05:24:48 +0100 (CET) Received: from localhost ([::1]:50672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOv4Z-0006g7-GC for larch@yhetil.org; Wed, 24 Mar 2021 00:24:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOv3x-0006fi-8B for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 00:24:09 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:40721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOv3v-0001ZU-FR for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 00:24:08 -0400 Received: by mail-pl1-x62b.google.com with SMTP id h8so240664plt.7 for ; Tue, 23 Mar 2021 21:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=nc+olIo7vzHSMemEIp1U/6FbFqCwqxQkFdW1h/DvoWg=; b=l7c0GJQ3ywbmKS/U562iVEEEuxLjARQZYiA9asqVSHImQ4prp3wYVX67IdbPcVb6Kv ag2ouisy98EhtdZ5ENY+x6V1wBRr8PKCFhCanXkUI4+Grt6ri51OJFQb5BzqF02Cs1No VsfT8o5Q2hxwB5Am1wMa51GmjqPuVMkTH2i6OHB3G9iS9eROMKmeALft4Wuh93IxSXlT Xgvb+X/VESq36+xqCTzoL43IBgwUXCtQmxnO6wi5q5Jvpj1OQIOI6gpqP94SkhCccFFb xB5vzjrFKlKa/QUM/bj6J2D1PZMh/F0OmDYF7C32LSbBOTTP3ZRtRfGEmNjGjRTHnS75 HL/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=nc+olIo7vzHSMemEIp1U/6FbFqCwqxQkFdW1h/DvoWg=; b=j0kWXD1blLwz3o8JQNvf+N4FMH7AR1MWruhlnnJ95a0pu8uDLP/sXm7w3KecEFxcYt COeiUbDHd3AGw81Sp7ML8IHnj+wR1iY5WggoLNUYT2oq3VJBycz17WY2VtnsONcP+4O9 ZyaoECtOrzVuvRlUfcTW7JIuLrvRzTXT9wNiyDa9/w2qHzy1XLWy75/sutqkNEyDBlns O5yn0RRmPdwkj8u4izG5/bWCUs6KzHXIpCLeI+/eOHfEboaeX2RyST/CPrmUN6V8NeJH 1gri/TU0K3Votbxcah8jPhLaagXPro088wtnDdz7i9QbAN6kNNU0z4K/X3fOTkQJmE6p TIUQ== X-Gm-Message-State: AOAM533+2nTDb+j7m1815khOSlcNFi0b4Ix0HwScIpL+7MZ1JexCcqFW osDcGZ5vD0avvNn4DcwiWqE= X-Google-Smtp-Source: ABdhPJxFrNrYsXK/8613MyZWdOEzwNqBk0GXe8WCYugZZS7N2TfVADpd8c7IUNW6zA+/u2yGtWifbQ== X-Received: by 2002:a17:902:9886:b029:e6:2bc6:b74 with SMTP id s6-20020a1709029886b02900e62bc60b74mr1701810plp.13.1616559845615; Tue, 23 Mar 2021 21:24:05 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id c12sm727376pfp.17.2021.03.23.21.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 21:24:05 -0700 (PDT) References: User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: Michael Gauland Subject: Re: "Org" source blocks and minted In-reply-to: Message-ID: <87k0pxyyam.fsf@gmail.com> Date: Wed, 24 Mar 2021 12:24:01 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x62b.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 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: emacs-orgmode@gnu.org 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=1616559889; 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=nc+olIo7vzHSMemEIp1U/6FbFqCwqxQkFdW1h/DvoWg=; b=pMKmUOi8IML3Aqj5UklaR/mNbQB9BXao/e3ADqxkosWj4LdWufm3/v6oHQ+MxLNslJLk6T Jt3XngFtAvACn9AxSP0ozjhsQDLlT9qFEcOuQ7Kkut9jB0Pik7fEd7Ckh4nCtK/V2qFHj9 h4+w2tV3lx0dObLp+t2DLAZ34HqrpmV5ipTo4rrcU6XKkTxTLiZI9xk4A6QwwApNr9fyMu AhCJTeXMcXdIyX5vTmj1oEZChaLw7l+d/L6wSXz6LPfeyPKsaotys/Pu0uurFC8SuZ+TEJ itXpp1oVhrCIwTakbRPD8kMgTq+fl8KryqWD/e8S4+PrXdfh9eo1lrsoC1pSVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616559889; a=rsa-sha256; cv=none; b=gGa/K0+fSuwhPbppLEK4YLYBrZM2GZAFiOnb+P4I4m4hZ0la+Wzo6ENF7uiynV3ixyPXsg SYX5az/C6kfUtk8KxMsOsmxQ1t7NOvrdKQgZ5n2yurzpXa5f1TNBGzSNrfZA+chRlFXIXo hfviT7eUH08niRBMoAoZvJeBLgyGb6r2Va4sgg+ylbiPT1UnfC5Z+8IpUDHuaHk/YF34Zy kzswD61xFL637YY+ojq5oidb20vpRlQyn5UDmiw6x554vmqL4IVuVtgonqVLThSmAXjbLx oWQ8odgA11iw3OZFmCUGBTB1Nvf2tx3vwucQs3ZKdFsbiAkiLc8sOR4RZQj9ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=l7c0GJQ3; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=l7c0GJQ3; 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: EFC60138D1 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: Dns+yX6UvaDY Hi Michael, > I want to include an "org" source block in a document as an example, and > have it formatted with minted. > 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 :) -- Timothy