From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: LaTeX export filter Date: Wed, 28 Mar 2018 06:21:45 +0530 Message-ID: <42339E77-8668-4401-8CE3-D05D47C119FA@agrarianresearch.org> References: <218D99DB-E8AE-4968-98E8-7E35BE022E7E@agrarianresearch.org> <87a7uxz6we.fsf@gmail.com> <16672FA9-1C32-4E00-8358-59171E9CB658@agrarianresearch.org> <433E2FC2-BAEE-444B-B6EC-09BF527D9F41@agrarianresearch.org> Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0zJd-0002Kr-Ns for emacs-orgmode@gnu.org; Tue, 27 Mar 2018 20:51:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0zJd-00051f-3Y for emacs-orgmode@gnu.org; Tue, 27 Mar 2018 20:51:49 -0400 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:36482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0zJc-00051X-UH for emacs-orgmode@gnu.org; Tue, 27 Mar 2018 20:51:49 -0400 Received: by mail-pf0-x232.google.com with SMTP id g14so321683pfh.3 for ; Tue, 27 Mar 2018 17:51:48 -0700 (PDT) Received: from ?IPv6:2405:204:312e:d20a:55d4:163a:90a3:77c5? ([2405:204:312e:d20a:55d4:163a:90a3:77c5]) by smtp.gmail.com with ESMTPSA id y90sm1036988pfi.130.2018.03.27.17.51.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 17:51:47 -0700 (PDT) In-Reply-To: <433E2FC2-BAEE-444B-B6EC-09BF527D9F41@agrarianresearch.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode mailing list >=20 >>=20 >>=20 >>>=20 >>>> (while (string-match >>>> = "\\(<\\([0-9]+\\)cid\\([0-9]+\\)?>[[:blank:]]*\\([^&]+\\)\\)" row) >>>=20 >>> Could it be that you need to change the last + to *? >>> Haven't tried it, mind you. >>> --=20 >>=20 >=20 > The problem is in this part of the code: >=20 > (while (string-match "& \\| \\\\\\\\" row 0) > (setq row (replace-match "" nil nil row)) > (decf start)) >=20 > If I comment it, I get three \cmidrule latex commands, but with &s and = \\ >=20 > Somehow, the above lines replace more than just &s and \\. >=20 > Vikas >=20