{"id":20955954,"url":"https://github.com/olivierverdier/python-latex-highlighting","last_synced_at":"2025-05-15T16:07:03.608Z","repository":{"id":1685737,"uuid":"2413568","full_name":"olivierverdier/python-latex-highlighting","owner":"olivierverdier","description":"LaTeX style for Python highlighting","archived":false,"fork":false,"pushed_at":"2025-04-17T12:36:39.000Z","size":34,"stargazers_count":471,"open_issues_count":0,"forks_count":125,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-18T03:12:48.310Z","etag":null,"topics":["latex","python","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olivierverdier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.rst","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":"2011-09-19T06:27:45.000Z","updated_at":"2025-04-17T12:36:43.000Z","dependencies_parsed_at":"2024-06-12T23:47:11.254Z","dependency_job_id":"82bcdf75-ea93-45b9-b8ff-b0a6d5c89f45","html_url":"https://github.com/olivierverdier/python-latex-highlighting","commit_stats":{"total_commits":35,"total_committers":5,"mean_commits":7.0,"dds":"0.11428571428571432","last_synced_commit":"5094e72f0e83a8428c0405da69623989b7e12433"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivierverdier%2Fpython-latex-highlighting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivierverdier%2Fpython-latex-highlighting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivierverdier%2Fpython-latex-highlighting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivierverdier%2Fpython-latex-highlighting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olivierverdier","download_url":"https://codeload.github.com/olivierverdier/python-latex-highlighting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374475,"owners_count":22060611,"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","python","syntax-highlighting"],"created_at":"2024-11-19T01:22:54.036Z","updated_at":"2025-05-15T16:07:03.588Z","avatar_url":"https://github.com/olivierverdier.png","language":"TeX","readme":"Python highlighting in LaTeX\n============================\n\nA simple Python highlighting style to be used with LaTeX.\n\nThe package is loaded by the following line:\n\n```tex\n\\usepackage{pythonhighlight}\n```\n\nIt is then possible to include a Python snippet directly in the code using:\n\n```tex\n\\begin{python}\ndef f(x):\n    return x\n\\end{python}\n```\n\nIt is also possible to include inline Python code in LaTeX with ``\\pyth``:\n\n```tex\nThe special method \\pyth{__init__}...\n```\n\nThis also works with other delimiters, for instance:\n```tex\nWe use the dictionary \\pyth|d = {\"a\": 1, \"b\": 2}|.\n```\n\nLast but not least, you can load an external Python file with:\n```tex\n\\inputpythonfile{python_file.py}[23][50]\n```\nto display the contents of the file ``python_file`` from line 23 to line 50,\nor with\n```tex\n\\inputpythonfile{python_file.py}\n```\nto input the whole Python file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivierverdier%2Fpython-latex-highlighting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folivierverdier%2Fpython-latex-highlighting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivierverdier%2Fpython-latex-highlighting/lists"}