Generalized Model and Creation of Macros for Keywords, Text Visibility, and Language Choice

Halyna M. Hubal · Baltic Journal of Modern Computing · 2026

The article presents the methodology and generalized model of the creation of macros in the L A T E X system and considers the problems of the creation and use of macros that provide flexibility in text formatting, facilitate working with the L A T E X system, increase productivity of it, and are motivated by the needs of preparing scientific, technical, and educational documents.In the article, we created a new macro for keywords that enables to mark any text element with a keyword that is not printed to the output PDF file.This keyword can be printed to the output PDF file by an inner macro of the macro for keywords each time the inner macro is called.If we mark any text element (a previously selected text element or another one) with another keyword by calling the macro for keywords, then the updated keyword is printed by the inner macro of the macro for keywords each time the inner macro is called.A new macro that provides a way to make a given box of a text invisible or visible in the output PDF file was created in the article.We created a new macro that prints a text in a selected language to the output PDF file created from a L A T E X document in which the text is written in several languages.

Read the paper · More papers on PaperTik