This guide provides detailed instructions for using the LaTeX templates in this repository.
📌 Source: These templates are sourced from MIStatlE/math-to-ml-. Special thanks to the original authors!
Noto Serif CJK SC or FandolSongTimes New Roman.tex file in your preferred editorA clean Chinese article template optimized for academic papers and research notes.
Features:
ctexalgorithm2e)Best for: Chinese academic papers, research reports, course notes
Traditional lecture notes format inspired by academic course materials.
Features:
tcolorboxBest for: Course lecture notes, tutorials, academic handouts
A visually appealing modern template with sidebar design elements.
Features:
Best for: Technical blog posts, series articles, modern academic notes
Enhanced version with beautiful colored theorem environments.
Features:
\KeyIdea, \Term, \Emph, \Confuse)Best for: Mathematics papers, proof-heavy documents, advanced lecture notes
Complete book template with frontmatter, mainmatter, and backmatter.
Features:
Best for: Textbooks, comprehensive guides, thesis documents
All templates use a consistent color palette that you can customize:
\definecolor{brand}{HTML}{1A9D8F} % Primary teal
\definecolor{brandD}{HTML}{2A7F6F} % Dark teal
\definecolor{keybg}{HTML}{E8F4F1} % Light teal background
\definecolor{keydark}{HTML}{2F5E58} % Dark teal for text
\definecolor{accent}{HTML}{FF6B6B} % Accent red
\definecolor{accentD}{HTML}{D94F4F} % Dark accent red
Modify page dimensions in the geometry package:
\geometry{paperwidth=7.5in, paperheight=10in, margin=0.7in}
For standard A4:
\geometry{a4paper, margin=1in}
Change the main font:
\setmainfont{Your Font Name}
\setCJKmainfont{Your CJK Font} % For Chinese
Customize using fancyhdr:
\fancyhead[L]{Left Header}
\fancyhead[R]{Right Header}
\fancyfoot[C]{\thepage}
\begin{theorem}[Optional Title]
Your theorem statement here.
\end{theorem}
\begin{lemma}
A supporting lemma.
\end{lemma}
\begin{definition}[Key Concept]
Your definition here.
\end{definition}
\begin{proof}
Your proof steps here.
\end{proof}
% Custom proof title (Chinese)
\begin{proof}[证明]
证明步骤...
\end{proof}
\begin{KeyBox}
Main insight or key concept to remember.
\end{KeyBox}
\begin{Takeaway}
Summary of important points.
\end{Takeaway}
\begin{Example}
A worked example demonstrating the concept.
\end{Example}
\begin{SideBar}
\textbf{Context:} Background information or reading notes.
\end{SideBar}
\KeyIdea{Important concept} % Light teal background
\Term{Technical term} % Deep blue bold text
\Emph{Emphasized text} % Red bold text
\Confuse{Unclear part} % Red background highlight
\Info{Additional information} % Blue informational text
# Single compilation
xelatex document.tex
# With bibliography
xelatex document.tex
biber document
xelatex document.tex
xelatex document.tex
Add to your settings.json:
{
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": ["xelatex"]
}
]
}
Error: Font "Noto Serif CJK SC" not found
Solution: Install the font or use the fallback:
\setCJKmainfont{FandolSong}
Solution: Ensure you’re using XeLaTeX or LuaLaTeX, not pdfLaTeX.
Error: Option clash for package xxx
Solution: Load conflicting packages before \documentclass or remove duplicate loads.
Solution: Make sure you have tcolorbox with the most library:
\usepackage[most]{tcolorbox}
Solution: Check for missing packages or typos in command names.
These LaTeX templates are sourced from:
We extend our gratitude to the original authors for creating and sharing these beautiful templates.
For additional help, please open an issue on the GitHub repository.