安徽科技工程大学 · 本科生科研社团Anhui Science and Technology University · Undergraduate research society
安科科学梦之队AHSTU Future Scientists

帮助与排版指南Help & Formatting

本页详细说明如何在科学梦之队学术论坛中撰写 LaTeX 数学公式、Markdown 文档、代码与实验数据表,以及板块规范与账号机制。全站公式引擎已在本地自包含,无需外部网络即可完整渲染。A complete reference for writing LaTeX math, Markdown prose, code blocks, and data tables on the AHSTU Future Scientists forum, along with category guidelines and membership rules. All math fonts are self-hosted for reliable rendering.

快速原则Quick principle

请使用 $...$ 书写行内公式,请使用 $$...$$ 书写独立居中公式,请使用 ```语言名 包裹代码块;提交前请使用编辑器右上角的「预览」核对渲染效果。Please use $...$ for inline math, please use $$...$$ for centered display equations, and please use ```lang for fenced code blocks. Always use Preview before publishing.

01数学公式基础Math basics

论坛内置自包含的 KaTeX 0.16.21 排版引擎,并在 Markdown 解析之前优先提取数学公式与代码块,因此公式内部的下划线 _、星号 * 与反斜杠不会被误判为斜体或转义符。

The forum embeds a self-hosted KaTeX 0.16.21 engine and tokenizes math and code before parsing Markdown, so underscores _ and asterisks * inside formulas are never corrupted.

  • 行内公式:请使用成对的单美元符号 $...$(或标准 LaTeX 写法 \(...\))包裹行内变量与短表达式;请使用紧凑写法,不要在起止 $ 紧邻处留空格(例如请使用 $g_T(n)$,而不要写成 $ g_T(n) $)。
  • Inline math: Please use single dollar signs $...$ (or \(...\)) for inline variables and expressions; please avoid spaces directly inside the opening and closing $ (e.g. please use $g_T(n)$ rather than $ g_T(n) $).
  • 独立公式块:请使用成对的双美元符号 $$...$$(或 \[...\])并单独占行来书写定理公式、长等式与多行推导;超宽公式在手机端会自动支持左右滑动。
  • Display equations: Please use double dollar signs $$...$$ (or \[...\]) on their own lines for theorems, long equations, and multi-line derivations. Wide equations automatically scroll horizontally on mobile.
  • 在正文中书写字面上的美元符号:当需要表示金额或命令行符号且不希望触发公式时,请使用反引号 `$100`,或请使用斜杠转义 \$(同一段内只有单个 $ 且前后有空格时也不会误触发公式)。
  • Literal dollar signs in prose: Please use inline code backticks `$100` or backslash escaping \$ whenever you need literal dollar signs in text.
  • 自定义算子名:书写正体数学算子(如 mex、Var、argmax)时,请使用 \operatorname{mex} 或内置命令 \gcd、\lim、\sum,以区分正体算子与斜体变量。
  • Named operators: Please use \operatorname{mex} or standard commands such as \gcd, \lim, and \sum so operators render upright rather than italic.
用途Purpose 请使用如下写法Please use 实际渲染效果Rendered output
行内公式Inline math $g_T(n) = \operatorname{mex}\{g_T(n-s) : s \in T,\, s \le n\}$
括号定界行内公式Paren inline math \(c \equiv r \pmod{q}\)
独立公式块Display equation $$p(g_{S \cup \{c\}}) = \frac{c^2 + 26c + 615}{30}$$
方括号定界公式块Bracket display \[\ell(g_T) = (t + 1)P - 2 \sim \frac{c^2}{15}\]

02常用 LaTeX 数学记号速查Common LaTeX notation reference

撰稿与讨论时,请使用下表中的标准 LaTeX 命令。所有右侧示例均由本站 KaTeX 引擎实时渲染,与你发帖后的最终显示完全一致。

Please use the standard LaTeX commands below when writing proofs and discussions. Every example on the right is rendered live by the same KaTeX engine used in forum posts.

