{"id":20592042,"url":"https://github.com/rien/nanoc-latexmk","last_synced_at":"2025-04-14T22:54:04.443Z","repository":{"id":56885134,"uuid":"115213754","full_name":"rien/nanoc-latexmk","owner":"rien","description":"Latexmk filter for Nanoc","archived":false,"fork":false,"pushed_at":"2020-07-28T09:08:45.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T22:53:52.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rien.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-23T18:19:43.000Z","updated_at":"2023-10-02T15:23:06.000Z","dependencies_parsed_at":"2022-08-21T00:20:23.416Z","dependency_job_id":null,"html_url":"https://github.com/rien/nanoc-latexmk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rien%2Fnanoc-latexmk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rien%2Fnanoc-latexmk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rien%2Fnanoc-latexmk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rien%2Fnanoc-latexmk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rien","download_url":"https://codeload.github.com/rien/nanoc-latexmk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975329,"owners_count":21192208,"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":[],"created_at":"2024-11-16T07:42:33.845Z","updated_at":"2025-04-14T22:54:04.424Z","avatar_url":"https://github.com/rien.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nanoc-latexmk\n\n[![Gem Version](https://badge.fury.io/rb/nanoc-latexmk.svg)](https://badge.fury.io/rb/nanoc-latexmk)\n\n[Nanoc](https://nanoc.ws/) filter to compile `.tex` files to pdf using the `latexmk` command. Supports both `pdflatex` and `xelatex`.\n\n## System requirements\n\nYou need everything to build your LaTeX file manually, so `latexmk`, `pdflatex` and `xelatex` need to be installed on your system.\n\n## Installation\n\nTo use this filter, add nanoc-latexmk to your `Gemfile`.\n```\ngem 'nanoc-latexmk'\n```\nThen require this project in your `Rules`:\n```\nrequire 'nanoc/latexmk'\n```\n\n## Usage\n\nFirst, be sure to add `tex` to the `text_extensions` in your `nanoc.yaml`.\n\nWith a basic file in `content/file.tex`:\n\n```\n---\ntitle: Hello\n---\n\\section{World}\n```\nAnd a layout in `layouts/default.tex.erb`\n```\n\\documentclass{article}\n\\title{\u003c%= item[:title] %\u003e}\n\\begin{document}\n\\maketitle\n\u003c%= yield %\u003e\n\\end{document}\n```\nYou can add this to your `Rules`\n```\ncompile '/**/*.tex', rep: :pdf do\n  layout '/default.tex.erb'\n  filter :latexmk\n  write ext: 'pdf'\nend\n```\n\nResults in:\n![Hello World PDF](https://user-images.githubusercontent.com/3226995/34323260-3995578a-e841-11e7-9aeb-b1e2ae6e84a6.png)\n\n## Licence\n\nSee the [UNLICENSE](https://github.com/rien/nanoc-latexmk/blob/master/LICENSE) for details.\n\n## Author\nRien Maertens [maertensrien@gmail.com](mailto:maertensrien@gmail.com)\n\n## Changelog\n\nSee the [CHANGELOG](https://github.com/rien/nanoc-latexmk/blob/master/CHANGELOG.md) for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frien%2Fnanoc-latexmk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frien%2Fnanoc-latexmk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frien%2Fnanoc-latexmk/lists"}