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 aJNMOoWbO1+oKwAA0tVLHw (envelope-from ) for ; Tue, 18 Aug 2020 09:12:37 +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 6I0cNoWbO1+JYAAAB5/wlQ (envelope-from ) for ; Tue, 18 Aug 2020 09:12:37 +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 68A1A940390 for ; Tue, 18 Aug 2020 09:12:37 +0000 (UTC) Received: from localhost ([::1]:42270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7xfW-0000lD-NS for larch@yhetil.org; Tue, 18 Aug 2020 05:12:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7xfC-0000l2-NY for emacs-orgmode@gnu.org; Tue, 18 Aug 2020 05:12:14 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:42055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7xfA-00081J-Ut for emacs-orgmode@gnu.org; Tue, 18 Aug 2020 05:12:14 -0400 Received: by mail-wr1-x435.google.com with SMTP id r4so17492672wrx.9 for ; Tue, 18 Aug 2020 02:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=iLp5bW/VbR8j59EfYZQq8FnPiH3gK3PKNyJQ71uwKlU=; b=OgAhWAV/UOx3fdG63f1ugVdiPICgX5ung/N7G7J/x8cLxzRsbxXe31WUUguZHhiCyq 6BvlhAhN8Q3woGIqeze9ejE256r/78eL7gglRMle3AksEh0zASDB5cSwBjt4f0NTnH5d NiGba4JrGL+rx5r2nVGce2by1o/HHDzQfXZdmb71/imuhzvIYB6hu/l/S4bFFNBs2Lym B+JaAXgLitfqJdWq89YDeWWe2fzev2vAhOni3qcUkbmlM+5zmeTnopwj/pqhlOYQfoRr cCdRDyauIhM3nuHzDvFzJIg4if3zrEHbAnGBT+z/k8adjEkRYT+pKEXPQT8kxf+fkkZi TCdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=iLp5bW/VbR8j59EfYZQq8FnPiH3gK3PKNyJQ71uwKlU=; b=OQSRn5cqZHrwr07DTMH2xtJ/1UrXBJEvKR7sbHVDJsPERvTDYWV62Y1Yuxuz8J2A1n FUdBrkmTHW3hvYG0P6CDrNbhxofFNDk1Kst++P4u0/8IJT5KOpHhb3Kta/0C7E86iNdf d2BtRD44ljES/0migKkaDcEntjVUcmIuNvQf9WdbTGv5gdFHs2Xe9lqZ2Hz5LdZklqOS OcJd3ps6EvvYSVURX9K6NzP7S07pAr+q2YOU4FDAvzthsFmtMfqZql0kOvxfIXi6py1Q mz1d1pN7znNSIVQdUBC7Am5Df90JZ/y9mtmFM101i4WK2RelwWoS5K5PrAWyG3oTKfu0 d1gQ== X-Gm-Message-State: AOAM533jWNR7ikZTyzheiyTeRzuoNh0oCLx5pvnJU3/YpOFEpFvmxxWO zIQDE6ylIS35zDVH12Qm1xR3JTz1ggk= X-Google-Smtp-Source: ABdhPJw91Iaqg0YS8+mn87DJlltLr2E+mgGvbJMIRH/4VoPXVBm70UqD+IXeA66N0WCXjB+lv95Kcg== X-Received: by 2002:a05:6000:10c6:: with SMTP id b6mr14259049wrx.257.1597741930454; Tue, 18 Aug 2020 02:12:10 -0700 (PDT) Received: from [192.168.1.187] (cpc94236-ward11-2-0-cust34.10-2.cable.virginm.net. [81.111.131.35]) by smtp.googlemail.com with ESMTPSA id v15sm33254235wrm.23.2020.08.18.02.12.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Aug 2020 02:12:09 -0700 (PDT) From: Nick Higham Subject: LaTeX math export problems To: emacs-orgmode@gnu.org Message-ID: <167d8a3b-4954-281e-bf1e-f341dced6b40@gmail.com> Date: Tue, 18 Aug 2020 10:12:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=highamnj@gmail.com; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=OgAhWAV/; 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-Spam-Score: -1.71 X-TUID: 7J+Eae+xuSGn I use Org for producing LaTeX (e.g., all of https://github.com/higham/what-is is produced from Org source). I'm finding that Org has trouble parsing some LaTeX math expressions and I then have to make seemingly arbitrary tweaks to get it to parse correctly. I thought this might be to do with something in my .emacs, but the same problem happens with a bare bones Emacs. A simple example is this file: ################################################################# # ex1a_bad.org \[ \widehat{y} = f(x+\widehat{x}) + \Delta y, \quad |\widehat{y}| \le \epsilon |y|, \; |\widehat{x}| \le \epsilon |x| \] ################################################################# With emacs -q and This is GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 org-version is a variable defined in 'org.el'. Its value is "9.1.9" I get as the exported LaTeX: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Created 2020-08-18 Tue 10:08 % Intended LaTeX compiler: pdflatex \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \date{\today} \title{} \hypersetup{ pdfauthor={}, pdftitle={}, pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 26.3 (Org mode 9.1.9)}, pdflang={English}} \begin{document} \tableofcontents $\backslash$[ \widehat{y} = f(x+\widehat{x}) + \(\Delta\) y, \quad |\widehat{y}| \(\le\) \(\epsilon\) |y|, $\backslash$; \begin{center} \begin{tabular}{lll} \widehat{x} & \(\le\) \(\epsilon\) & x\\ \end{tabular} \end{center} $\backslash$] \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% The backslashes are being interpreted literally and the pipes are being interpreted as a table. Yet this version processes correctly: ################################################################# # ex1a_good.org \[ \widehat{y} = f(x+\widehat{x}) + \Delta y, \quad |\widehat{y}| \le \epsilon |y|, \; |\widehat{x}| \le \epsilon |x| \] ################################################################# I have other simple examples like this one. The same thing happens with my usual Emacs configuration, which uses Org 9.3.7. ---Nick Higham