UESTCreport
Workflow
- For a new course report in another project, run
scripts/create_report.pyfrom this skill. It copies the bundled template fromassets/templateinto the target project and compilesmain.pdf. - For an existing ThesisUESTC project, inspect the repository before editing. Read
main.tex,thesis-uestc.cls,latexmkrc, and files referenced by the entrypoint. - Keep the template lightweight. Prefer changing
main.tex; touchthesis-uestc.clsonly for reusable class behavior such as cover fields, page-breaking, headings, or shared commands. - Preserve XeLaTeX compatibility, Chinese typesetting, bibliography commands, labels,
\ref,\cite/\citing, figures, tables, equations, and theorem environments unless the user explicitly asks to remove them. - Compile with
latexmk -xelatex main.texor the locallatexmkrc. Report any missing TeX packages or fonts clearly.
Creating a Report in Any Project
Use the bundled script instead of manually copying template files:
bashpython <skill-root>/scripts/create_report.py
- Default target is the current working directory.
- The script copies
main.tex,thesis-uestc.cls,thesis-uestc.bst,latexmkrc,reference.bib, andpic/logo.pdf. - It refuses to overwrite existing files by default. If the user explicitly wants replacement, run with
--force. - It compiles automatically with
latexmk -xelatex main.texand createsmain.pdf. - Use
--output <dir>for a different target directory. - Use
--no-compilewhen only the source template should be created. - If compilation fails, keep the generated files and summarize the LaTeX/log error. Do not delete user files.
Course Report Shape
- Use
\documentclass[course]{thesis-uestc}when the class supports course mode. - Keep the cover fields to: course name, report title, student name, student ID, school/major, and completion date.
- Keep the UESTC logo image in the original cover-logo position.
- Make the cover title exactly
课程报告andCOURSE REPORT. - Remove thesis-only front matter from the default entrypoint: originality declaration, Chinese abstract, English abstract, list of figures, list of tables, and nomenclature/glossary.
- Remove thesis-only back matter from the default entrypoint: acknowledgements, degree-period publications/achievements, and translation appendices.
- Keep references through
\thesisbibliography{...}unless the user asks for another bibliography workflow.
Chapter Behavior
- Keep
\chapteravailable for users who want report-scale top-level divisions. - In course-report mode, chapters must not force a page break between each other.
- Keep chapter title spacing consistent before and after every chapter heading; do not rely on manual
\vspaceinmain.tex. - Prefer
\sectionand\subsectionfor most daily course-report content, but do not break existing cross-reference numbering without a clear reason.
Editing Guidance
- Do not delete source assets such as
pic/logo.pdf,.bibfiles, or example chapter files just becausemain.texno longer references them. - Avoid broad rewrites of the thesis class. Add guarded course-mode logic so existing thesis modes continue to work.
- Keep placeholders realistic and short in
main.tex; the file should be usable immediately as a report skeleton.


