Debian Codegraph @

texmf-dist/doc/latex/simplesystemtex/README.md

raw
1 # SimpleSystemTeX
2
3 **An automated file & block management system for large-scale LaTeX typesetting.**
4
5 **SimpleSystemTeX** is a LaTeX package built on LaTeX3, specifically designed for large-scale, integrated typesetting tasks. Its core design philosophy is to maximize the **separation of content and structure**.
6
7 By freeing creators from constantly managing global document structure, anchors, and stylistic details, this package significantly reduces the maintenance burden of large documents. This approach is particularly beneficial for boosting efficiency when utilizing AI tools for text polishing or assisting.
8
9 ## Key Features
10
11 - **Automated File Management:** Treat "Sections" as independent subfiles. Import them sequentially to automatically build your document body.
12 - **Auto-Generated TOC:** Easily generate a Table of Contents (`\TableofContents`) that dynamically adapts to the sequence of your imported section files.
13 - **Block & Cross-Reference Integration:** Declare regular and anonymous block types (e.g., Theorems, Definitions, Proofs). Creating a block automatically generates anchors, allowing you to link them effortlessly without manually managing `\label` and `\ref`.
14 - **Automated Indexing:** Quickly generate indices for specific block types within any specific group/directory scope (`\MakeBlockIndex`).
15 - **Highly Flexible Styling Engine:** A powerful `\SetStyle` command that supports standard LaTeX commands, special display arguments (e.g., `@sectionname`), and conditionals (e.g., `#ifempty`) to customize the appearance of TOCs, headings, blocks, and links.
16
17 ## Building from Source
18
19 This project utilizes the standard LaTeX3 build system. If you are cloning this repository or downloading the raw source code, you can open your terminal in the project's root directory and run
20
21 ```bash
22 l3build unpack
23 ```
24
25 to generate the `simplesystemtex.sty` package file from the source files.
26
27 This command will use the included `build.lua` script to automatically process the source files and extract the ready-to-use `simplesystemtex.sty` file.
28
29 ## Typical Directory Structure
30
31 The system relies on a clean directory structure. By default, it looks for section files in the `./sec/` directory:
32
33 ```text
34 Project/
35 ├── main.tex % Your main LaTeX file
36 ├── simplesystemtex.sty % The package file (if not installed globally)
37 └── sec/
38 └── Group/ % Top-level group
39 ├── Subgroup/ % Second-level group
40 │ ├── Section1.tex % Section file
41 │ └── Section2.tex
42 ```
43
44 ## Quick Start
45
46 ### 1. Main File (`main.tex`)
47 ```latex
48 \documentclass{article}
49 \usepackage{simplesystemtex}
50
51 % Declare block types in the preamble
52 \NewBlockType{Theorem}
53 \NewBlockType*{Proof}
54
55 \begin{document}
56
57 % Generate the Table of Contents
58 \TableofContents
59
60 % Import sections (Paths are relative to the default './sec/' prefix)
61 \AddPart{Part A: Introduction}
62 \ImportSection{Group/Subgroup/Section1}(Custom Display Name)
63
64 \end{document}
65 ```
66
67 ### 2. Section File (`sec/Group/Subgroup/Section1.tex`)
68 Write your content using the declared block commands.
69
70 ```latex
71 \Theorem{thm-euler}{Euler's Identity}{
72 $e^{i\pi} + 1 = 0$
73 }
74
75 \Proof(Proof of Identity){
76 As we can see from \blclink{thm-euler}, the relationship between these fundamental constants is elegant...
77 }
78
79 % Insert a block index anywhere
80 \MakeBlockIndex{Group/Subgroup}[Theorem]
81 ```
82
83 ## Documentation
84
85 For comprehensive details on all commands, advanced styling configurations, and predefined styles, please refer to the official manual: `simplesystemtex.doc.pdf`.
86
87 ## Repository & Bug Tracker
88
89 - **GitHub Repository:** [https://github.com/JokerXin2025/SimpleSystemTeX](https://github.com/JokerXin2025/SimpleSystemTeX)
90 - **Author:** JokerXin2025 (<[email protected]>)
91
92 ## License
93
94 This material is subject to the LaTeX Project Public License (LPPL), version 1.3c or later.