Mathematics article in a clean style (einfart)
Jinwen Xu's einfart class for mathematical articles in a simple, clear layout, with several styles (default, classical, classicthesis, flow, plain, stream), boldface titles, theorem environments numbered by section, clever references and multilingual headings (English, French, German, Chinese, Japanese, Russian); the demo shows the default style with authors, addresses, abstract and theorems. XeLaTeX with TeX Gyre Pagella.
- Category
- Journal
- Document class
einfart(einfart.cls) — ships with TeX Live- Workflow
- Journal manuscript — submissions and revision rounds
- Author
- Jinwen Xu (einfart)
- Source
- Jinwen Xu (einfart)
- Licence
- einfart.cls: LaTeX Project Public License (installed with TeX). The sample text is Jinwen Xu (einfart)'s, provided for authors preparing a submission.
These are the publisher’s own files. This project starts from Jinwen Xu (einfart)’s package for this publication — their manuscript, their einfart.cls, their bibliography style — so what compiles here is what they would have given you.
Check Jinwen Xu (einfart)’s author pages for the current instructions.
Where this differs from the publisher’s download.
- Added: KpMath-Sans.otf: TeX Live's KpMathSans-Regular.otf (kpfonts-otf, OFL) under the file name einfart.cls asks for; kpfonts-otf renamed the font after einfart was written, minimalist.font.cjk: three lines setting the Fandol CJK fonts, read by the class option "load custom cjk font file" in place of its Source Han search — Jinwen Xu (einfart)’s package references these without including them, so the project would not have built as downloaded.
- Changed: einfart-demo-style-default.tex: the class option "load custom cjk font file" is added and minimalist.font.cjk (Fandol fonts from TeX Live) is supplied, because the class's default CJK set-up searches for the Source Han fonts, which are not installed, and those searches took the build to about 55 seconds; and a label hook defines \p@<name>_crthm_regional and \the<name>_crthm_regional from the theorem's own counter, because create-theorem's labels refer to them and current LaTeX leaves them undefined ("Undefined control sequence" at every \label in a theorem). KpMath-Sans.otf is supplied as described below (2026-11-23)..
What you get
KpMath-Sans.otf· 290 KBeinfart-demo-style-default.tex— the file that is compiled · 4 KBminimalist.font.cjk· 393 B
These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.
Link to this template. Send it to a student or co-author: it starts a new paper in this template, through sign-up if they need an account.
https://manulyx.com/start/ctan-einfart
Source
KpMath-Sans.otf — binary, 290 KB
einfart-demo-style-default.tex — the file that is compiled · 4 KB
\documentclass[a4paper, 11pt,
% The class's own CJK set-up searches for the Source Han fonts, which are not
% installed (each failed search costs seconds); minimalist.font.cjk beside this
% file sets the Fandol fonts from TeX Live instead.
load custom cjk font file,
% use font = times, % garamond, newcm, lmodern, ...
use osf,
% use indent = false,
title in boldface,
% title in scshape,
% title in sffamily,
theorem in new line,
emphasize theorems,
theorem numbering = section,
% number theorems separately,
simple name, % for clever referencing
name in link, % for clever referencing
]{einfart}
\usepackage{ProjLib}
\usepackage{blindtext}
% A \label in a theorem-like environment refers to the counter <name>_crthm_regional
% (create-theorem's "name as context" mode), for which current LaTeX defines neither
% \p@... nor \the...; they are taken from the theorem's own counter when first needed.
\makeatletter
\ExplSyntaxOn
\hook_gput_code:nnn { label } { einfart-sample }
{
\str_set:Nx \l_tmpa_str { \@currentcounter }
\str_if_in:NnT \l_tmpa_str { _crthm_regional }
{
\str_remove_all:Nn \l_tmpa_str { _crthm_regional }
\cs_if_exist:cF { the \@currentcounter }
{ \cs_gset:cpx { the \@currentcounter } { \exp_not:c { the \l_tmpa_str } } }
\cs_if_exist:cF { p@ \@currentcounter }
{ \cs_gset:cpx { p@ \@currentcounter } { \exp_not:c { p@ \l_tmpa_str } } }
}
}
\ExplSyntaxOff
\makeatother
%% \UseLanguage{French}
\numberwithin{equation}{section}
\SwitchTheoremNumbering{example,examples,claim}
\begin{document}
\title{Your paper}
\author{Author One}
\address{Address of Author One}
\email{\href{mailto:[email protected]}{[email protected]}}
%% \thanks{The first author is indebted to...}
\author{Author Two}
\address{Address of Author Two}
\email{\href{mailto:[email protected]}{[email protected]}}
%% \thanks{The second author would like to thank the support of...}
\subjclass{XXXXX}
%% \keywords{AAA, BBB, CCC}
\date{\today[only-year-month]}
%% \date{\TheDate{2026-01}}
\maketitle
\begin{abstract}
Some abstract. \blindtext
\end{abstract}
\begin{keyword}
AAA, BBB, CCC
\end{keyword}
\tableofcontents
\section{Section title}
\subsection{Subsection title}
Some introductory text.
\begin{definition}[something]
Define something.
\end{definition}
\begin{theorem}[some result]\label{thm:result}\index{Theorem on some result}
The statement.
\end{theorem}
\begin{emphasis}
Clever reference: \cref{thm:result} (only name: \namecref{thm:result}, only number: \labelcref{thm:result}).
\end{emphasis}
An equation:\index{Euler's equation}
\begin{equation}\label{eq:Euler}
\mathrm{e}^{\mathrm{i}\pi} + 1 = 0.
\end{equation}
\begin{emphasis}
Reference of equation: \eqref{eq:Euler} or \cref{eq:Euler}.
\end{emphasis}
\SetTheorem{corollary}{shared counter = subsubsection}
\begin{corollary}[of \cref{thm:result}]\label{cor:result}
Some corollary.
\end{corollary}
\SetTheorem{corollary}{shared counter = subsection}
\begin{proof}
Some lines of proof.
\end{proof}
\begin{examples}
\begin{enumerate}
\item First example.
\item Second example.
\item Third example.
\end{enumerate}
\end{examples}
\begin{example*}[Important example]
The numbering is switched in the preamble, thus \verb|example*| is the numbered version while \verb|example| is the unnumbered version.
\end{example*}
\begin{proof}[Proof of \cref{thm:result}]
Some lines of proof.
\end{proof}
\blinddocument
\printindex
\end{document}
minimalist.font.cjk — binary, 393 B
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