Package: gbt9704
Version: 0.1 (Beta)
Date: 2026-06-22
License: LPPL-1.3c
Status: Beta - Feedback welcome

========================================
LaTeX Class for GB/T 9704-2012
Chinese Official Document Format
========================================

This package provides a LaTeX document class for typesetting
documents according to the Chinese national standard
GB/T 9704-2012 (Format of official documents of party and
government organs).

REQUIREMENTS
------------
* TeX Live 2020 or later (XeLaTeX required)
* CTEX package (included in TeX Live)
* memoir class (included in TeX Live)
* Fonts:
  - FangSong, SimHei, KaiTi, SimSun (standard Windows fonts)
  - FZDaBiaoSong-B06 (FangZheng DaBiaoSong) for red headers.
    If not installed, the class will automatically fall back
    to SimHei with fake bold, with a warning message.

OPTIONS
-------
* redline / noredline : Enable/disable red separator line under header.
  (Default: noredline)
* titleindent / notitleindent : Enable/disable first-line indentation
  for section titles. (Default: titleindent, complying with standard)

USAGE EXAMPLE
-------------
\documentclass[redline]{gbt9704}
\title{国务院关于XXX的通知}
\begin{document}
\maketitle
\section{一、总体要求}
\subsection{（一）指导思想}
正文内容...
\end{document}

MAIN COMMANDS
-------------
* \gongwentitle{...}   - Main title (No.2 DaBiaoSong, centered)
* \gongwensubtitle{...}- Subtitle (No.3 FangSong, centered)
* \mainreceiver{...}   - Main receiver (left-aligned, No.3 FangSong)
* \attachmentHZ{...}   - Single attachment (with "附件：" prefix)
* \attachmentNOHZ{...} - Single attachment (without prefix)
* attachments environment - Multiple attachments with \attachmentitem
* \signature{...}      - Signature (right-aligned)
* \signdate{...}       - Date (right-aligned)
* \copyto{...}         - CC list
* \issueinfo{Org}{Date}- Issuing organ and date
* \seprule             - Separator line for page footer area
* \notes{...}          - Notes in parentheses

KNOWN ISSUES / LIMITATIONS
--------------------------
* This is a Beta release. Command names and interfaces may change
  in future versions based on user feedback.
* The class relies on XeLaTeX; pdflatex is not supported due to
  font encoding requirements.

INSTALLATION
------------
Copy gbt9704.cls to:
$TEXMF/tex/latex/gbt9704/
or simply place it in the same folder as your .tex file.

Compile with XeLaTeX:
xelatex document.tex

CONTRIBUTION & FEEDBACK
-----------------------
Bugs, feature requests, and contributions are welcome.
Please submit via https://github.com/songwupei/gbt9704-latex
or email: songwupei@163.com

CHANGELOG
---------
v0.1 (2026-06-22) - Initial Beta release.
- Core functionality for GB/T 9704-2012 compliance.
- Font fallback mechanism for FZDaBiaoSong.
- Options: redline, titleindent.
- Commands: title, section/subsection, attachments, signature, etc.
