Commit Graph

146 Commits

Author SHA1 Message Date
Justin Burkett a00f0aba23 Fix unhandled case in laas-wrap-previous-object
start might be nil (if there is a space to the left for example) and this causes
this function to insert text to the right then error.
2023-04-01 02:06:36 +08:00
TEC 7f4044918c
Make YAS a soft dependency, add tempel support 2023-03-02 21:45:21 +08:00
Yoav Marco 44533de496 Add tan snippet
Fixes #34
2022-05-09 15:34:27 +03:00
Yoav Marco b372f9a44b Update version to 1.1 2022-03-01 18:29:21 +02:00
Liam Hupfer 97eeca3418 Add laas-unicode.el
`laas-unicode` employs the `math-symbol-lists` package to provide `laas`
users the option to replace LaTeX macros with their Unicode equivalents.

Resolves #32
2022-03-01 18:19:07 +02:00
Yoav Marco 14c6cc2ff8 Add all of cdlatex's ' accents
e.g a'. would expand to \dot{a}
2022-01-08 17:36:50 +02:00
Yoav Marco 3ac9d51aa6 Require all frac snippet expansions to be in math
Fixes #28
2022-01-03 10:39:49 +02:00
Yoav Marco f30b7e1b5b Add equiv and oplus snippets 2021-12-16 15:43:11 +02:00
Yoav Marco fa32c7affc Check char-before with eq
Fixes #26
2021-12-08 18:17:15 +02:00
Yoav Marco 397bde14a6 Frac snippet: use // for an empty frac template
Resolves #12
Resolves #13
2021-11-03 18:33:26 +02:00
Yoav Marco fd5238865f Fix readme doc format code blocks positioning
I probably inserted the headings after running the code blocks and
didn't notice the results no longer came after the blocks.
2021-11-03 18:28:26 +02:00
Li Zhuohua a992e92bf8 org-mathp: ensure cursor is within math
Use command `org-inside-LaTeX-fragment-p` to test if point is inside a
LaTeX fragment.

Fixes #16
Closes #22
2021-08-26 13:17:59 +03:00
Yoav Marco af78f6a6ee fixup! Fix typo in laas-mathp 2021-08-19 22:35:11 +03:00
Yoav Marco 8ecdc16afc Fix typo in laas-mathp
Should stop errors when the major mode is not LaTeX or Org.
2021-08-19 21:50:09 +03:00
Yoav Marco d6cd35d57e Add accent config sample to readme
Resolves #17
Resolves #19
2021-07-27 10:06:35 +03:00
Yoav Marco 9d6f444834 Replace // example in readme
Whether or not #13 is merged, // conflicts with the existing / snippet.
2021-06-08 02:04:41 +03:00
Yoav Marco 80798163c2 Fix edge case with laas--no-backslash-before-point?
Would occur when you're right at the start of the buffer
2021-06-07 21:51:57 +03:00
Yoav Marco 2d65cd7ab0 Remove unconditional space insertion in wrap-previous-object 2021-05-25 17:27:40 +03:00
Yoav Marco 635e974cb6 Simplify math mode check with derived-mode-p
Built-in and doesn't do allocations
2021-05-08 15:24:16 +03:00
Yoav Marco e9bc939237 Uptade version to 1.0 2021-04-17 14:41:07 +03:00
Yoav Marco 97f13a8323 Add |= -> \models snippet 2021-04-16 00:21:52 +03:00
Yoav Marco 654ea30aa0 Fill in the command to view README.org from Emacs 2021-03-29 21:59:41 +03:00
Yoav Marco ff512c3ec2 Check based on parent modes too in laas-mathp
Closes #10
2021-03-27 15:30:39 +03:00
TEC 78b10f0e16
Add MELPA badge to readme
... ok, I may have slipped in some other minor changes
2021-03-09 23:59:21 +08:00
TEC 2681662d3e
Improve identification of left-adjacent tex object
Now with fraction:
 0.1/ -> \frac{0.1}{}
 2^{2}/ -> \frac{2^{2}}{}
Before:
 0.1/ -> 0.\frac{1}{}
 2^{2}/ -> 2^\frac{{2}}{}

This closes #8
2021-03-08 11:36:11 +08:00
Miciah Masters 7ee1231410 Fix package URL in commentary
* laas.el: Fix package URL in commentary.
2021-03-07 15:34:34 +08:00
Yoav Marco 68fe7dbfc0 Reformat snippet var declarations
I got better at elisp since writing them
2021-03-03 16:18:12 +02:00
Yoav Marco 3ec98eedaa Readme: use-package without !
use-package! is a Doom macro
2021-03-03 16:07:45 +02:00
Yoav Marco 4efdce2a7f Move space-after-expansion customization to a var 2021-03-03 14:34:34 +02:00
Yoav Marco ec54b34f1f Fix byte-compilation warnings: docstring and declare-function 2021-02-27 23:27:24 +02:00
TEC 1cb222fca8
Add org-mode support.
Closes #5
2021-02-18 01:01:28 +08:00
Yoav Marco bce4c73cb5 Move laas to a separate minor mode 2021-02-15 13:17:18 +02:00
Yoav Marco 624ccaabd5 Refactor shut-up-smartparens to affect only smartparens hooks 2021-02-15 10:48:45 +02:00
Yoav Marco 73af9755db Require auctex (for texmathp) 2021-02-15 10:03:15 +02:00
Yoav Marco 94be752315 Uptade version to 0.2 2021-02-13 20:36:16 +02:00
Yoav Marco 25b23acd27 Adapt to aas 0.2 2021-02-13 20:35:50 +02:00
Yoav Marco f746d20222 Rename latex-auto-activating-snippets -> laas 2021-02-13 20:35:50 +02:00
Yoav Marco 61357ca1d3 Update version to 0.1, require aas 0.1 2021-02-13 20:35:49 +02:00
Yoav Marco 28899ade2e Add SPDX-License-Identifier 2021-01-24 18:14:32 +02:00
Yoav Marco 3de34729aa Reformat authors metadata 2021-01-24 18:05:07 +02:00
Yoav Marco eee2edf149 Re-align a few snippets 2021-01-24 18:00:22 +02:00
Yoav Marco 091b127bff Rename {aas -> laas}-object-on-left-condition
Not sure why we had the aas prefix there
2021-01-24 18:00:22 +02:00
Yoav Marco 5c21424c12 Add Xm1 -> _{X-1} snippets
Complementary to Xp1 -> _{X+1}
2021-01-24 18:00:22 +02:00
TEC 9ae5d21837
Make checkdoc and package-lint happier 2021-01-02 01:50:21 +08:00
TEC 126ff0160f
Hook conditional space appending to post-expansion 2021-01-02 01:49:18 +08:00
Yoav Marco 779e1cc7ac Update readme on min/max snippets 2020-12-05 17:39:40 +02:00
Yoav Marco e5a9628a25 Don't require a marco when selecting brace obj 2020-11-26 22:32:13 +02:00
Yoav Marco cf800d32ab Support sub/superscripts as extending the tex obj 2020-11-26 22:31:09 +02:00
Yoav Marco a984104027 Add min & max snippets 2020-11-26 13:10:57 +02:00
Yoav Marco 262d4035d3 Don't enable auto space by default
I myself found it more trouble than its worth. Maybe if succesive
insertions fixed spacing...
2020-11-18 21:18:47 +02:00