{"id":20426848,"url":"https://github.com/mps9506/quarto-lapreprint","last_synced_at":"2026-03-02T14:32:42.911Z","repository":{"id":233848359,"uuid":"787909240","full_name":"mps9506/quarto-lapreprint","owner":"mps9506","description":"quarto extension for the LaPreprint typst template","archived":false,"fork":false,"pushed_at":"2024-08-21T19:26:41.000Z","size":8090,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-06T09:20:34.292Z","etag":null,"topics":["quarto","quarto-template","typst"],"latest_commit_sha":null,"homepage":"","language":"Typst","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/mps9506.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-17T12:16:06.000Z","updated_at":"2024-10-10T06:55:25.000Z","dependencies_parsed_at":"2024-08-21T21:55:25.991Z","dependency_job_id":null,"html_url":"https://github.com/mps9506/quarto-lapreprint","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"858df7d6b4d87031d60b0d0e0d9c80db9f37155c"},"previous_names":["mps9506/quarto-lapreprint"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mps9506/quarto-lapreprint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mps9506%2Fquarto-lapreprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mps9506%2Fquarto-lapreprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mps9506%2Fquarto-lapreprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mps9506%2Fquarto-lapreprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mps9506","download_url":"https://codeload.github.com/mps9506/quarto-lapreprint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mps9506%2Fquarto-lapreprint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30006334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T14:08:50.421Z","status":"ssl_error","status_checked_at":"2026-03-02T14:08:50.037Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["quarto","quarto-template","typst"],"created_at":"2024-11-15T07:17:52.113Z","updated_at":"2026-03-02T14:32:42.891Z","avatar_url":"https://github.com/mps9506.png","language":"Typst","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quarto-lapreprint Format\n\n![GitHub License](https://img.shields.io/github/license/mps9506/quarto-lapreprint)\n\n\nThis is a typst template for quarto users. The original typst template is from [LaPreprint](https://github.com/LaPreprint/typst)[^distribution] and has been slightly modified for use in quarto.\n\n[^distribution]: This is a modified redistribution of the original LaPreprint](https://github.com/LaPreprint/typst) Typst template created by Rowan Cockett and distributed under the MIT license. \n\n![Overview](screenshots/overview.png)\n\n## Installing\n\n```bash\nquarto use template mps9506/quarto-lapreprint\n```\n\nThis will install the format extension and create an example qmd file\nthat you can use as a starting place for your document.\n\n## Using\n\nThe yaml header in [template.qmd](template.qmd) provides example starting points.\n\n### Logos and branding\n\nThe theme of the document can be set to a specific color, which changes the headers and links. The default `theme` is blue. Change to red (or purple) using:\n\n```yaml\ntheme: \"`red.darken(50%)`{=typst}\"\n```\nYou can also supply a logo, which is either an image file location or content, allowing you to add additional information about the journal or lab-group to the top-right of the document. You can also set the `mainfont` which must be the name of a locally installed font.\n\n```yaml\nlogo: my-logo.png\ntheme: \"`red.darken(50%)`{=typst}\"\nmainfont: \"Fira Sans\"\n```\n\n## Title and Subtitle\n\nYou can have both a title and a subtitle:\n\n```yaml\ntitle: Pixels and their Neighbours\nsubtitle: A Tutorial on Finite Volume\n```\n\n\n\n### Authors and Affiliations\n\nYou can add both author and affiliations lists, each author should have a `name`, and can optionally add `orcid`, `email`, and `affiliations`. The affiliations are just content that is put in superscript, e.g. `\"1,2\"`, have corresponding identifiers in the top level `affiliations` list, which requires both an `id` and a `name`. If you wish to include any additional information in the affiliation (e.g. an address, department, etc.), it is content and can have whatever you want in it.\n\n```yaml\nauthors:\n  - name: Rowan Cockett\n    orcid: 0000-0002-7859-8394\n    email: rowan@curvenote.com\n    affiliations: 1,2,🖂\n  - name: Lindsey Heagy\n    orcid: 0000-0002-1551-5926\n    affiliations: 1\n  - name: Douglas Oldenburg\n    orcid: 0000-0002-4327-2124\n    affiliations: 1\ninstitute:\n  - id: 1\n    name: University of British Columbia\n  - id: 2\n    name: Curvenote Inc.\n```\n\nFor other information that you wish to affiliate with a specific author, you can use the `affiliations` field with any identifier you like (e.g. `†` or `🖂`) and then use the margin content or affiliations fields on the preprint to explain what it means.\n\n\n### Abstract and keywords\n\nYou can include one or more abstracts as well as keywords. For a simple `abstract` the default title used is \"Abstract\" and you can include it with:\n\n```yaml\nabstract: |\n  Whatever content you want to include. You should be able to use *markdown* as well.\nkeyword: [Finite Volume, Tutorial, Reproducible Research]\n```\n\n### Margin content\n\nThe content on the first page is customizable. The first content is the `kind`, for example, \"Original Research\", \"Review Article\", \"Retrospective\" etc. And then the `pub-date`, which is by default the date you compiled the document if not specified. Note that currently you must use the Typst `datetime` format[^date].\n\n[^date]: I'd prefer to use raw strings here, but I'm confused about how Quarto handles dates and how to pass them to Typst which has its own builtin date handling functions. So this is subject to change.\n\n```yaml\nkind: \"Notebook Tutorial\"\npub-date: \"`datetime(year: 2023, month: 08, day: 21)`{=typst}\"\n```\n\nYou can also set `pub-date` to be a dictionary or list of dictionaries with `title` and `date` as the two required keys. The first date will be bolded as well as used in the document metadata and auto `short-citation`.\n\n```yaml\nkind: \"Notebook Tutorial\"\npub-date: \n  - title: Published\n    date: \"`datetime(year: 2023, month: 08, day: 21)`{=typst}\"\n  - title: Accepted\n    date: \"`datetime(year: 2022, month: 12, day: 10)`{=typst}\"\n  - title: \"Submitted\"\n    date: \"`datetime(year: 2022, month: 12, day: 10)`{=typst}\"\n```\n\n### Headers and Footers\n\nYou can control the headers and footer by providing the following information:\n\n```yaml\nopen-access: true # not implemented yet\ndoi: 10.1190/tle35080703.1\nvenue: \"`[ar#text(fill: red.darken(20%))[X]iv]`{=typst}\"\nshort-title: Finite Volume Tutorial\nshort-citation: auto #not implemented yet\n```\n\nThe first page will show an open-access statement and the `doi` if available. For DOIs, only include the actual identifier, not the URL portions:\n\n\nSubsequent pages will show the `short-title` and `short-citation`. If the citation is `auto` (the default) it will be created in APA formatting using the paper authors.\n\n\nThe footers show the `venue` (e.g. the journal or preprint repository) the `date` (which is by default `today()`) as well as the page count.\n\n\n\n### Incomplete\n\n\n### Margins\n\nThe rest of the margin content can be set with `margin` property, which takes a `title` and `content`.\n\n```yaml\nmargin-content:\n  - title: Key Points\n    content: |\n      * key point 1 is *important*.\n      * key point 2 is also important.\n      * this is the third idea.\n  - title: Corresponding Author\n    content: 🖂 [rowan@curvenote.com](mailto:rowan@curvenote.com)\n  - title: Data Statement\n    content: Associated notebooks are available on [GitHub](\"https://github.com/simpeg/tle-finitevolume\") and can be run online with [MyBinder](\"http://mybinder.org/repo/simpeg/tle-finitevolume\").\n  - title: Funding\n    content: Funding was provided by the Vanier Award to each of Cockett and Heagy.\n  - title: Competing Interests\n    content: The authors declare no competing interests.\n```\n\nYou can use the margin property for things like funding, data availability statements, explicit correspondence requests, key points, conflict of interest statements, etc.\n\n\n### Bibliography\n\ntypst handles the bibliography. `bibliography` points to the .bib file and `biblio-style` specifies the styling[^biblio]. Available styles are documented by Typst: https://typst.app/docs/reference/model/bibliography/. In text references and cross references should be written as specified in pandoc/Quarto: (https://quarto.org/docs/authoring/footnotes-and-citations.html#sec-citations).\n\n[^biblio]: This might change in the future to using (or providing the option of) pandoc's builtin citeproc. \n\n```yaml\nbibliography: main.bib\nbiblio-style: apa \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmps9506%2Fquarto-lapreprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmps9506%2Fquarto-lapreprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmps9506%2Fquarto-lapreprint/lists"}