TEC
0090e25460
* lisp/org-latex-preview.el (org-latex-preview--get-numbered-environments, org-latex-preview--environment-numbering-table): Make numbering calculations more accurate, at the expense of a ~10x increase in the time to calculate numbering in a document, mitigated by the use of caching — resulting in a ~2x improvement compared to the simpler method in subsequent runs. (org-latex-preview--numbered-environments, org-latex-preview--numbered-environments-single, org-latex-preview--numbered-environments-multi, org-latex-preview--numbered-environments-all): Split `org-latex-preview--numbered-environments' into `org-latex-preview--numbered-environments-single' and `org-latex-preview--numbered-environments-multi', then rename `org-latex-preview--numbered-environments' to `org-latex-preview--numbered-environments-all' for the sake of clarity. Determining the count of numbered equations in a LaTeX environment is non-trivial. Previously, a simple heuristic was used that counted the number of lines ending with "\\" in particular environments, then subtracted the number of "\nonumber" and "\tag{...}" instances. However, lines can end with "\\" without contributing to the number of equations in the environment, consider the "cases" and "bmatrix" environments. To improve the heuristic, we (with some care) remove /all/ inner environments from the LaTeX maths environment before processing. Since this takes more effort, we split the numbered environments into those we know will contain exactly one numbered equation where we can avoid the extra processing, and those that require the more sophisticated heuristics. The new org-element caching API is very helpful for recovering the performance cost of this extra computation in the long run. |
||
---|---|---|
doc | ||
etc | ||
lisp | ||
mk | ||
testing | ||
.dir-locals.el | ||
.gitignore | ||
.gitmodules | ||
CONTRIBUTE.org | ||
COPYING | ||
Makefile | ||
README.org |
README.org
This is a distribution of Org Mode, a major mode for keeping notes, authoring documents, computational notebooks, literate programming, maintaining to-do lists, planning projects, and more — in a fast and effective plain text system.
Check the Org Mode website for more.
Install Org
Org is part of GNU Emacs: you probably don't need to install it.
To install a more recent version, please use command: M-x
list-packages
, find "org" in the list, click on it, and click
"Install" in the popped up window.
Join the GNU Project
Org is part of GNU Emacs and GNU Emacs is part of the GNU Operating System, developed by the GNU Project.
If you are the author of an awesome program and want to join us in writing Free (libre) Software, please consider making it an official GNU program and become a GNU Maintainer. Instructions on how to do this are here http://www.gnu.org/help/evaluation.
Don't have a program to contribute? Look at all the other ways to help: https://www.gnu.org/help/help.html.
And to learn more about Free (libre) Software in general, please read and share this page: https://gnu.org/philosophy/free-sw.html
License
Org-mode is published under the GNU GPLv3 license or any later version, the same as GNU Emacs.
Org-mode is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Org mode. If not, see https://www.gnu.org/licenses/.