From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0GGPOeJvlGN5QgEAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 12:39:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WHm+OOJvlGO3UAAAG6o9tA (envelope-from ) for ; Sat, 10 Dec 2022 12:39:14 +0100 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 5CC32A818 for ; Sat, 10 Dec 2022 12:39:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3yBb-0003hU-29; Sat, 10 Dec 2022 06:38:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3yBO-0003en-Om for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 06:38:23 -0500 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3yBN-0008MY-0E for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 06:38:18 -0500 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-143ffc8c2b2so2868349fac.2 for ; Sat, 10 Dec 2022 03:38:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=WBqp4IT5nPkcUnjPjEnEfE9PvnPgGzzqiUNzlit/Vgk=; b=I3AbVEuCIbeqT3J59crH75cJGVHefgaA0nE9JPd/4lnqtwdEfL/KnCPdu08fYfiFFc CEZjQu0UxuIyw02D3ivENYtsHe+MIc2BiJCldJDaQNMnUR2A0BlsEGRZRJOfqgIBHDDu d2bKNDP8OVRxRrR0fB80MIQ/l32xHbcYdkIWPUnU0T5Sl9w0GTgmqYSKdgxekQtQ4Ia8 fpC3GzYye1kPwHOqDm3j/yNCFxAAMGgFkycH54wnSLBP68MR5WG7md7hgNJ9zlTtvjij dyfaKI3RiN1WRyab1uoJReAwC+ItDPK/ZTE1i4p8sPykAaBtYjL8IycgKhVyg/U9gjcp 6VIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WBqp4IT5nPkcUnjPjEnEfE9PvnPgGzzqiUNzlit/Vgk=; b=PUZKoB+KSdsaZkYhSD8uiKCcTWX8IPTuj5OTBbn0h5QmQBccT8FtTxNL6S0ydRTECZ hOSKce3JBYuSwZMFI5tsMooy1ZTcjCOdJrn685dkVoLxnZc9WFJFLsupBHJnzEdSagUX 1x+VtFCXjEgLd2nYKg6C5uOhFVpAc0/fvCc9MG4kDacDTkGeCwNMb2Ok29dCTlcg3ehr ZcvxSFnZvwxxaXNZNPaZWO92AnZDA/6vkKqhZtIbvKAoJRC5wnYxaNUtzyFTuNVnLRxg YARNbGKxUFD32BOODeOaB8yT3sx3o69b63HhO6oLOPr/DjUzMecbvpB0aos2SK5CiZxE x8Zw== X-Gm-Message-State: ANoB5pnvJrnSwgA6bxexldl//F7X2Ww/UDr1yzKLWf0o4WT+e9F4pnfa wKbASegcu3/bYhAf2FXCRC80l5ZPcuHdNV5UItl6i5AV83MnRQ== X-Google-Smtp-Source: AA0mqf7tgO3uXVzI7h3DumoH4W6hf3sDlQhPBhqRabv6HnM8R/lrG6TG7GzPXrwFB1OHxI8C+9N8HmdnB0S6qkty+5w= X-Received: by 2002:a05:6870:4c0c:b0:143:ac7c:b290 with SMTP id pk12-20020a0568704c0c00b00143ac7cb290mr28160846oab.216.1670672295714; Sat, 10 Dec 2022 03:38:15 -0800 (PST) MIME-Version: 1.0 From: Pedro Andres Aranda Gutierrez Date: Sat, 10 Dec 2022 12:37:49 +0100 Message-ID: Subject: LaTeX src block export To: Org Mode List Content-Type: multipart/alternative; boundary="000000000000b8e65205ef77b48d" Received-SPF: pass client-ip=2001:4860:4864:20::2c; envelope-from=paaguti@gmail.com; helo=mail-oa1-x2c.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, HTML_MESSAGE=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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670672354; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WBqp4IT5nPkcUnjPjEnEfE9PvnPgGzzqiUNzlit/Vgk=; b=KwrazDENV/XSHy1moQutNo9ETAiMn2oa4IfMsxrwar/jWmmHW8u3RTfZXcrPKF6zmLk4PH fKh8yTlN2k6wBXxmsl0q5aO683lLuXUZoBV9qcXMAHAJRM05yXfhyBQrl4IGmIAaL5oUts 20bPc3b5t+qql0Ln4jLwu449QwEE8WW/gDrE/f+lx2yQjcXqn+XRMehpI9gHgFdZoOMszX 25y6cKjiFyMTh3KTZq1radAlgWZzmS/W8ZDu9m5YVoD9XrsrFNw45JSynn9gP2l0Jg6J9J I53dIrdqpuesoALDNgeLteMOqwO2A01MNZnF/gYkDXQDbX4i3tYKk1iYCnvZig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=I3AbVEuC; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670672354; a=rsa-sha256; cv=none; b=fwOFA8Fv9NTPaBxaQUAwnD/7TIUBri3YC8IgDz7I9JP/4PEcAqS+t5QByCq/90XQeDjKMN wa96Ha/CYg+2OtdjllJ9XXygXOjJ2QUR5/8/LWBgsvzNtBOVLEoOGn8SacZdYkiMAQcFBj Ags7z5LR/nbUqjq7FYCiiWqPs/Fpb6XYp0RV7eeWfs2jInOytoKVWQoNwzk+2b+5d37nOb mDl0Bhs52a/G8HB9xiAb/BV23VXMU8lHUCAXE8PlMD/Z/IpDou+7pnulES8bUx58PzBofa ZRfn3iMGn70Jwi5qhzM+eo1x1uBwDATQZYX8ipoKZZFdxdiwbVdAcA5Sx7ljXA== X-Migadu-Spam-Score: -10.48 X-Spam-Score: -10.48 X-Migadu-Queue-Id: 5CC32A818 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=I3AbVEuC; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: PUiNzwJN2qm4 --000000000000b8e65205ef77b48d Content-Type: text/plain; charset="UTF-8" Hi I was wondering if there is a way to control which parameters are exported when translating a src block to LaTeX in a document-wide fashion. I.e. with a directive at the beginning of the .org file. The background: I have 'listings' to export src and example blocks and use ``` #+LATEX_HEADER: \\usepackage{upquote} #+LATEX_HEADER: \\RequirePackage{fancyvrb} #+LATEX_HEADER: \\DefineVerbatimEnvironment{verbatim}{Verbatim}{fontsize=\footnotesize} #+LATEX_HEADER: \\DefineVerbatimEnvironment{lstlisting}{Verbatim}{fontsize=\scriptsize} ``` because this greatly improves the copy-and-paste behaviour of my PDFs. Now, when exporting to laTeX, there are some extra parameters included, which are not supported by fancyvrb. namely `language=` and `caption.*= (take .* as a regexp)` I have included a filter to get rid of the offending parameters in my .emacs.d org configuration, but this is difficult to port to other emacs setups (e.g. other co-workers). Thanks, /PA -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000b8e65205ef77b48d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi
=
I was wondering if there is a way to control which parameter= s are exported when translating a src block to LaTeX in a document-wide fas= hion. I.e. with a directive at the beginning of the .org file.
The background:

I have 'listings&= #39; to export src and example blocks and use
```
=
#+LATEX_HEADER: \\usepackage{upquote}
#+LATEX_HEADER: \\Requ= irePackage{fancyvrb}
#+LATEX_HEADER: \\DefineVerbatimEnvironment{= verbatim}{Verbatim}{fontsize=3D\footnotesize}
#+LATEX_HEADER:= \\DefineVerbatimEnvironment{lstlisting}{Verbatim}{fontsize=3D\scriptsize}<= /div>
```
because this greatly improves the copy-and-pa= ste behaviour of my PDFs. Now, when exporting to laTeX, there are some extr= a parameters included, which are not supported by fancyvrb. namely
`language=3D`
and=C2=A0
`caption.*=3D (take .* as a r= egexp)`

I have included a filter to get rid of the= offending parameters in my .emacs.d org configuration, but this is difficu= lt to port to other emacs setups (e.g. other co-workers).

Thanks, /PA
--
=
Fragen sind nicht da um be= antwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should r= un a leader-deposed hook here, but we can't yet

--000000000000b8e65205ef77b48d--