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 4KJWJgWx9F89NAAA0tVLHw (envelope-from ) for ; Tue, 05 Jan 2021 18:33:41 +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 UKwdIgWx9F9hOgAAbx9fmQ (envelope-from ) for ; Tue, 05 Jan 2021 18:33:41 +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 185919402C8 for ; Tue, 5 Jan 2021 18:33:40 +0000 (UTC) Received: from localhost ([::1]:53112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwr9H-000774-TA for larch@yhetil.org; Tue, 05 Jan 2021 13:33:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwr8r-00072O-Hq for emacs-orgmode@gnu.org; Tue, 05 Jan 2021 13:33:13 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:44917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwr8p-00044o-SD for emacs-orgmode@gnu.org; Tue, 05 Jan 2021 13:33:13 -0500 Received: by mail-wr1-x434.google.com with SMTP id w5so137553wrm.11 for ; Tue, 05 Jan 2021 10:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=xaJWugSzGlpzQIuBAnRdnqQM3rPTU+qRev1iO1p331Y=; b=VY8Mv0P7K1/C72PL1NWKHT2ndmLxF8azHSzKyM6ojFnfqUZ9KOEO1taYyD5NCydUg8 sXoQj28SpwUKqxLaxd1UviXOaCfAB192Y6jFH1NKQkGADteBw+kxgyWstp23VAOXVr3u q7i5iz8pSDiy6aUevMS12bqoK1Ks3y+ATqZFsG4U4igRXvRfwrEugwlYnyQ24WJwCxci latUvRATpNPH8c7eYaA87tHFVP2N9w7utH4ohTMX67MdyhEeLHCyILDE2mOZGLDByKZ6 vOyrEIUJS2ySPSUVxDQxfiU2dcyEIZfi8KJ+kGgCQYe+fyys7DiT26n/TR2VwqsNuhIh 76uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=xaJWugSzGlpzQIuBAnRdnqQM3rPTU+qRev1iO1p331Y=; b=I5pY8C17wJ8fEDuyxOQtF+x6qQevDtLixvwu92+nYWoLmuQnFUJnN6YntGkf3SPCpv WHAZuoSXbzcLsxp/FsnLS9ojE97ZP8F11vdOpNMfUNdE9+MOuCZLoeFan4jrvd2+xQx3 fiFFqlxq22ifbGigKIEZ3+L7mKYSuIqkDVAWbVarmpX9/FV9mKnMXj6OiP7y4nRoIK7m 9xbTXRlYmqt+G0xlc+ceYxQws9DmTp+HwHUO4HxYWWUGncCyXdj9RLDRKLmlHJd0952q nJ7kvcAQIAba9H16EriVQ49/WgfI7MYIqZ4gNri3va35Kk2480GTqnPFr3lKsr7foUMj DSlg== X-Gm-Message-State: AOAM531mp+/ZXZphLtDyA5KvlYX6oQzxIptAvf8IB/TXgKor2dvJ65ty iHELgSzMi5rtoU+6wsi3CriUz5Qgyow= X-Google-Smtp-Source: ABdhPJzU8hG4naYLbsUfYNPonklS1AMaIxM/0CZGWDOSkjwISZ43B6pGWeQVfhd2dXpkHKHKio+S/g== X-Received: by 2002:a5d:5385:: with SMTP id d5mr845717wrv.384.1609871589585; Tue, 05 Jan 2021 10:33:09 -0800 (PST) Received: from vdwege.eu (vdwege.eu. [141.105.121.30]) by smtp.gmail.com with ESMTPSA id y63sm26358wmd.21.2021.01.05.10.33.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 10:33:09 -0800 (PST) Received: from galahad (217-19-19-230.dsl.cambrium.nl [217.19.19.230]) by vdwege.eu (Postfix) with ESMTPSA id 861F65F37CF for ; Tue, 5 Jan 2021 19:33:08 +0100 (CET) From: Mart van de Wege To: Org Mode ML Subject: Inserting LaTex expressions using a filter fails Date: Tue, 05 Jan 2021 19:33:08 +0100 Message-ID: <875z4bcjyz.fsf@gaheris.vdwege.eu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=mvdwege@gmail.com; helo=mail-wr1-x434.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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=VY8Mv0P7; 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: 185919402C8 X-Spam-Score: -3.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: LpuzIBCMIU6w I'm trying to replace U+00BD in an org buffer with \sfrac{1}{2} during export to LaTex, and obviously I'm doing something wrong, or I don't understand the documentation. I use the following code to set up the filter: #+BIND: org-export-filter-item-functions (latex-replace-half) #+BEGIN_SRC emacs-lisp :exports results :results none (defun latex-replace-half (text backend info) (when (org-export-derived-backend-p backend 'latex) (replace-regexp-in-string "=C2=BD" "\\sfrac{1}{2}" text))) #+END_SRC Down the line in the document there is this example line: - 1=C2=BD eetl. gehakte peterselie, =C2=BD eetl. azijn, 4 eetl. olie Or this one: Laat de gewassen en gebroken vermicelli met de foelie =C2=BD uur in de But neither of them get replaced. I tried plain-text, item, and final-output filters. What am I missing? Mart --=20 "We will need a longer wall when the revolution comes." --- AJS, quoting an uncertain source.