Let me share a piece of code to quickly add title and author info:
(kbd-map (:mode in-text?) ("M E" (insert '(document (doc-data (doc-title "") (doc-author (author-data ;; Your name here (author-name "Your name here") ;; Your institute here (author-affiliation (document "Your institute here")) ;; email@example.com (author-email "firstname.lastname@example.org"))))))))
Move the cursor to the head of your article, type
ME, you will be seeing the author info added automatically.
There is a
make-doc-data-element function, but I do not how to use it.