From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sMsYChflG2CfMQAA0tVLHw (envelope-from ) for ; Thu, 04 Feb 2021 12:14:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eNA5BRflG2ATVQAAbx9fmQ (envelope-from ) for ; Thu, 04 Feb 2021 12:14:15 +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 9571B94029C for ; Thu, 4 Feb 2021 12:14:14 +0000 (UTC) Received: from localhost ([::1]:36104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7dWX-0002b5-H8 for larch@yhetil.org; Thu, 04 Feb 2021 07:14:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7dVq-0002aR-Lh for emacs-orgmode@gnu.org; Thu, 04 Feb 2021 07:13:30 -0500 Received: from mout01.posteo.de ([185.67.36.65]:57932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7dVn-0002eW-9G for emacs-orgmode@gnu.org; Thu, 04 Feb 2021 07:13:30 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 13E71160061 for ; Thu, 4 Feb 2021 13:13:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1612440803; bh=pGokY5BW024mU7M3KGfzlwUcwsV/L3aYi1tTOTyT8M8=; h=From:To:Cc:Subject:Date:From; b=ktd5JsGrxAZVw+NtmmBlaLpinp+PWslxFyDQLpcIPbAImeaqp2NAccXdJT0Zmjtw5 NAajOCx3HIOlhvYo4IwgLyrqbT62U93yj4Nig25FX3+Apmrme+7ZdiCt5Gw81VZGtX rxIrs8t9zkfgpsMO3+ffbfmJLv8rpjq41EgVJPU3LNNdh4pNPEfoJGCp5KR6xXfej9 2eWLkN5uc2S2Q3cqnibBcjzqMW+m/x6wIwvCnYLY0MHIbGkYGKPaptUV94/yaDPZR2 HGvQiEossC8Av4+aykHFEGrGsGFK4oR71XEcBhrp1s/z2FXoHNljNEPzq2wlf1BFCq X/AHTxCK1Colw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DWcry2Wjtz9rxM; Thu, 4 Feb 2021 13:13:22 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Luca Ferrari Subject: Re: emphasizing source code words References: <87v9bcndzc.fsf@gmail.com> Date: Thu, 04 Feb 2021 13:13:21 +0100 In-Reply-To: (Luca Ferrari's message of "Thu, 4 Feb 2021 12:38:36 +0100") Message-ID: <877dnouj32.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.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, 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 X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ktd5JsGr; 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: 9571B94029C X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: aSOmpRGv549t Hi Luca Luca Ferrari writes: > Thanks, but stil Im not able to figure it out. I've searched thru the > org documentation without any luck. > > Luca To use the minted package as backend (https://www.ctan.org/pkg/minted), I have in my Emacs: (setq org-latex-listings 'minted) (setq org-latex-minted-options '(("frame" "lines") ("linenos=true") ("breaklines"))) You also need to install the Python pigments library on your OS. In Arch (in my case) is the python-pygments package. And you have to make sure that when you export to LaTeX it always compiles with the -shell-escape option. For example: (setq org-latex-pdf-process '("lualatex -shell-escape -interaction nonstopmode -output-directory %o %f" "lualatex -shell-escape -interaction nonstopmode -output-directory %o %f" "lualatex -shell-escape -interaction nonstopmode -output-directory %o %f")) Lastly, in Org docs you need of course to load the minted package: #+LaTeX_HEADER: \usepackage{minted} You can see how the highlighting looks like in this post from my blog (in Spanish): under the title there is a button to download the entry in PDF version: https://lunotipia.juanmanuelmacias.com/evitar_funcion_lua.html Finally, you may be interested in this new package that TEC has written: https://www.reddit.com/r/emacs/comments/lbkmmz/the_best_syntax_highlighting_in_a_pdf_youll_see_a/ Best regards, Juan Manuel