{"id":23061845,"url":"https://github.com/rrwen/cookiecutter-latex","last_synced_at":"2025-07-14T19:44:38.874Z","repository":{"id":91307784,"uuid":"110208978","full_name":"rrwen/cookiecutter-latex","owner":"rrwen","description":"Personal template for LaTeX documents with Python cookiecutter","archived":false,"fork":false,"pushed_at":"2019-02-16T03:27:11.000Z","size":83,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T14:51:30.862Z","etag":null,"topics":["article","aux","cli","command","cookiecutter","document","interface","latex","line","miktex","pdf","personal","template","tex","texlive"],"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/rrwen.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":"2017-11-10T06:01:12.000Z","updated_at":"2024-11-06T09:49:30.000Z","dependencies_parsed_at":"2023-04-27T04:01:54.460Z","dependency_job_id":null,"html_url":"https://github.com/rrwen/cookiecutter-latex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rrwen/cookiecutter-latex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fcookiecutter-latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fcookiecutter-latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fcookiecutter-latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fcookiecutter-latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrwen","download_url":"https://codeload.github.com/rrwen/cookiecutter-latex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fcookiecutter-latex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265336610,"owners_count":23749193,"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":["article","aux","cli","command","cookiecutter","document","interface","latex","line","miktex","pdf","personal","template","tex","texlive"],"created_at":"2024-12-16T03:18:37.617Z","updated_at":"2025-07-14T19:44:38.835Z","avatar_url":"https://github.com/rrwen.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cookiecutter-latex\n\nRichard Wen  \nrrwen.dev@gmail.com  \n\nPersonal template for LaTeX documents with Python cookiecutter.\n\n[![Build Status](https://travis-ci.org/rrwen/cookiecutter-latex.svg?branch=master)](https://travis-ci.org/rrwen/cookiecutter-latex)\n[![GitHub license](https://img.shields.io/github/license/rrwen/cookiecutter-latex.svg)](https://github.com/rrwen/cookiecutter-latex/blob/master/LICENSE)\n\n## Install\n\n1. Install [Python](https://www.python.org/downloads/)\n2. Install [cookiecutter](https://pypi.python.org/pypi/cookiecutter) via `pip`\n3. Install [TeX Live](https://www.tug.org/texlive/acquire-netinstall.html) or [Miktex](https://miktex.org/download)\n\n```\npip install cookiecutter\n```\n\n## Usage\n\n1. Create the [LaTeX](https://www.latex-project.org/) template using [cookiecutter](https://pypi.python.org/pypi/cookiecutter)\n2. Change the directory to the folder with the same name as the `template_name` input\n3. Render a pdf of the main file named as the `tex_file` input\n\nIn Windows:\n\n```\ncookiecutter gh:rrwen/cookiecutter-latex\ncd \u003ctemplate_name\u003e\nmake\n```\n\nIn Linux/Mac:\n\n```\ncookiecutter gh:rrwen/cookiecutter-latex\ncd \u003ctemplate_name\u003e\nchmod +x make.sh\n./make.sh\n```\n\nSee [Implementation](#implementation) for more details.\n\n## Developer Notes\n\n### Create Github Repository\n\n1. Ensure [git](https://git-scm.com/) is installed\n2. Change directory to the generated folder `cd \u003ctemplate_name\u003e`\n3. Initialize the repository\n4. Add the generated files to commit\n5. Create an empty [Github repository](https://help.github.com/articles/create-a-repo/) with the same name as `template_name`\n6. Pull any changes if the Github repository is not empty\n7. Push the commit from `4.` to your created Github repository\n\n```\ngit init\ngit add .\ngit commit -a -m \"Initial commit\"\ngit remote add origin https://github.com/\u003cgithub_user\u003e/\u003ctemplate_name\u003e.git\ngit pull origin master --allow-unrelated-histories\ngit push -u origin master\n```\n\n### Implementation\n\nThis code creates a latex template using [cookiecutter](https://pypi.python.org/pypi/cookiecutter).\n\n* The main file is [cookiecutter.json](https://github.com/rrwen/cookiecutter-latex/blob/master/cookiecutter.json) which defines the inputs for the command line interface\n* The inputs then replace any values surrounded with `{{}}` inside the folder [{{cookiecutter.template_name}}](https://github.com/rrwen/cookiecutter-latex/tree/master/%7B%7Bcookiecutter.template_name%7D%7D)\n\n```\n        cookiecutter              \u003c-- template tool\n             |\n      cookiecutter.json           \u003c-- template inputs\n             |\n{{cookiecutter.template_name}}    \u003c-- generated template\n```\n\nThe following files will be created inside a folder with the same name as the `template_name` input:\n\nFile | Description\n--- | ---\n**LICENSE** | MIT [license file](https://help.github.com/articles/licensing-a-repository/) automatically created from github\n**README.md** | a readme [Markdown](https://daringfireball.net/projects/markdown/) file with header section\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrwen%2Fcookiecutter-latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrwen%2Fcookiecutter-latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrwen%2Fcookiecutter-latex/lists"}