类别Category 请使用如下语法Please use 渲染效果Result
上下标与多字符分组Sub/superscripts x_{i,j}^{(k)} + 2^{n+1}
分式、根号与二项式Fractions & binomials \frac{a+b}{c},\; \sqrt[k]{n},\; \binom{n}{k}
求和、连乘与积分Sums & integrals \sum_{i=1}^{n} a_i,\; \prod_{p \le x} p,\; \int_0^\infty e^{-t}\,dt
极限与渐近记号Limits & asymptotics \lim_{c \to \infty} \frac{p(g_T)}{c} = \infty,\; O(c^2),\; \Theta(n \log n)
集合与逻辑量词Sets & quantifiers \forall s \in S \cup \{c\},\; \exists n \ge 0,\; A \cap B = \emptyset
数集与黑板粗体Blackboard bold \mathbb{N},\; \mathbb{Z},\; \mathbb{Q},\; \mathbb{R},\; \mathbb{C},\; \mathbb{E}[X]
不等号、同余与整除Relations & modular \le,\; \ge,\; \ne,\; \approx,\; \equiv,\; a \mid b,\; \lfloor rT \rfloor
希腊字母与花体Greek & calligraphic \alpha, \beta, \delta, \ell, \lambda, \tau, \Omega,\; \mathcal{O}, \mathcal{F}
推理箭头与概率统计Arrows & probability P \implies Q,\; A \iff B,\; \hat{\theta},\; \bar{x},\; \mathbf{w}^\top \mathbf{x}
公式内中文与正体说明Text inside math w_T(n) = \mathbf{1}\{g_T(n)=0\},\quad \text{其中 } n \ge 0

03多行推导、分段函数与矩阵Aligned derivations, cases & matrices

  • 多行等号对齐推导:请使用 \begin{aligned} ... \end{aligned} 嵌套在 $$...$$ 内部,请使用 &= 标出对齐位置,请使用 \\ 换行。
  • Multi-line aligned derivations: Please use \begin{aligned} ... \end{aligned} inside $$...$$, use &= to align equals signs, and use \\ for line breaks.
  • 分段定义与分类讨论:请使用 \begin{cases} ... \end{cases} 书写分段函数或奇偶分情况讨论。
  • Piecewise definitions: Please use \begin{cases} ... \end{cases} for piecewise formulas and case splits.
  • 矩阵与向量:圆括号矩阵请使用 \begin{pmatrix}...\end{pmatrix},方括号矩阵请使用 \begin{bmatrix}...\end{bmatrix},行列式请使用 \begin{vmatrix}...\end{vmatrix}。
  • Matrices and vectors: Please use \begin{pmatrix}...\end{pmatrix} for parenthesized matrices, \begin{bmatrix}...\end{bmatrix} for bracketed matrices, and \begin{vmatrix}...\end{vmatrix} for determinants.
请使用如下源码Please use this source
$$
\begin{aligned}
(6t + 4)a - 12tb - P &= 1, \\
\gcd(P, a, b) &= 1.
\end{aligned}
$$
渲染效果Rendered output
请使用如下源码Please use this source
$$
w_T(n) = \begin{cases}
1, & g_T(n) = 0 \text{(先手必败)}, \\
0, & g_T(n) > 0 \text{(先手必胜)}.
\end{cases}
$$
渲染效果Rendered output
请使用如下源码Please use this source
$$
M = \begin{pmatrix}
\mathrm{PP} & \mathrm{PB} \\
\mathrm{BP} & \mathrm{BB}
\end{pmatrix}
$$
渲染效果Rendered output

04Markdown 文本结构与表格Markdown structure & tables

为了保证长篇证明、文献笔记与实验报告层次清晰,请使用以下标准 Markdown 语法;所有原始 HTML 标签均会被自动转义以确保社区安全,请勿直接粘贴 HTML。

