scientificarticle.page.titleprefix
LATEX macro templates for paragraph numbering and matrix formatting

Loading...
Thumbnail Image

Journal Title

Journal ISSN

Volume Title

Publisher

Abstract

In order to create scientific, educational, and technical documents, the LATEX system is often used. The system has a mechanism of macros that automate repetitive tasks when called. In this article, the method for programming new macros was used in the LATEX2ε version of this system. The /NoP macro template and its modification /NoPm were created: they automate paragraph numbering when any of these macros is called. These macros can also automate the numbering of other elements of a document when any of these macros is called. These macros function without using any packages. The /matrfirst and /matrappar macro templates were created to automate matrix formatting when these two macros are called together. At the same time, a fixed-template workaround was introduced to bypass the limitation of the /newcommand command that itself does not allow creating macros that accept more than nine arguments. The results of the evaluation of the created /NoP and /NoPm macros confirmed their value as a convenient tool for automating paragraph numbering when any of these macros is called, and the results of the evaluation of the created /matrfirst and /matrappar macros confirmed their value as a convenient tool for automating formatting matrices with entries not limited to nine when these two macros are called together. When called, the created macros reduce the probability of making an error. They increase the readability of the source code by reducing the number of commands that are not related to the content of the document.

Description

Keywords

matrix algebra, code, LATEX

Citation

Hubal H. M. LATEX macro templates for paragraph numbering and matrix formatting. AIP Advances. 2026, Vol. 16, Iss. 9. 095010. https://doi.org/10.1063/5.0345527

Endorsement

Review

Supplemented By

Referenced By