% ============================================================
% main.tex
% 學測/分科數學考科試題 LaTeX 模板 ── 主文件
% ============================================================
% 版本:2.0.0
% 日期:2026年2月5日
% 編譯引擎:XeLaTeX
% ============================================================
% 【專案結構】
% main.tex ← 本檔案:專案入口
% setup/ ← 設定層
% ├── packages.tex ← 套件載入
% ├── fonts.tex ← 字型設定
% ├── sizes.tex ← 字號變數
% ├── commands.tex ← 自訂命令
% └── headers.tex ← 頁首頁尾
% parts/ ← 內容層
% ├── titlepage.tex ← 標題頁
% ├── body.tex ← 題目內容
% └── reference.tex ← 參考公式容器
% formulas/ ← 公式庫
% ├── math_a.tex ← 數 A 公式
% ├── math_b.tex ← 數 B 公式
% ├── math_j.tex ← 數甲公式
% └── math_y.tex ← 數乙公式
% fonts/ ← 字型檔案目錄
% ├── mingliu.ttc ← 細明體
% └── TW-kai.ttf ← 標楷體
% ============================================================
\documentclass[twoside]{article}
% ============================================================
% 全域變數設定
% ============================================================
% 考試資訊(會自動帶入標題頁與頁首)
\newcommand{\examType}{\LaTeX 模板} % 考試類別(ex. 115年學測)
\newcommand{\examSubject}{2.0.0 使用手冊} % 考科名稱(ex. 數學A考科)
% 公式類型(選擇載入哪個公式檔案,若無則留空即可)
\newcommand{\formulaType}{}
% ├── math_a ← 數A
% ├── math_b ← 數B
% ├── math_j ← 數甲
% └── math_y ← 數乙
% ============================================================
% 設定層載入
% ============================================================
\input{setup/packages} % 套件載入
\input{setup/sizes} % 字號變數
\input{setup/fonts} % 字型設定
\input{setup/commands} % 自訂命令
\input{setup/headers} % 頁首頁尾
\begin{document}
% ============================================================
% 內容層載入
% ============================================================
\input{parts/titlepage} % 標題頁
\input{parts/body} % 題目內容
\input{parts/reference} % 參考公式
\end{document}