This is the LaTeX source for the textbook Introduction to modular forms (in Chinese: 模形式初步), revised version (April 2022).
The book has been published by Science Publishing (Beijing), June 2020. ISBN: 978-7-03-064531-9; the revised version will be published soon. The PDF version and the errata are also available on the author's web page.
The files are to be compiled using XeLaTeX with the xeCJK package. The reader is assumed to work under the UN*X + bash environment.
The recipes below can be tweaked to work under Windows, but this is not recommended. The simplest solution is to go open-source.
We only need the standard packages and fonts, such as
The author apologizes for these strange configurations of fonts. One may also try to modify these settings in the file font-setup-open.tex.
Please make sure that all the relevant packages/programs are installed. For reference, the author made the compilation using Arch-based Linux distributions with TeX Live 2020; the packages biber and texlive-science are required.
Assume that Git has been installed on your computer. As a preparation for the compilation process, we will clone the files into
~/Modulform in our home directory. In command line, type
cd ~ git clone https://github.com/wenweili/Modulform
All the source files are encoded in UTF-8, the de facto standard for storing multilingual texts. If you encounter problems in opening the source files under Windows, try to re-configure your editor or convert the encoding manually.
Make sure that the necessary pacakges and fonts are installed and move to the directory we just cloned
Then, either type
latexmk -pdf -pdflatex="xelatex -shell-escape -interaction=nonstopmode %O %S" Modulform
under bash, or more simply
Have a cup of coffee since this will take several minutes. The resulting PDF file should appear as Modulform.pdf in the same directory. Note that the main file is Modulform.tex.
To clean up everything in our directory except the PDF file, type
The book is written in the AJbook class (AJbook.cls). The document class is originally designed for the book Methods of Algebra, Volume 1. Please refer to that page for further illustrations.
The errata is produced from Errata-Modulform.tex, which is based on the really simple document class file AJerrata.cls bundled with the AJbook class. Apart from the standard fonts bundled with TeX, it also depends on Noto Serif CJK SC and Noto Sans CJK SC; you can install them from Noto CJK fonts.
To compile the errata, type
in the same directory.
In case of problems of compilation, please kindly report to the author. Make sure that all the system requirements above are met, and provide detailed error messages. Other suggestions are also welcome.
The entire codebase is under CC BY 4.0.