{"id":24746585,"url":"https://github.com/samuelmarks/pandoc_latex_pygments","last_synced_at":"2026-05-02T15:43:21.689Z","repository":{"id":150265382,"uuid":"48803480","full_name":"SamuelMarks/pandoc_latex_pygments","owner":"SamuelMarks","description":"Replace `lstlisting` with `minted` blocks in LaTeX","archived":false,"fork":false,"pushed_at":"2015-12-30T15:41:41.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T01:22:13.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/SamuelMarks.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}},"created_at":"2015-12-30T14:11:49.000Z","updated_at":"2015-12-30T14:12:57.000Z","dependencies_parsed_at":"2023-04-17T07:37:47.141Z","dependency_job_id":null,"html_url":"https://github.com/SamuelMarks/pandoc_latex_pygments","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/SamuelMarks%2Fpandoc_latex_pygments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fpandoc_latex_pygments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fpandoc_latex_pygments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fpandoc_latex_pygments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuelMarks","download_url":"https://codeload.github.com/SamuelMarks/pandoc_latex_pygments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235964803,"owners_count":19073477,"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":"2025-01-28T04:29:29.535Z","updated_at":"2026-05-02T15:43:21.649Z","avatar_url":"https://github.com/SamuelMarks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pandoc_latex_pygments\n=====================\n\nReplace `lstlisting` with `minted` blocks in LaTeX.\n\n## Requirements\n\nPython 2.7. Adding Python 3 support should be trivial.\n\n## Usage\n\n    $ python -m pandoc_latex_pygments -h\n    usage: pandoc_latex_pygments.py [-h] filename\n    \n    Replace `lstlisting` with `minted` blocks in LaTeX\n    \n    positional arguments:\n      filename    File to replace `lstlisting` with `minted` in\n    \n    optional arguments:\n      -h, --help  show this help message and exit\n\n## Example\n\n### Input\n\n    random other stuff\n    \\begin{lstlisting}\n    ~~ python\n    print \"hello world\"\n    \\end{lstlisting}\n    more random other stuff\n    \\begin{lstlisting}\n    ~~ java\n    class HelloWorldApp {\n        public static void main(String[] args) {\n            System.out.println(\"Hello World!\");\n        }\n    }\n    \\end{lstlisting}\n    final random stuff\n\n### Output\n\n    random other stuff\n    \\begin{minted}[mathescape, linenos, numbersep=5pt, gobble=2, frame=lines, framesep=2mm]{python}\n    print \"hello world\"\n    \\end{minted}\n    more random other stuff\n    \\begin{minted}[mathescape, linenos, numbersep=5pt, gobble=2, frame=lines, framesep=2mm]{java}\n    class HelloWorldApp {\n        public static void main(String[] args) {\n            System.out.println(\"Hello World!\");\n        }\n    }\n    \\end{minted}\n    final random stuff\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fpandoc_latex_pygments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmarks%2Fpandoc_latex_pygments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fpandoc_latex_pygments/lists"}