# beamer-lzu

Version 0.2.1 (2026-11-28). A LaTeX3 Beamer theme for Lanzhou University
presentations, inspired by Oscar Tuo's Touying-LZU theme. Maintained by
zibuyu at https://github.com/LUX-ETVERITAS/beamer-lzu.

This file and the package manual are in English. A Chinese guide is available
in [README.zh-CN.md](README.zh-CN.md). The distribution includes editable
English and Chinese presentations:

| File | Language | Purpose |
| --- | --- | --- |
| `template-en.tex` | English | Short starting template |
| `main-en.tex` | English | Complete feature demonstration |
| `template.tex` | Chinese | Short starting template |
| `main.tex` | Chinese | Complete feature demonstration |
| `beamer-lzu-doc.tex` | English | Package manual |

## Requirements and installation

The theme needs a current LaTeX format, Beamer, PGF/TikZ, and `multicol`.
Use LuaLaTeX to compile the supplied examples. The English examples do not
require Chinese typesetting packages. The Chinese examples additionally use
`ctex` and the Fandol font set; `l3build doc` also requires these packages
because it builds all examples. Keep `beamerthemeLZU.sty` and `assets/`
together beside a presentation, or install them together in a TeX tree.

## Start a presentation

Edit the title, author, institute, date, and frames in `template-en.tex`.
Compile it three times to resolve the outline and navigation:

```sh
lualatex template-en.tex
lualatex template-en.tex
lualatex template-en.tex
```

The full example in `main-en.tex` demonstrates overlays, handout mode,
equations, TikZ diagrams, columns, and frames that break automatically.
Advance PDF pages with the arrow keys to show overlay steps. For printed
notes, add `handout` to the `\documentclass` options; the examples retain
the final state of each overlay sequence.

## Theme commands and options

| Command | Effect |
| --- | --- |
| `\maketitle` | Create an unnumbered title page |
| `\lzuoutline[Outline]` | Create a linked, two-column outline; pass an English title explicitly |
| `\section{Methods}` | Insert a section overview page |
| `\subsection{Data}` | Add a subsection to the outline and overview |
| `\begin{frame}{Data}` ... `\end{frame}` | Create a content frame with a navigation dot |
| `\lzufocus{Key result}` | Create an unnumbered focus page |
| `\appendix` | Start the appendix while keeping the main-frame total fixed |
| `\lzuend{Thank you}` | Create an unnumbered closing page |

`\usetheme{LZU}` uses top navigation. Use
`\usetheme[navigation=sidebar]{LZU}` for a right sidebar or
`\usetheme[navigation=none]{LZU}` to hide navigation. The title, outline,
focus, and closing pages do not increase the frame number. See
`beamer-lzu-doc.pdf` for more details.

## Build and test

Run `l3build doc` to build the manual and all four examples. The PDFs appear
in the project root; logs and intermediate files are in `build/doc/`.
Run `l3build check` to check navigation and frame numbering, and
`l3build ctan` to create `beamer-lzu-ctan.zip` for a CTAN submission.

GitHub Actions runs the checks and builds on Linux, macOS, and Windows.
Linux uploads the CTAN ZIP and PDFs as workflow artifacts. A `v*` tag
publishes those files in a GitHub release after all three platforms pass.
CTAN submission is a separate step.

## License and credits

The code is licensed under the MIT License. See [LICENSE](LICENSE) for
copyright and attribution notices. This theme draws on
[Oscar Tuo's Touying-LZU](https://github.com/nftuoa/touying-lzu).
The university logos and building background came from that project.
Its README describes the logos as university visual identity assets and
the background as AI-generated artwork. Confirm their redistribution rights
before submitting the distribution to CTAN.
