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 IF/hHDJhP1+xIwAA0tVLHw (envelope-from ) for ; Fri, 21 Aug 2020 05:52:50 +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 5/uwGDJhP1/uYQAAB5/wlQ (envelope-from ) for ; Fri, 21 Aug 2020 05:52:50 +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 BC1D19403CA for ; Fri, 21 Aug 2020 05:52:49 +0000 (UTC) Received: from localhost ([::1]:46206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8zyq-00068X-Ks for larch@yhetil.org; Fri, 21 Aug 2020 01:52:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6ABd-0002iM-SZ for emacs-orgmode@gnu.org; Thu, 13 Aug 2020 06:10:18 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:38863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6ABb-00049A-D1 for emacs-orgmode@gnu.org; Thu, 13 Aug 2020 06:10:16 -0400 Received: by mail-wm1-x32e.google.com with SMTP id t14so4527762wmi.3 for ; Thu, 13 Aug 2020 03:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=jG7tNiIOEi+Vaj9y3oDnfmY4J5VL/HNXSrT0pxCfX6o=; b=JErsABne2AlXMVTThRBqQxV8lGK+aty395JSvXYuUyDT6HTqkhhiP4DuuBm9o8kfpl fAVZsQQCKQ8k7gFgaNX2ErcBm7bit5jXwMi1TqoheM1v3X2IjX7JCU0U3YLEbuCCOuci LIS3jiv4e2azcAp+hooOxgOWZ/ZKrUPqPByFUXdsdbTFWAO2+qXhly76hhyx36ihAU4P ZeSpiaW/Xj7JWnj40+GE3/KLKksvBep0TH4J9IJ87WYcThZfOOec0BoxqbPsDTl0pFe9 A1OLz7ibt2xQEpofAiOBmRZNnmpAE5nJ6zfmB/Lougygau7MBY/6dfy5Nl44Y9e3jpmP COqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=jG7tNiIOEi+Vaj9y3oDnfmY4J5VL/HNXSrT0pxCfX6o=; b=kfeGVD9w3pwXQvqylhP/BdafrP600GbKCnDXS60wg8zGbwGGuO0yFJa8FOyBKgRCq0 KUgZQai5EuyMt3mfuwYEUI+mPOhNVVHEttNuUp651CIsdBo8YxGk+JwmCkBEF9wRsQ+i G1DcN6kasTL0iv5HrXaUfTvsXSTmWGHTjbindibhWMnIXA8K7GWwosi/V85HBHkK/m/T QuZUcgElATX9rZqKQ/kRklttkpqcbmHWMkx0jyNSg3cOeDy7Mo5wVzS0tvOOJoDUvwsS yWlVm4xxzDs920Hc3h2ixJB2gFLe0XeAs9G2BkXLfh+/O0ncgqHoP+dONuEC27xl4wuk ZM4Q== X-Gm-Message-State: AOAM531BuWrQC13iurGNIyrJcE1OctKvSiHwSRT2idAwlDsGo1fKyIve 4pPxzzvVbE2lvGCIl1mZ3C3Dob8JJPU= X-Google-Smtp-Source: ABdhPJyDe6pZVYK42K27pzUKjuhmbDiip8kVPHxd4/c3GZFJWBRiz7uhwpwJ/z9SvnZPWIoyp/4I0w== X-Received: by 2002:a1c:1bc4:: with SMTP id b187mr3644577wmb.175.1597313408894; Thu, 13 Aug 2020 03:10:08 -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 t14sm11106745wrg.38.2020.08.13.03.10.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Aug 2020 03:10:07 -0700 (PDT) To: emacs-orgmode@gnu.org From: Nick Higham Subject: LaTeX maths export problems Message-ID: <7822f197-5124-2129-3eff-83aa62966f0f@gmail.com> Date: Thu, 13 Aug 2020 01:52:42 +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::32e; envelope-from=highamnj@gmail.com; helo=mail-wm1-x32e.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: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, 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=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 21 Aug 2020 01:52:05 -0400 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=JErsABne; 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: -0.71 X-TUID: 499GG1LAhzpC 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 maths 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-13 Thu 01:36 % 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