{"id":14980647,"url":"https://github.com/huangfusl/latex-template","last_synced_at":"2026-02-27T15:34:33.490Z","repository":{"id":186916361,"uuid":"675981893","full_name":"HuangFuSL/latex-template","owner":"HuangFuSL","description":"Multi-function LaTeX template","archived":false,"fork":false,"pushed_at":"2024-04-24T11:51:08.000Z","size":103,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T09:47:06.927Z","etag":null,"topics":["beamer-template","latex","latex-beamer","latex-class","latex-template","template","xelatex"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HuangFuSL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-08T07:01:44.000Z","updated_at":"2024-04-24T11:51:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"b481e18c-a97f-418f-bc52-7c7fce3df6ee","html_url":"https://github.com/HuangFuSL/latex-template","commit_stats":{"total_commits":75,"total_committers":1,"mean_commits":75.0,"dds":0.0,"last_synced_commit":"dc476e2ff20aaa90ce2365a1a7a3b01f7fb930fd"},"previous_names":["huangfusl/latex-template"],"tags_count":10,"template":true,"template_full_name":null,"purl":"pkg:github/HuangFuSL/latex-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangFuSL%2Flatex-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangFuSL%2Flatex-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangFuSL%2Flatex-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangFuSL%2Flatex-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuangFuSL","download_url":"https://codeload.github.com/HuangFuSL/latex-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangFuSL%2Flatex-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270656718,"owners_count":24623452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beamer-template","latex","latex-beamer","latex-class","latex-template","template","xelatex"],"created_at":"2024-09-24T14:02:12.591Z","updated_at":"2026-02-27T15:34:33.450Z","avatar_url":"https://github.com/HuangFuSL.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# latex-template\n\nMy latex template\n\n## Features\n\nFour modes are provided within the template, specify using document class arguments\n\n* Article mode: `\\documentclass[article]{huangfusl-template}`\n* Beamer mode: `\\documentclass[beamer]{huangfusl-template}`\n* Book mode: `\\documentclass[book]{huangfusl-template}`\n* Standalone mode: `\\documentclass[standalone]{huangfusl-template}`\n\n### Common features\n\n* Abbreviation for single letter `\\mathbb`, `\\mathbf`, `\\mathcal`, `\\mathrm` and `\\boldsymbol`.\n* Abbreviation for some math operators.\n* CJK support provided by `ctex` package, use `cn` argument to enable, `en` to disable.\n* `\\ssection`, `\\ssubsection` and `\\ssubsubsection` to hide section numbering while keeps table of contents entry.\n* Produce PDF-A documents.\n* `\\remember` and `\\recall` to repeat equations.\n* `ctheorem`, `clemma`, `cdefinition`, `cexample`, `cnotice`, `calgorithm` environments provided by `tcolorbox`.\n    * Asterisk version to disable numbering.\n    * Double asterisk version to disable numbering and hide title.\n\nPackages automatically loaded:\n\n* `listings`: Code listing\n* `biblatex`: Bibliography\n* `tcolorbox`: Colored boxes\n* `calligra`: Calligraphy fonts\n* `pgf`: Plotting\n* `booktabs`: Better tables\n* `algorithm2e`: Algorithms\n\n### Article mode\n\n* Pre-configured font, spacing, header and footer.\n* `\\subtitle` command to set document subtitle.\n* `\\articlefront` as shortcut for a title and toc page.\n* `\\watermarkon` and `\\watermarkoff` to toggle watermark.\n\n### Beamer mode\n\n* Theme pre-configured and locked.\n* Support for [Présentation.app](http://iihm.imag.fr/blanch/software/osx-presentation/)\n\n### Book mode\n\n* Pre-configured font, spacing, header and footer.\n* `\\watermarkon` and `\\watermarkoff` to toggle watermark.\n\n### Backward compatibility\n\nUse `version=\u003cversion\u003e` to specify the template version. Newer version of template is backward-compatible.\n\n```tex\n\\documentclass[article, cn, version=2.0]{huangfusl-template}\n```\n\nFor changelog, refer to [Releases](https://github.com/HuangFuSL/latex-template/releases)\n\n## Configuration\n\n### Use directly\n\nBefore compiling any documents, simply add the path containing `huangfusl-template.cls` to `TEXINPUTS` environment variable.\n\n```bash\nexport TEXINPUTS=/path-to-template//:\n```\n\nNotice that XMP metadata will NOT be available if you don't use `makefile`. (PDF-A standard will still be met)\n\n### Use via makefile\n\n* Copy or link `makefile.latex.template` to `/usr/include`.\n* Edit `export TEXINPUTS = /opt/template//:` line to match the path to `huangfusl-template.cls`\n* Create a `makefile` in the project:\n\n    ```makefile\n    TARGET = \u003cfile-to-compile-without-extension\u003e\n\n    include makefile.latex.template\n    ```\n\n* Execute `make default` to compile the document.\n\nUse `make help` to check all the build targets and environment variable options.\n\n### Use via docker\n\nThe docker image contains the template itself, together with a full texlive installation. Using docker, one can achieve compiling `.tex` documents pure remotely on a docker host. It does not require the local machine to have texlive installed. However, as all texlive packages have been installed in the docker image, the size of image is kind of large (~5GB).\n\nThe workflow has been integrated into `makefile` process. Simply pass `DOCKER=1` environment variable to switch to docker.\n\n```bash\nmake default DOCKER=1\n```\n\n## LaTeX Workshop integration\n\n### Use directly\n\nAdd `env` option to toolchain in `settings.json`:\n\n```json\n{\n    \"name\": \"XeLaTeX\",\n    \"command\": \"xelatex\",\n    \"args\": [\n        \"-synctex=1\",\n        \"-interaction=nonstopmode\",\n        \"-file-line-error\",\n        \"%DOCFILE%\"\n    ],\n    \"env\": {\n        \"TEXINPUTS\": \"\u003cpath-to-template\u003e//:\"\n    }\n}\n```\n\n### Use makefile\n\nFirst configure `makefile.latex.template`, write a `makefile`. Add the following compile tools in `latex-workshop.latex.tools` section of `settings.json`.\n\n```json\n{\n    \"name\": \"Make\",\n    \"command\": \"make\",\n    \"args\": [ \"default\" ]\n}\n```\n\nAdd `DOCKER=1` environment variable to use docker, add `DOCKER_CONTEXT` environment variable to switch context\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangfusl%2Flatex-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuangfusl%2Flatex-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangfusl%2Flatex-template/lists"}