Skip to content

Instantly share code, notes, and snippets.

View kdmsnr's full-sized avatar

Masanori Kado kdmsnr

View GitHub Profile
@kdmsnr
kdmsnr / latex-imenu.el
Last active November 9, 2022 06:56 — forked from kenoss/my-tex-imenu.el
TeXで階層imenu(適当)
(defun latex-create-imenu-index ()
(let ((index '())
(pattern (rx "\\" (group (or "part" "chapter" "section" "subsection" "paragraph" "subparagraph"))
"{" (group (* (not (any "}")))) "}"))
(pairs '(
(part . 0)
(chapter . 0)
(section . 2)
(subsection . 4)
(paragraph . 6)