MathsCodeBook
A comprehensive LaTeX template for generating high-quality maths books with custom environments and code snippets
Install / Use
/learn @YuriODev/MathsCodeBookREADME
📚 MathsCodeBook
MathsCodeBook is a comprehensive LaTeX template designed to generate high-quality math books with custom environments, code snippets, and advanced formatting. 📘
🔧 Key Features
- Custom Environments: Predefined environments for theorems, corollaries, lemmas, propositions, exercises, and more, with distinct color-coded boxes using
tcolorbox. - Syntax Highlighting: Built-in support for Python and C++ code snippets with syntax highlighting using
minted. - Advanced Typography: Fully customizable font and layout settings (supports Montserrat, MathPazo, etc.) with headers, footers, and section titles styling.
- Integrated Charts and Diagrams: Seamlessly embed TikZ, PGFPlots, and standalone graphics for charts, call stacks, and more.
- Professional Title Pages: Customizable title and table of contents pages to match the style of the book.
- Compatibility: Can be compiled using XeLaTeX and pdfLaTeX.
- Compiles with:
pdfLaTeX,XeLaTeX, andLuaLaTeX.
🌟 Example Content Previews
| Title Page | Table of Contents |
|----------------------------------------------------|-----------------------------------------------------|
| A beautifully designed title page with custom title, author name, and logos. | Auto-generated, customizable table of contents. |
|
|
|
| Chapter 1 Opening | Python & C++ Code Snippets |
|----------------------------------------------------|-----------------------------------------------------|
| Elegant chapter opening with theorems and formatting. | Syntax-highlighted Python and C++ code snippets. |
|
|
|
| Time Complexity Chart | Recursion Call Stack |
|----------------------------------------------------|-----------------------------------------------------|
| Visually clear time complexity chart. | Recursion call stack visualization using LaTeX. |
|
|
|
🚀 Quick Start
- Clone the repository:
git clone https://github.com/YurioDev/MathsCodeBook.git - Compile the template:
- Using XeLaTeX or pdfLaTeX.
- Make sure you have
mintedandtcolorboxpackages installed.
- Customize your content:
- Add your own chapters in the
Chapters/folder. - Modify the
main.texandstyles.clsfiles for additional customization.
- Add your own chapters in the
📂 Directory Structure
.
├── Chapters
│ ├── ch01
│ │ ├── chapter01.tex
│ │ ├── quadratic_solver.py
│ │ ├── sine_limit.cpp
│ │ └── snippet_python.py
│ ├── ch02
│ │ ├── big_o_graph.tex
│ │ ├── bubble_sort.py
│ │ ├── chapter02.tex
│ │ ├── recursion_stack.tex
│ └── ch03
│ ├── chapter03.tex
│ └── eigenvalues.py
├── Example_pages
│ └── MathsCodeBook_Extracted_Title_Page.pdf
├── MathsCodeBook_by_YurioDev.pdf
├── main.tex
└── styles.cls
💻 Supported Compilers
- XeLaTeX (Recommended for full feature support)
- LuaLaTeX
- pdfLaTeX
🔗 Useful Links
- Overleaf Template:
- Report an Issue: Report here
🌟 Latest Version: 1.0
Released: September 2024
- Improved theorem formatting
- Added custom syntax highlighting for Python and C++
- Optimized tcolorbox usage for better customization
🚧 Upcoming Features
- In-depth User Guide: A full guide to setting up and customizing your documents.
- Template Customization: More detailed descriptions on how to alter environments, typography, and add/remove features.
- Advanced TikZ Diagrams: In-depth tutorials on creating complex diagrams and charts.
- LaTeX Package Explanations: Walkthroughs of the packages used and their configurations.
- Additional Code Snippets: More languages with syntax highlighting support.
- CI/CD Integration: Automated testing and deployment for LaTeX documents.
📜 License
Distributed under the CC0 License. See LICENSE for more information.
💡 Acknowledgements
Inspired by the Alephsub0 Project and their amazing LaTeX book template. @alephsub0
🎉 Contributors
- Yurii Oksamytnyi (YurioDev) - Author and Developer
📞 Contact Me
Feel free to contribute by submitting a pull request! 😊
💖 Support the Developer
If you find this project helpful and would like to support its development, consider contributing through one of the following options:
Every contribution, no matter how small, helps and is greatly appreciated! 🙏
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
