From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aOwRMMrLXWALxAAAgWs5BA (envelope-from ) for ; Fri, 26 Mar 2021 12:55:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WIUWKsrLXWDdEwAA1q6Kng (envelope-from ) for ; Fri, 26 Mar 2021 11:55:54 +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 E9F492581E for ; Fri, 26 Mar 2021 12:55:53 +0100 (CET) Received: from localhost ([::1]:38728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPl4D-0006OJ-4w for larch@yhetil.org; Fri, 26 Mar 2021 07:55:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPl3e-0006O3-P1 for emacs-orgmode@gnu.org; Fri, 26 Mar 2021 07:55:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPl3Y-0005zn-K4 for emacs-orgmode@gnu.org; Fri, 26 Mar 2021 07:55:18 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 00B522400FE for ; Fri, 26 Mar 2021 12:55:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1616759707; bh=OSX7f2mF79yGl4ADQjvEZmEjw64yEGNZWAtkAjT+9NU=; h=From:To:Cc:Subject:Date:From; b=BYB0hRb3T5/Oh9i2e/lnhZ6EjHhg08pvEMTcw1hWjF1M3m90pN3KLYOIn9mTr7yLc oz8tPbntMlCH3fAXTM5H0IdSWwEESryZasm0cbdJHHC/dibqOowJH9/nH5mt3MENTK 5M5IvIp4ECAzWLcHoZXCaXbBB/xJIBbtOWEo39zG1n8Dn4yZTA4xQ+uokzeV4xNGyF u6rMeRKd3e1TQtQsaMfHjXTtrk4uTF4hzKGtnwR7VN5sLcQzx4AQYJzN7xndlmKdY8 wVCi9kWFICjZTooowwm90sBN8QKy4z8R6a0C+0XuIJYgGrrTTHcl9p/sSMsCm4fnNV lsC4PHazsFTIQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F6L4p0dmwz6tmH; Fri, 26 Mar 2021 12:55:05 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Timothy Subject: Re: "Org" source blocks and minted References: <87k0pxyyam.fsf@gmail.com> Date: Fri, 26 Mar 2021 12:55:05 +0100 In-Reply-To: <87k0pxyyam.fsf@gmail.com> (Timothy's message of "Wed, 24 Mar 2021 12:24:01 +0800") Message-ID: <878s6adt9i.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, 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=1616759754; 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=lCGwCgUcwa69TArsfM6KjegFjG5DQzZT3NrypS7llSQ=; b=gvl3gOaCl+Lb9Q4DsRFp8qC3ZsmFU9QziqVknOeMbHQnUHEC3fPfAhos4J/HDSnbrMU0ri ZlkA7IcHHWdChSbMsGjBaRUi2awMsiQIzAOIr12LVwXFEAIVXaMcdaJohC2qeZT1m81DCs iRF8ECvFBiDWV1FcSdLtHOVO6dZtjt9L3Bb2FxUQzFGXPVX1vzXD9k9v1nUpWMfOt1VgEc uoOu8cBJipJTVtYhZN3PlliA/UBoLad1K11jDEQGdb1o0Q1LAh271iLyhXRbEY5WqtxHy7 HCvK2VrCIm0/38UMixYEyqmyb9Bo0c8EhTbi82epdHkV+Qgf6tQiuTeJcKjodw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616759754; a=rsa-sha256; cv=none; b=VGg3Ww9lSTjZXLsQsaCpbbAZ3jRoylFNV5SZWaVgeRuKDjEhVecS4Jwt8UcD5fjQxtusqG fEJFPWC6ycSbzdS+wQRKxFvq+jLCHU7CAHeyWDMkucV0uko/mAIZtAGUsJnK/UpsNoX22t sswb0feAFSJAdBpYpulXOxACvRjMAkYJNyFsAbdbJvybOYjpK+Q2bQIHQvxhhtKzbVHimw SABxCxWB+Wm+9cUIUz2rMSfzq5xcWSwcNbHYEwgV7zdD1fwur4cqWoaN8rSDhfp3G0X7uW UVJp2xQUyQ9pZtHMUmbUgQ96zoYBTGWhhsvoFuEgGle5BPh3W3LZKZFaG065Og== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BYB0hRb3; 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=BYB0hRb3; 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: E9F492581E X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: RiB+GkP8ucPG 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 :)