Skip to content

Add LaTeX and BibTeX modes with tested highlighting and indentation#2117

Draft
tani wants to merge 1 commit intolem-project:mainfrom
tani:latex-mode
Draft

Add LaTeX and BibTeX modes with tested highlighting and indentation#2117
tani wants to merge 1 commit intolem-project:mainfrom
tani:latex-mode

Conversation

@tani
Copy link
Copy Markdown
Contributor

@tani tani commented Mar 3, 2026

Caution

This is AI generated code

I create a latex-mode and bibtex-mode related to #2066 .

@vindarel
Copy link
Copy Markdown
Collaborator

vindarel commented Mar 3, 2026

Hi, looks impressive. Did you use it for a few days?

Do all functions and variables that live in the lem-bibtex/latex-mode packages need a "bibtex-" prefix? (mostly thinking about the utility functions)

(defun bibtex-line-blank-p (line)
(uiop:emptyp (string-trim '(#\space #\tab) line)))

and latex-line-blank-p

=> what about str:blankp ? This avoids re-implementing a utility function.

(defun get-point-at-line-char …]

is duplicated between bibtex an latex tests.

(defun attribute-at …]

also

(defun calc-indent-at-line …)

too

@tani
Copy link
Copy Markdown
Contributor Author

tani commented Mar 3, 2026

Thank you! Please note that this is currently a draft Pull Request. I’ve just finished the initial script and haven't put it into active use yet, so it isn't quite ready for a formal review. I’d appreciate one to two weeks to polish the code quality. Thanks for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants