{"id":16471956,"url":"https://github.com/corymccartan/cmc-article","last_synced_at":"2026-04-28T13:38:11.549Z","repository":{"id":175073731,"uuid":"614587977","full_name":"CoryMcCartan/cmc-article","owner":"CoryMcCartan","description":"Lightweight and customizable Quarto article format ","archived":false,"fork":false,"pushed_at":"2024-02-01T21:57:13.000Z","size":941,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-28T10:10:07.288Z","etag":null,"topics":["arxiv","latex","quarto","quarto-extension","quarto-template","r","tex"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CoryMcCartan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-15T22:37:50.000Z","updated_at":"2024-10-15T18:55:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"501d7f89-0114-4556-a231-c591ec5539d8","html_url":"https://github.com/CoryMcCartan/cmc-article","commit_stats":null,"previous_names":["corymccartan/cmc-article"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CoryMcCartan/cmc-article","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoryMcCartan%2Fcmc-article","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoryMcCartan%2Fcmc-article/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoryMcCartan%2Fcmc-article/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoryMcCartan%2Fcmc-article/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoryMcCartan","download_url":"https://codeload.github.com/CoryMcCartan/cmc-article/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoryMcCartan%2Fcmc-article/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261107716,"owners_count":23110662,"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","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":["arxiv","latex","quarto","quarto-extension","quarto-template","r","tex"],"created_at":"2024-10-11T12:15:40.140Z","updated_at":"2026-04-28T13:38:11.542Z","avatar_url":"https://github.com/CoryMcCartan.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# `cmc-article` Quarto Format\n\nThe `cmc-article` format is designed for scholarly articles, especially preprints.\nIts goal is to be lightweight yet customizable, with thoughtful typography and layout, and to support both TeX and Typst rendering engines.\nDetailed word-counting functionality is also included.\n\n## Creating a New Article\n\nTo create a new article using this format:\n\n```bash\nquarto use template CoryMcCartan/cmc-article\n```\n\nThis will create a new directory with an example document that uses this format.\n\n## Using with an Existing Document\n\nTo add this format to an existing document:\n\n```bash\nquarto add CoryMcCartan/cmc-article\n```\n\nThen, add the format to your document options: `format: cmc-article-typst` or `format: cmc-article-pdf`.\n\n## Example\n\nHere is the source code for a minimal sample document: [template.qmd](template.qmd).\nThis produces the following document (click for a full preview):\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"template.pdf\"\u003e\n\u003ckbd\u003e \u003cimg src=\"thumb.png\" width=306 style=\"border: 1px solid #444\"\u003e \u003c/kbd\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n## Word Counting\n\nDuring rendering a table like the following will be included in the render log.\n\n```\n WORD COUNT\n-----------------------------------\n Section             Words   Cuml.\n-----------------------------------\n Title                   6\n Abstract              163    163\n  (Introduction...)    609\n  (Formalizing ...)   1305\n[further section titles and word counts]\n  (Conclusion  ...)    158\n Body                 2909   3072\n References            375   3447\n Appendices            428   3875\n-----------------------------------\n```\n\nTo exclude a block element (image or table caption, div, code block) or entire\nsection (demarcated by a header) from any word-counting, simply add the\n`{.nowords}` class to the element.\n\n## Template Options\n\nMost Quarto PDF options are supported here, with the primary exception of\nalternative font families (see below for font customization).\nAdditional package-specific options are described below.\n\n### Blinded versions\n\nProvide the following key under `cmc-article-pdf` to produce a blinded version of the article.\n```yaml\njournal:\n  blinded: true\n```\n\n### Running header\nBy default, the running header will include the article title.\nIt can be overriden by providing your own `title-meta`.\n\n### Fonts\n\n#### Serif font\nThe default serif font is Cochineal, based on Crimson (for TeX, specifically the `cochineal` package).\nIf you would rather not use this font, either for file size or aesthetic reasons, you can provide the following flag.\nPalatino will be used instead for the body text and mathematics.\nPalatino is the only option when `pdf-engine: xelatex` is used (the default is `pdflatex`).\n```yaml\nfont-serif-crimson: false\n```\n\nFor Typst, you will need to download and install the Crimson font [here](https://fontesk.com/download/35892/).\n\n\n#### Sans-serif font\nThe default sans-serif font is Biolinum, part of the Linux Libertine family.\nIf you would rather not use this font, either for file size or aesthetic reasons, you can provide the following flag.\nHelvetica will be used instead.\n```yaml\nfont-sans-biolinum: false\n```\n\nFor Typst, you will need to download and install the Biolinum font [here](https://dl.dafont.com/dl/?f=linux_biolinum).\n\n#### Serif title headings\n\nBy default, the title and section headings are set in a sans-serif font.\nProvide the following key under `cmc-article-pdf` to use a serif font:\n```yaml\nfont-headings-sans: true\n```\n\n## Switching between Typst and TeX\n\n- If you need compatibility between Typst and TeX formats, and you are using the\n`\\vb` macro, you should use `\\vbg` for Greek letters rather than `\\vb*`, since\nthe latter will not work in Typst.\n\n- The Typst template uses `citeproc: true` so that references are placed\n  consistently with TeX. You may need to provide your own `.csl` file if the\n  default format does not suit your needs. You can set `citeproc: false`\n  explicitly to opt in to Typst's bibliography system.\n\n- `macros.tex` contains shared macro definitions that are available in both TeX and Typst.\n  To make this file work with both engines, no comments are allowed.\n  Some TeX-specific macros are in `header.tex`, which can be deleted if only Typst is being used.\n\n- When switching to TeX, add `include-in-header: header.tex` to your format options.\n  When switching to Typst, remove this line.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorymccartan%2Fcmc-article","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorymccartan%2Fcmc-article","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorymccartan%2Fcmc-article/lists"}