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 cLj0ALC9WmAAKQAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 04:18:56 +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 WFtGOK+9WmDDJAAAbx9fmQ (envelope-from ) for ; Wed, 24 Mar 2021 04:18:55 +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 29A49137DC for ; Wed, 24 Mar 2021 05:18:55 +0100 (CET) Received: from localhost ([::1]:44722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOuyr-0004DZ-RU for larch@yhetil.org; Wed, 24 Mar 2021 00:18:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOuyU-0004D4-5P for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 00:18:30 -0400 Received: from mout02.posteo.de ([185.67.36.66]:38651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOuyS-0006WK-1F for emacs-orgmode@gnu.org; Wed, 24 Mar 2021 00:18:29 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 5B43524016E for ; Wed, 24 Mar 2021 05:18:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1616559503; bh=9rVRKK5JeaHx4zNzlkV0gTYd6l03ea1aYntwIYiDTwY=; h=From:To:Cc:Subject:Date:From; b=S9xK/0s+MUjrBwZJImBSZU7DgiXcX0Kg/3wMTz0x9R6Wt5qd9oZ1X0OjPiz7BZUYm 34MjYSlmXH0ibsIaqoewH6a3jXedFtywySSBPZh47yYB+uGkYRC6olFOS1t+Lb9otO Q0F15IhQ1HeY/NUFzt0yTKMHAG3tiWi1PTM1B/rycibnz0Zz2mZvPWDgQ7s4GIMrEA YBEeTFKFkOx66PO33ZpnLte1n/dQydDKiGmeaflxoBx3ujA3LwXSd67TqhUZmOLTps M4vouAA9DyZlRzRHi+gIS9ehoxk26GEuHBe/yYPC8hvuAFiz2a6VjmHKqf7NB3/W/7 15bvDKuMzU2bQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F4w2k4kPmz9rxL; Wed, 24 Mar 2021 05:18:22 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Michael Gauland Subject: Re: "Org" source blocks and minted References: Date: Wed, 24 Mar 2021 05:18:21 +0100 In-Reply-To: (Michael Gauland's message of "Wed, 24 Mar 2021 14:33:13 +1300") Message-ID: <87r1k5gp6a.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (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: -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 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=1616559535; 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=h94w81Lx3rrvz7iBSBMZ/WgdrK3ioIRxh08SIgHTsfg=; b=am3qnfrD7PbkUc83l9hSmz/fMillArDtkbeKB/+xU7hbmuJhQXtukVucJaXEORtA8KugHZ /cVfRGj7r9GeGO6AKJ3O2B/sEHHbzwrvqmUN6pOaWL4YqSyJORtpCzr1l7GwrZgm3q5UJt X8bFwXu/j8mqi80tiGMMPJQ1mNHa7yiVG8N2mvoCSFw2ZA6m4+mPvtuxM5YrT/efeSjglK g0bo/yhHKGy+irGoBszLVEd4qV6byejQf0Cmz4swKga5poA8zhDZBj+CXArTyFDvIGWIp9 LOhBbDV4BTyjzXT583qAWk+i5FjLDBHh58cx9Tec/57f+wP7R3FBkzzZ5tPWqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616559535; a=rsa-sha256; cv=none; b=uX4EEneOfgkUoXKtYFXaXUApWneEa2SiLoZjk58VOE+8FpDnf8brbNv5obkXYNioJw6oDE xYse8wtwuSk0QeKrTrU1fGse98b4Qpjso+kg760QxeJ4BrfH1bBHfck4yu5NhOuhEal0+1 BpOuIbsuWhlvTYxjfPPky8fYpWaK0z/vGX75nXrdnnAjDMxkdI7GqhAJNwNsbWywpacy2o A7XXDpqNsMsq2stV+CzYrocJUXLsv5fKHkOAg/5WZlNFxkKpqpEd/7ziWPrP2S4on0Aw2Q h5jL9+4hBn7uH6e7O1+IWS1QXC+xjNI0e1nMm9qHFoY5DYTgPoTpLCcqHyIU8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="S9xK/0s+"; 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-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="S9xK/0s+"; 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: 29A49137DC X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: f5/4YbLNRN1m Hi Mike, Michael Gauland writes: > I want to include an "org" source block in a document as an example, > and have it formatted with minted. Unfortunately, minted doesn't seem > to recognize "org" as a language,and the block is missing in the > resulting PDF. For the moment, I've changed this to a "text" source > block, but it would be nice to have syntax highlighting in the export. > > Have any of you done this, or something similar? > > Kind regards, > Mike > You can write your own pygments lexer: https://pygments.org/docs/lexerdevelopment But it seems that someone already did the work of writing a lexer for Org Mode: https://github.com/or/pygments-orgmode-lexer Best regards, Juan Manuel