From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id jbj5NCoEBWRqFAAAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 22:05:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GJKjNCoEBWTHMAAA9RJhRA (envelope-from ) for ; Sun, 05 Mar 2023 22:05:46 +0100 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 64A9219E92 for ; Sun, 5 Mar 2023 22:05:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYvXP-00041C-BV; Sun, 05 Mar 2023 16:04:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYvXN-00040k-BR for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 16:04:57 -0500 Received: from mr85p00im-zteg06021601.me.com ([17.58.23.187]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYvXL-0000q7-8a for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 16:04:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1678050292; bh=6yaCZKr4u097+VLsQkLEgUA2EO1sBXTL1tp/a3HfbTg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=u9BCiQ5ChVMKjsc++6UHsvWETc/qoCY+fS6xxP35JeOvF8fTqrnbEI4U3SfVRf5kz HAah5jmNaOcOAPTp2trzT07UsCwrhEQLmuCXgfg3SuIvoDw8f6KPfEh1fx9EqJ9vx8 o4wxJU3stKkBi/wpeEFRmASURShHICbURWn7QAv6d6NFpITRcq2b3G37azRt8MmApC mEyRfJHBNGfPqAz5AEUngeygiycRNWseLY9WX7DIDL2uI90ZDKs4xUsN1OCGTFOUEn xEW8rR068QwzJfp48MHxy4ivVJJ3gUugb8a8BJuNH6WWgWCMYfG0stsoKhz0L4Ea4V syc2mKvDHAPBw== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06021601.me.com (Postfix) with ESMTPSA id 503E43058DAD for ; Sun, 5 Mar 2023 21:04:51 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Subject: Re: [PATCH] Fix LaTeX misspelled as Latex In-Reply-To: <20230305203706.90051-1-salutis@me.com> References: <20230305203706.90051-1-salutis@me.com> Date: Sun, 05 Mar 2023 22:04:47 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Proofpoint-GUID: wCTL9cFykdFp0mmqFOvbrxqjY0yJ88il X-Proofpoint-ORIG-GUID: wCTL9cFykdFp0mmqFOvbrxqjY0yJ88il X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 clxscore=1015 malwarescore=0 adultscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2303050185 Received-SPF: pass client-ip=17.58.23.187; envelope-from=salutis@me.com; helo=mr85p00im-zteg06021601.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678050346; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6yaCZKr4u097+VLsQkLEgUA2EO1sBXTL1tp/a3HfbTg=; b=SkGcrrO6fmBiONUWMig6R8i4pnOEqOQVAKXggVRmgoyy98CQGZSwBGosDmQ57qj9vsz/NS c/nc9QPJr98Q/kAf+rkKZ8KlANq7GJSEc/VZCIkERHqu1fAMXRz7c3BDCgMhaqpIgiyqTF l2Eod5rknNGmqTqY0hauENq/k0I8C6PXQf8gvOMLS/wBsJ0N5sIOD1VxVzylxT1BoKM1pn x7P/Bpy2XqNMYQEG8fMLyz7RfMGZaJuOhNmoq8VXpb+WgbBlb3DeMSeUmdMAnwTivRcC9Y pJxJNAviTXyDB/EoqcTZlUnd4YxR6298cX0cSe/1giBO5sre91XyNaoE0zcX7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=u9BCiQ5C; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=me.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678050346; a=rsa-sha256; cv=none; b=AnNVc+jbl+KJP27T2FE0B/+1o9IBQ7U2OFHMAaAJ50BSzX6BApmdoSDkQIl1qbD3T2GeeU 10rqfYFHODLy6crUjAejHZNJLDejWIge9M4NeWWpNvzivryq/c7Bu5imvf3yrWK2R1GdbU ZiJygVI8fSrHY6KRMueB5XkLpwV+jIJ8Rje6mGgkeBwbMZci7xbz6ufiGi+fxn2lMjhtUp PT7q39782zOLdX/n0/Pk/qsHZOfdjPttDvEgzldz4hgTeJIkxWtSZ/Vs+xPtiVJobu2sWS BS5+tRl94VDATAAAUOeUlV0Fkeqybp1YaRxhu/wXjNsf5ZwNWAaB0FBL8C9pag== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.51 X-Spam-Score: -6.51 X-Migadu-Queue-Id: 64A9219E92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=u9BCiQ5C; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=me.com X-TUID: TTEIosrfB2Gp --=-=-= Content-Type: text/plain Please, see the updated patch attached to this message. It has (1) a unified commit message with the similar BibTeX patch, and (2) a more correct change-log [*]. [*] For some reason Org breaks change log generation with "user-error: Cannot move further down". Rudy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-LaTeX-spelled-as-Latex.patch >From 42964b65d94cf17514b1b3362d61126facec3414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Sun, 5 Mar 2023 22:01:11 +0100 Subject: [PATCH] Fix LaTeX spelled as Latex etc/ORG-NEWS (Non-floating minted listings in LaTeX export): Spell LaTeX correctly. * lisp/ob-latex.el: (org-babel-execute:latex): Spell LaTeX correctly. * lisp/org-element.el: Spell LaTeX correctly. * lisp/ox-ascii.el: Spell LaTeX correctly. * lisp/ox-html.el: Spell LaTeX correctly. * lisp/ox-latex.el: Spell LaTeX correctly. * lisp/ox-md.el: Spell LaTeX correctly. * lisp/ox-odt.el: Spell LaTeX correctly. * testing/examples/ob-maxima-test.org (LaTeX output): Spell LaTeX correctly. * testing/lisp/test-org-element.el (test-org-element/cache): Spell LaTeX correctly. --- etc/ORG-NEWS | 4 ++-- lisp/ob-latex.el | 2 +- lisp/org-element.el | 4 ++-- lisp/ox-ascii.el | 4 ++-- lisp/ox-html.el | 4 ++-- lisp/ox-latex.el | 4 ++-- lisp/ox-md.el | 4 ++-- lisp/ox-odt.el | 4 ++-- testing/examples/ob-maxima-test.org | 2 +- testing/lisp/test-org-element.el | 6 +++--- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 988dfea93..388aa07a3 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -437,7 +437,7 @@ When the block type starts from the upper case, structure template will now insert =#+BEGIN_TYPE=. Previously, lower-case =#+begin_type= was inserted unconditionally. *** New ox-latex tabbing support for tables. -Latex tables can now be exported to the latex tabbing environment +LaTeX tables can now be exported to the latex tabbing environment tabbing environment]]. This is done by adding =#+ATTR_LATEX: :mode tabbing= at the top of the table. @@ -4388,7 +4388,7 @@ parameters specific to some pre-defined translators, e.g., ~:environment~ and ~:booktabs~ for ~orgtbl-to-latex~. See translators docstrings (including ~orgtbl-to-generic~) for details. -*** Non-floating minted listings in Latex export +*** Non-floating minted listings in LaTeX export It is not possible to specify =#+attr_latex: :float nil= in conjunction with source blocks exported by the minted package. diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el index 428907a27..730da01b9 100644 --- a/lisp/ob-latex.el +++ b/lisp/ob-latex.el @@ -141,7 +141,7 @@ exporting the literal LaTeX source." (org-trim body)) (defun org-babel-execute:latex (body params) - "Execute a block of Latex code with Babel. + "Execute a block of LaTeX code with Babel. This function is called by `org-babel-execute-src-block'." (setq body (org-babel-expand-body:latex body params)) (if (cdr (assq :file params)) diff --git a/lisp/org-element.el b/lisp/org-element.el index f8442511c..7ccdb103d 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -2469,7 +2469,7 @@ CDR is a plist containing `:key', `:value', `:begin', `:end', (org-element-property :value keyword))) -;;;; Latex Environment +;;;; LaTeX Environment (defconst org-element--latex-begin-environment "^[ \t]*\\\\begin{\\([A-Za-z0-9*]+\\)}" @@ -3419,7 +3419,7 @@ CONTENTS is the contents of the object." (format "/%s/" contents)) -;;;; Latex Fragment +;;;; LaTeX Fragment (defun org-element-latex-fragment-parser () "Parse LaTeX fragment at point, if any. diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el index e5bdf92cb..e267b004b 100644 --- a/lisp/ox-ascii.el +++ b/lisp/ox-ascii.el @@ -1549,7 +1549,7 @@ information." keyword info))))) -;;;; Latex Environment +;;;; LaTeX Environment (defun org-ascii-latex-environment (latex-environment _contents info) "Transcode a LATEX-ENVIRONMENT element from Org to ASCII. @@ -1561,7 +1561,7 @@ information." latex-environment info))) -;;;; Latex Fragment +;;;; LaTeX Fragment (defun org-ascii-latex-fragment (latex-fragment _contents info) "Transcode a LATEX-FRAGMENT object from Org to ASCII. diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 37c474409..82e266dde 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2968,7 +2968,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." ((string= "listings" value) (org-html-list-of-listings info)) ((string= "tables" value) (org-html-list-of-tables info)))))))) -;;;; Latex Environment +;;;; LaTeX Environment (defun org-html-format-latex (latex-frag processing-type info) "Format a LaTeX fragment LATEX-FRAG into HTML. @@ -3085,7 +3085,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." info caption label))))) (t (org-html--wrap-latex-environment latex-frag info caption label))))) -;;;; Latex Fragment +;;;; LaTeX Fragment (defun org-html-latex-fragment (latex-fragment _contents info) "Transcode a LATEX-FRAGMENT object from Org to HTML. diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index dc2062df5..b84fe89db 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2618,7 +2618,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." (otherwise "\\lstlistoflistings"))))))))) -;;;; Latex Environment +;;;; LaTeX Environment (defun org-latex--environment-type (latex-environment) "Return the TYPE of LATEX-ENVIRONMENT. @@ -2676,7 +2676,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." (insert caption) (buffer-string)))))) -;;;; Latex Fragment +;;;; LaTeX Fragment (defun org-latex-latex-fragment (latex-fragment _contents _info) "Transcode a LATEX-FRAGMENT object from Org to LaTeX. diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 5cb79ef23..5be0ca22e 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -486,7 +486,7 @@ channel." (_ (org-export-with-backend 'html keyword contents info)))) -;;;; Latex Environment +;;;; LaTeX Environment (defun org-md-latex-environment (latex-environment _contents info) "Transcode a LATEX-ENVIRONMENT object from Org to Markdown. @@ -501,7 +501,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." latex-frag) latex-frag)))) -;;;; Latex Fragment +;;;; LaTeX Fragment (defun org-md-latex-fragment (latex-fragment _contents info) "Transcode a LATEX-FRAGMENT object from Org to Markdown. diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 949c8f9b5..cf217c9e7 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -1986,7 +1986,7 @@ information." (ignore)))))))) -;;;; Latex Environment +;;;; LaTeX Environment ;; (eval-after-load 'ox-odt '(ad-deactivate 'org-format-latex-as-mathml)) ;; (advice-add 'org-format-latex-as-mathml ; FIXME @@ -2007,7 +2007,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." (org-odt-do-format-code latex-frag info))) -;;;; Latex Fragment +;;;; LaTeX Fragment ;; (when latex-frag ; FIXME ;; (setq href (propertize href :title "LaTeX Fragment" diff --git a/testing/examples/ob-maxima-test.org b/testing/examples/ob-maxima-test.org index b6be52b5b..b83114a4f 100644 --- a/testing/examples/ob-maxima-test.org +++ b/testing/examples/ob-maxima-test.org @@ -79,7 +79,7 @@ m: genmatrix (lambda([i,j], i+j-1), 3, 3)$ write_data(m, "/dev/stdout")$ #+end_src -* Latex output +* LaTeX output #+begin_src maxima :exports both :results latex :results verbatim assume(x>0); tex(ratsimp(diff(%e^(a*x), x))); diff --git a/testing/lisp/test-org-element.el b/testing/lisp/test-org-element.el index 957e99194..304059c67 100644 --- a/testing/lisp/test-org-element.el +++ b/testing/lisp/test-org-element.el @@ -1686,7 +1686,7 @@ Paragraph" (= (org-element-property :end (org-element-at-point)) (point-max))))) -;;;; Latex Environment +;;;; LaTeX Environment (ert-deftest test-org-element/latex-environment-parser () "Test `latex-environment' parser." @@ -1751,7 +1751,7 @@ e^{i\\pi}+1=0 (= (org-element-property :end (org-element-at-point)) (point-max))))) -;;;; Latex Fragment +;;;; LaTeX Fragment (ert-deftest test-org-element/latex-fragment-parser () "Test `latex-fragment' parser." @@ -4162,7 +4162,7 @@ Text (org-element-type (org-element-at-point)))))) (should-not (eq 'headline (org-test-with-temp-text "* H1\nP1\n*H2\n" - (let ((org-element-use-cache t)) + (let ((org-element-use-cache t)) (org-element-cache-map #'ignore :granularity 'element) (backward-delete-char 1) (org-element-type (org-element-at-point)))))) -- 2.39.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 "Programming reliably -- must be an activity of an undeniably mathematical nature [=E2=80=A6] You see, mathematics is about thinking, and doing mathematics is always trying to think as well as possible." -- Edsger W. Dijkstra, 1981 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia --=-=-=--