Please use standard Markdown below to structure proofs, reading notes, and experimental reports. Raw HTML tags are automatically escaped for security.

  • 章节标题:请使用 ## 二级标题、### 三级标题 划分小节(井号后请保留一个空格)。
  • Section headings: Please use ## Heading and ### Subheading (with a space after the hashes).
  • 文字强调:加粗请使用 **重要结论**,斜体请使用 *斜体术语*,删除线请使用 ~~已修正猜想~~。
  • Emphasis: Please use **bold**, *italic*, and ~~strikethrough~~.
  • 列表与步骤:无序列表请使用 - 条目,有序证明步骤或实验清单请使用 1. 第一步。
  • Lists: Please use - item for bullet lists and 1. step for numbered steps.
  • 引用文献或定理原文:请使用 > 引用内容 形成左侧朱红竖线引用块;分隔大段内容请使用单独一行的 ---。
  • Blockquotes & dividers: Please use > quote for callout quotes and --- on its own line for a horizontal rule.
  • 超链接与论文引用:请使用 [arXiv:2611.28065](https://arxiv.org/abs/2611.28065) 格式插入外部文献、代码仓库或补充材料链接(仅支持 http://、https://、mailto: 与站内相对路径)。
  • Links & citations: Please use [arXiv:2611.28065](https://arxiv.org/abs/2611.28065) for preprints, repositories, and supplements.
  • 实验结果与参数表格:请使用竖线分隔的 Markdown 管道表格,并在表头下方放置 |---|---| 分隔行;表格单元格内同样支持行内 LaTeX 公式。
  • Tables: Please use pipe tables with a |---|---| header divider. Inline LaTeX works inside table cells as well.
表格源码示例(请使用如下格式)Table syntax (please use)
| 减法底集 $S$ | 可变步 $c$ | 最小周期 $p(g_T)$ |
|---|---|---|
| $\{4,5,10\}$ | $15t+13$ | $c + 19$ |
| $\{3,7,10\}$ | $90t+9$ | $(c^2+26c+615)/30$ |
表格渲染效果Rendered table

05代码片段与伪代码Code blocks & pseudocode

  • 行内代码与文件名:提及函数名、命令或校验和时,请使用成对的反引号,例如 `python verify_quadratic_subtraction_note.py`。
  • Inline code: Please use backticks for commands, identifiers, and filenames, e.g. `python verify.py`.
  • 多行代码块:请使用三个反引号 ```python 开头、三个反引号 ``` 结尾包裹脚本或算法实现。代码块内不会解析 Markdown 与 $ 符号,适合直接粘贴终端输出、Python/C++ 源码或 Shell 命令。
  • Fenced code blocks: Please use triple backticks with an optional language tag (e.g. ```python). Code blocks disable Markdown and math parsing, making them safe for terminal logs and source code.
代码块写法Fenced code input
```python
def mex(vals):
    s = set(vals)
    m = 0
    while m in s:
        m += 1
    return m
```
渲染效果Rendered output

06板块选择与学术发帖规范Categories & scholarly norms

发起新讨论时,请使用与内容最匹配的板块,并为帖子添加 1–5 个简洁标签(请使用英文逗号或中文逗号分隔,例如 减法博弈, 开放问题, Python)。

When starting a thread, please use the most fitting category and add 1–5 concise comma-separated tags (e.g. Sprague-Grundy, UCR, Python).

主板块 / 子版块Board / Sub-board 适用范围(请使用对应板块发布以下内容)What belongs here
科学 · 跨学科Science · Interdisciplinary 请使用本子版块发布交叉学科研究、前沿论文精读、新课题招募与跨院系合作讨论。Please use this sub-board for cross-disciplinary topics, paper reading notes, and project recruitment.
科学 · 数学Science · Mathematics 请使用本子版块发布组合博弈论、离散数学、分析与代数证明、反例构造及程序核验。Please use this sub-board for combinatorial games, discrete math, proofs, counterexamples, and verification scripts.
科学 · 物理Science · Physics 请使用本子版块发布理论物理、统计物理、光学、计算物理与物理实验讨论。Please use this sub-board for theoretical, statistical, optical, computational, and experimental physics.
科学 · 化学Science · Chemistry 请使用本子版块发布物理化学、有机与无机合成、材料表征、计算化学与文献探讨。Please use this sub-board for physical chemistry, synthesis, materials characterization, and computational chemistry.
科学 · 计算机与 AIScience · CS & AI 请使用本子版块发布机器学习、时间序列分析、算法理论、评测协议与开源代码复现。Please use this sub-board for machine learning, time-series modeling, algorithms, benchmarking, and reproducibility.
科学 · 生命科学Science · Life Sciences 请使用本子版块发布分子生物学、生物信息学、神经科学、生态与农学前沿研究。Please use this sub-board for molecular biology, bioinformatics, neuroscience, and agricultural/life sciences.
科学 · 其他科学Science · Other Sciences 请使用本子版块发布地球科学、天文学、工程科学及其他未单列学科的研究问题。Please use this sub-board for earth sciences, astronomy, engineering, and other scientific disciplines.
闲谈Lounge 请使用本板块发布新人自我介绍、科研工具与写作心得、学习生活交流与书籍推荐。Please use this board for introductions, research tools, writing workflows, and casual conversation.
公告Announcements 请使用本板块发布社团正式通知、招新安排、学术例会日程与论坛制度更新。Please use this board for official society notices, recruitment updates, seminar schedules, and forum policies.
  • 清晰描述问题背景:讨论特定论文或猜想时,请使用标准编号(如 arXiv:2611.28065、定理 1.1、表 2)并给出核心符号定义,方便不同年级与专业的同学直接跟进。
  • State context clearly: Please use explicit identifiers (e.g. arXiv:2611.28065, Theorem 1.1, Table 2) and define key symbols so readers from other years or majors can follow.
  • 区分已证结论与数值猜想:尚未给出严格证明的规律,请使用「猜想 / 数值样本(如 )」明确标注;提交实验数据时,请使用固定随机种子并附关键配置。
  • Separate proofs from conjectures: Please label empirical patterns as conjectures with their tested ranges, and include seeds and key settings for experiments.
  • 精准回复与互动:针对特定楼层展开讨论时,请使用该楼层下方的「↩ 回复此楼」按钮建立楼层引用链接;对严谨推导或有价值的补充,请使用「▲ 赞同」予以标记。
  • Focused replies: Please use the "↩ Reply" button on a specific floor to link your response, and please use "▲ Endorse" to highlight rigorous arguments or helpful insights.

07账号注册、邀请码与审核机制Accounts, invite codes & approval

  • 公开浏览:无需账号即可阅读全站论文解读、全部论坛主题与回复。
  • Public reading: No account is required to read research articles or browse forum threads.
  • 使用邀请码注册(即刻激活):如果你已获得社团管理员发放的邀请码(或带 ?invite= 的直通链接),请使用账号注册页填入邀请码,提交后账号立即激活并自动登录。
  • Registering with an invite code: Please use the registration form with your invite code (or open an invite link directly) for instant activation.
  • 无邀请码在线申请(管理员审核):暂时没有邀请码时,请使用同一注册页并将邀请码留空,在「申请说明」中简述年级、专业与研究兴趣;提交后也可加入社团 QQ 群 1126573474 联系管理员加快审核。
  • Applying without an invite code: Please use the same registration page, leave the invite code blank, and write a brief note about your major and interests. You may also join QQ Group 1126573474.
  • 维护个人学术名片:登录后,请使用账号中心 → 个人资料补充院系单位、研究简介、ORCID 主页链接与印章徽色;修改密码后系统会自动注销其他设备的旧会话。
  • Maintaining your profile: Please use Account → Profile to add your affiliation, bio, ORCID, and monogram tone. Changing your password automatically signs out other sessions.

08实时排版试写台Live formatting sandbox

不确定复杂公式或表格的显示效果?请使用下方试写台自由编辑(仅在你的浏览器本地运行,不会发布到论坛),右侧或下方会即时渲染最终排版结果。

Want to test a formula or table before posting? Please use the local sandbox below — everything renders live in your browser and nothing is published.

实时渲染预览Live preview