From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uJNkMfJr9V/YJgAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 07:51:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YGJWLfJr9V/RVwAAB5/wlQ (envelope-from ) for ; Wed, 06 Jan 2021 07:51:14 +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 778BC9403AE for ; Wed, 6 Jan 2021 07:51:14 +0000 (UTC) Received: from localhost ([::1]:52622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx3b7-0001ni-D1 for larch@yhetil.org; Wed, 06 Jan 2021 02:51:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx3aa-0001mE-Hn for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 02:50:40 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:40250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kx3aZ-0007id-0b for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 02:50:40 -0500 Received: by mail-wr1-x42b.google.com with SMTP id 91so1538515wrj.7 for ; Tue, 05 Jan 2021 23:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ylNJnyOt8S8tUHj6/DarW+iAjOrBD1T1GuUvvSad19E=; b=SIwII5lok7j7F8w6fAG2+l8zIZ3d6HyjMeoDM6GMpgsncpj48EMRdnwgDGYxowTBJr jL3djswz4CnHIAoe2VzUoP73K2GqmDSU+V6EgUwF1UOl6DztQs84QJtq+fw5mjNUI2Mq qeb5jU+QQOhXWcpyEseYpzcBQV9hMYCE/7Hh4hUnMhthlcZTU/q46nUEOgNlFvUePCFA mcwYQCge02FGbNuAkO2qVz1KeGZzrECi0uSw0SXxDYJT4M682rrwBq+Y+9WTgcrIN9t4 UutECAcOCuO2uIJIwe7FwpzHLuslGwAhkZ0BudcfV4WW+hH/nX9o2IFwMuEKeKnt9aqm gHWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ylNJnyOt8S8tUHj6/DarW+iAjOrBD1T1GuUvvSad19E=; b=g1aW2gKnBnK1SBz/+2SL8eg9LhxET1X7iYPneUL/njmN+A6gxm+rkj/d8mV7NQN1D/ lNsVAYbd4Sk489Wt8glssJ6pnFR4aO69TyVlBihs/7k3qtFUZpj6pRT8ch2t3hUsu6Kg 3tqX3Oye296tw4qeu9VrQqNf7S6efnDJ+gS1r6U1S6O8Hsx36hZWTKHlYfF9mC16mWDS PlIuXZqq8b6ryXAQWQMqSL6Jh/zkVyeLySCJaa7cXiDYtFK7zIrHa7xztXhKor5zQ+ZR 6menUfyX4kOc/kU1INy5pLR0E4IQrOuyQY5DUvgdyU1hRubz50F/hYX3owQZf23AOyQk juvA== X-Gm-Message-State: AOAM530HLjDGLSCNpG88H1JRRhe5PdzFkgMume7b7qliz4BtpigKVubs pEoA4KdOTOmhac1nwj6laEj1CzOar8k= X-Google-Smtp-Source: ABdhPJwABm4rTU4gVcu4F1zANJNXrx6j6NLmOdE9WqF9LnvW6M35R2CqLCGRLMED3kvC91KFWIGSEA== X-Received: by 2002:a5d:560e:: with SMTP id l14mr2982014wrv.191.1609919437465; Tue, 05 Jan 2021 23:50:37 -0800 (PST) Received: from vdwege.eu (vdwege.eu. [141.105.121.30]) by smtp.gmail.com with ESMTPSA id n189sm1976583wmf.20.2021.01.05.23.50.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 23:50:36 -0800 (PST) Received: from galahad (217-19-19-230.dsl.cambrium.nl [217.19.19.230]) by vdwege.eu (Postfix) with ESMTPSA id 510345F3B92; Wed, 6 Jan 2021 08:50:36 +0100 (CET) From: Mart van de Wege To: Org Mode ML Cc: emacs-orgmode@gnu.org Subject: Re: Inserting LaTex expressions using a filter fails References: <875z4bcjyz.fsf@gaheris.vdwege.eu> <87im8brp68.fsf@alphaville.usersys.redhat.com> Date: Wed, 06 Jan 2021 08:50:35 +0100 In-Reply-To: <87im8brp68.fsf@alphaville.usersys.redhat.com> (Nick Dokos's message of "Tue, 05 Jan 2021 17:31:43 -0500") Message-ID: <871reycxmc.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::42b; envelope-from=mvdwege@gmail.com; helo=mail-wr1-x42b.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=SIwII5lo; 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: 778BC9403AE X-Spam-Score: -3.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: bAkJdkohkd30 Nick Dokos writes: > Mart van de Wege writes: > >> 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 >> > > Try > > (replace-regexp-in-string "=C2=BD" "\\\\sfrac{1}{2}" text))) > Nope. Doesn't do it. Here's the Latex output of the two example lines: \item 1=C2=BD eetl. gehakte peterselie, =C2=BD eetl. azijn, 4 eetl. o= lie. Laat de gewassen en gebroken vermicelli met de foelie =C2=BD uur in de This was run using final-output-functions, btw. Regards, Mart --=20 "We will need a longer wall when the revolution comes." --- AJS, quoting an uncertain source.