Abstract:A solution with regular expressions and styles combined together has thus been proposed to address the issue of automatic typesetting of documents with standardized formats. Firstly, a definition is given for the standardized style in the document; next, paragraph styles are to be found and set by using regular expressions; finally, daily editing tasks are to be executed by recording code through macros. The proposed scheme can be implemented in the validation case of the journal, with the results showing that it can efficiently achieve automatic typesetting of standardized documents, and most documents can be typeset within 3 seconds.