{"id":15017824,"url":"https://github.com/filipporanza/fast_patch","last_synced_at":"2026-04-07T05:31:18.044Z","repository":{"id":118635633,"uuid":"157581644","full_name":"FilippoRanza/fast_patch","owner":"FilippoRanza","description":"Automatically refactor Latex code","archived":false,"fork":false,"pushed_at":"2018-11-22T17:58:31.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T17:34:01.657Z","etag":null,"topics":["latex","perl","perl-script","perl5","refactoring-tools","script"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FilippoRanza.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":"2018-11-14T16:55:31.000Z","updated_at":"2024-09-02T23:46:23.000Z","dependencies_parsed_at":"2023-11-06T17:30:08.319Z","dependency_job_id":null,"html_url":"https://github.com/FilippoRanza/fast_patch","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/FilippoRanza%2Ffast_patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilippoRanza%2Ffast_patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilippoRanza%2Ffast_patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FilippoRanza%2Ffast_patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FilippoRanza","download_url":"https://codeload.github.com/FilippoRanza/fast_patch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318751,"owners_count":20272137,"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":["latex","perl","perl-script","perl5","refactoring-tools","script"],"created_at":"2024-09-24T19:51:02.034Z","updated_at":"2025-12-28T07:24:33.836Z","avatar_url":"https://github.com/FilippoRanza.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fast_patch\nAutomatically refactor Latex code\n\n## Usage\n```\n    [perl] fast_patch.pl [options...] [latex_file...]\n```\nThis script modify *inplace* all given latex files. The update version\nhas the ORIGINAL name while a backup version is also created. Backup is\nnamed ORIGINAL.bak . ORIGINAL is the name of the current input file.\n\n### Command Line Options\n\n| Argument | Effect |\n|--------|-------|\n| --verbose  | enables verbose mode|\n| --auto     | find, and refactor, all *.tex* file in current directory and all its subdirectories, others file given from command line are ignored|\n|--label| Automatically add a label under 'section', 'subsection', 'subsubsection' and 'chapter'. Label marker is based on section/chapter name. The new label is added only if needed.|\n\n### Refactor Notes\nfast_patch.pl automatically modifies file inplace. It starts from a\n**correct** latex file an make it better:\n1. Properly indent each block\n2. Converts each  perenthesis inside an *equation* or *align* block\n    into its equivalent with  *\\left* or *\\rigth*:\n\n    ( for example becomes \\left(\n\n3. Apply given *MACROs*\n\n### MACRO\nUser can optionally add a file named *macro.txt* into the working directory.\nIn this file the user can specify some macros the fast_patch.pl will add\nto each line. The user must pay attention to the macro names: if a name\ncollides a latex command this will be overwritten.\n\n#### macro.txt format\n*macro.txt* is a line based file, each line contains a macro:\n\na macro has the following format\n```\n    NAME 'VALUE'\n```\nor\n```\n    NAME \"VALUE\"\n```\n\nfast_patch.pl will search for each occurrence of each *NAME* and replace\nit with the proper *VALUE*.\n\nLines that starts with '#' are considerd comments and are ignored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipporanza%2Ffast_patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilipporanza%2Ffast_patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipporanza%2Ffast_patch/lists"}