# reportTemplate_Ch **Repository Path**: duanyh_ASO/reportTemplate_Ch ## Basic Information - **Project Name**: reportTemplate_Ch - **Description**: 写中文报告用,不严谨,也不整齐,凑合能用。 - **Primary Language**: TeX/LaTeX - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-04-15 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # chreport 文档类说明 ## 📖 概述 `chreport` 是一个专为中文报告设计的 LaTeX 文档类,支持多种文档类型和中文排版。 ## 🚀 快速开始 ### 基本用法 ```latex\documentclass{chreport} \chtitle{文档标题} \chauthor{作者姓名} \chdate{\today} \begin{document} \maketitle \tableofcontents % 文档内容 \section{章节标题} 文档内容... \end{document} ``` ### 选择文档类型 ```latex\documentclass[article]{chreport} % 文章类型(默认)\documentclass[book]{chreport} % 书籍类型\documentclass[report]{chreport} % 报告类型 ``` ## 📋 命令参考 ### 标题设置 - `\chtitle{标题}` - 设置文档标题 - `\chauthor{作者}` - 设置作者姓名 - `\chdate{日期}` - 设置日期 ### 数学符号 - `\vect{变量}` - 向量:$\mathbf{x}$ - `\mat{变量}` - 矩阵:$\mathbf{A}$ - `\set{变量}` - 集合:$\mathbb{R}$ ### 快速插入 - `\insertfigure[选项]{文件名}{标题}{标签}` - 插入图片 - `\inserttable[选项]{表格内容}{标题}{标签}` - 插入表格 ## 🎨 功能特性 ### 中文支持 - 自动配置 xeCJK 中文支持 - 中文字体:SimSun(宋体) - 英文字体:Times New Roman - 中文换行和标点处理 ### 页面设置 - A4 纸张大小 - 左右边距:3cm - 1.5 倍行间距 - 自动生成目录 ### 数学环境 - 完整的数学公式支持 - 算法描述环境 - 代码高亮支持 ## 📦 包含的包 - `xeCJK` - 中文支持 - `geometry` - 页面设置 - `amsmath` - 数学公式 - `graphicx` - 图片插入 - `algorithm2e` - 算法描述 - `listings` - 代码高亮 - `hyperref` - 超链接 - `natbib` - 参考文献 ## 🔧 编译说明 ### 使用 xelatex(不要使用pdflatex) ```bashxelatex -interaction=nonstopmode your_document.tex ``` ## 🎯 使用建议 1. **图片放置**:将所有图片放在 `figure` 目录中 2. **标签命名**: - 公式:`eqn` 开头,如 `equEuler` - 图片:`fig` 开头,与图题相关 - 表格:`tab` 开头,与内容相关 3. **算法描述**:统一使用 `algorithm` 环境 ## 📞 技术支持 如有问题,请检查: 1. 确保使用正确的文档类名称 `chreport` 2. 检查中文字体是否可用 3. 使用 `-interaction=nonstopmode` 避免交互中断 --- *最后更新:2026年2月*