From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id lBm7Jp5WkV6nEAAA0tVLHw (envelope-from ) for ; Sat, 11 Apr 2020 05:33:18 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OG+XDKBWkV5IVwAAB5/wlQ (envelope-from ) for ; Sat, 11 Apr 2020 05:33:20 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 99D10682CDE for ; Sat, 11 Apr 2020 05:33:17 +0000 (UTC) Received: from localhost ([::1]:48974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jN8lX-0006M9-Sb for larch@yhetil.org; Sat, 11 Apr 2020 01:33:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47197) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jN1dj-0001uj-Lb for emacs-orgmode@gnu.org; Fri, 10 Apr 2020 17:56:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jN1di-0000AK-KU for emacs-orgmode@gnu.org; Fri, 10 Apr 2020 17:56:43 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:45714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jN1dh-00004v-UK for emacs-orgmode@gnu.org; Fri, 10 Apr 2020 17:56:42 -0400 Received: by mail-pl1-x633.google.com with SMTP id t4so1058677plq.12 for ; Fri, 10 Apr 2020 14:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hawaii-edu.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=p0U4NPsRa1ApWJebtBV9ceGGEOf9AcuFSHofEslVQFk=; b=zKiF0tPyU/qqhJneno6/hB+FFKo2ocRpCL7lQLLWlhU3kbc1CaFM1iMVaUTA8QF70W Fv7B+UBxv5Xb7VPCo6JKj396swolZu3Io/D6Lq+a6O/h4tYPdt2fJ1UvcLiYMQuPE1Fp 0NNGa8BskDgIhpxTsrgK1KcIDjxD7Nqfn66mGasxORSL+BtpVNb/+O54H9NnDyqPr+f4 RBOp/Jp36AUFFsylwX2zNEKy9Qpzn8iLNOuiIlqViMuqpmrpoq8dAcmEi1sKu0oDrJT2 nfmlr17u6R4Qw76xpDE04DyP0z4fmyCMABGuPrLe3oEJTCfQrxvFQq7MWDoBwqrwLN7E Qtzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=p0U4NPsRa1ApWJebtBV9ceGGEOf9AcuFSHofEslVQFk=; b=dIcF8dvb0UV4IajufbbvG+yTobXTows8fyfwNDSr62LWsmJyrxfIHKn+2wKhABhQtr xCXlLpqWRV4qAKSHD4RJ28sv0SYDIFNOFHWSb6S6EguQwQufvm9R1AdXkF5dAmeXNVOh LHHesFyaancciOtG82RZLR5vCd2Csvzf1LbnkEhOzqn6Zzw+4FhxZqCfnfGTBWwPEYbe 9sbekRidyZ0GMN+93UCBSBPcQlHO5iSrJZEHyyC2KtmQxdHrrxxcSjof31drxCxpWkjQ PAYH1Nf7Q7G2hGNOhtErB5RqLflXvYBX7heU7L6pwK55BzGTI/ta225mOQte7WDyhoVt npQg== X-Gm-Message-State: AGi0PubLBQKA9QhgXIxHIaN/ropicKtFNBMEJ2q+cr6Aav/LzxpJz6/8 Ezlh2x+mUjei1eFLnbN7sFlX2LksodoRSMZkWfKWwbVl9wUhEg1NgV7rsjG6rKvVHER0iqCw77L pb+Yhx7gzELyhqOU5fWGHBnR6f2Wh/kE8WlnD1f7q2Eke91XhIM2AlYxEnzrGrYU= X-Google-Smtp-Source: APiQypJ+MDw73Nzh/B7btrcmeJKVP0tjOcrZ0aAzxZgqIfMFabQmPLaKIxEZl9bf8pyvonOKrYIRJw== X-Received: by 2002:a17:90b:3615:: with SMTP id ml21mr7923148pjb.145.1586555798751; Fri, 10 Apr 2020 14:56:38 -0700 (PDT) Received: from [132.160.125.254] ([132.160.125.254]) by smtp.gmail.com with ESMTPSA id f3sm2579525pjo.24.2020.04.10.14.56.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2020 14:56:37 -0700 (PDT) From: Brian Powell Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Inconsistent use of \ref and \eqref in ox-latex and ox-html Message-Id: Date: Fri, 10 Apr 2020 11:56:35 -1000 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3608.80.23.2.2) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::633 X-Mailman-Approved-At: Sat, 11 Apr 2020 01:32:50 -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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=default; t=1586583198; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=p0U4NPsRa1ApWJebtBV9ceGGEOf9AcuFSHofEslVQFk=; b=a2U1X4zOnCBneBKKTYKalqY9tfVQHLVi8LNTmcco2mE/CiCWTvHc+met4jMz+vUactxFSQ hYI4epHljGGhqK1Gv1VtNdvokFeiOfEEYH1Ag6axtO+hkIsCjsuL1OLdVqOpAmDbz9D1XC OroQubfftol6ZUJ0Z3lPEqOZ28+lzf0= ARC-Seal: i=1; s=default; d=yhetil.org; t=1586583198; a=rsa-sha256; cv=none; b=TbEy7/8/hUI70C3hfahMzu+OX1tbqYXjfjx6opJXkSF39CnPW8+9rsXM0qjLBtGiKDUcom KZmdQUB0XxHVQ/7IHr207lMkWxVEoeXXnoLkeNmNjaNVBzFD1zSggqa0GzoPSWRB47jR2J oAhh/OEAWwFIE8GklvcVq13Z3L9Mypc= ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=hawaii-edu.20150623.gappssmtp.com header.s=20150623 header.b=zKiF0tPy; spf=pass (aspmx2.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-Scanner: scn0 X-Spam-Score: -0.71 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=hawaii-edu.20150623.gappssmtp.com header.s=20150623 header.b=zKiF0tPy; dmarc=none; spf=pass (aspmx2.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-Scan-Result: default: False [-0.71 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.5799991343242]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; ARC_SIGNED(0.00)[i=1]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.30), country: US(-0.01), ip: 209.51.188.17(-0.58)]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[hawaii-edu.20150623.gappssmtp.com:+]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[powellb@hawaii.edu,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[hawaii-edu.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; DMARC_NA(0.00)[hawaii.edu]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: vqZ6aeXKAvr7 This topic was discussed in 2015: However, it seems that it we are still stuck with inconsistent exports = between latex and HTML. The issue is that when exporting equation numbers with ox-html, it uses = MathJax's \eqref that wraps the equation in parentheses, for example: "Refer to (3) for more." However, when exporting the same document with ox-latex, it uses Latex's = \ref that does not wrap the equation in parentheses. Would it be = possible to add an option or variable to ox-html for the user to select = whether to use \ref or \eqref on export?=20 For those of us that publish to HTML and PDF, it is very difficult = because you end up with either double or no parentheses. My proposed fix would be a change to ox-html from: (format "\\eqref{%s}" (org-export-get-reference destination info)) to (format (if org-html-export-mathjax-ref "\\ref{%s}" = "\\eqref{%s}") (org-export-get-reference destination info)) The variable org-html-export-mathjax-ref is non-nil to use \ref vs. nil = to be the default \eqref. Cheers,=20 Brian=09 =09=