{"id":31750767,"url":"https://github.com/cdkharris/texformatter","last_synced_at":"2026-04-15T16:31:49.630Z","repository":{"id":169103948,"uuid":"150999402","full_name":"cdkharris/texformatter","owner":"cdkharris","description":"A python module for integrating script output with TeX.","archived":false,"fork":false,"pushed_at":"2023-02-27T16:55:56.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T16:01:34.561Z","etag":null,"topics":["latex","python","tex"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/cdkharris.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-30T19:31:05.000Z","updated_at":"2023-02-27T16:56:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"c75a70a5-9b0d-4677-9c0e-b99716c65fcd","html_url":"https://github.com/cdkharris/texformatter","commit_stats":null,"previous_names":["cdkharris/texformatter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdkharris/texformatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdkharris%2Ftexformatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdkharris%2Ftexformatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdkharris%2Ftexformatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdkharris%2Ftexformatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdkharris","download_url":"https://codeload.github.com/cdkharris/texformatter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdkharris%2Ftexformatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","tex"],"created_at":"2025-10-09T16:00:02.458Z","updated_at":"2026-04-15T16:31:49.625Z","avatar_url":"https://github.com/cdkharris.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Camilla D. K. Harris\n\nOctober 2018\n\n# texformatter\n\nThis module contains functions for printing numbers and tables in TeX format.\n\n## Examples\n\nUse it like this:\n\n    import texformatter as texf\n    x = 3.14\n\n    # decimal\n    texstr = texf.decimal(\"{:4.2f}\".format(x)) # -\u003e $3.14$\n    # scientific notation\n    texstr = texf.scinot(\"{:1.0E}\".format(x)) # -\u003e $3\\times10^{+00}$\n\n    # Then write the number to a file:\n    with open(\"x.tex\",\"w\") as text_file:\n        print(texstr, file=text_file)\n\nThen reference the number in your tex source with \\input{} like:\n\n    The value of $\\pi$ is \\input{x.tex}.\n\nPrint a table:\n\n    import texformatter as texf\n    a = {\"b\":[\"1\",\"2\",\"3\"],\"c\":[\"1\",\"2\",\"3\"]}\n    print(texf.dict2tab(a,columns=False))\n\nOutput will be:\n\n    \\begin{tabular}{clll}\n    b\u00261\u00262\u00263\\\\\n    c\u00261\u00262\u00263\\\\\n    \\end{tabular}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdkharris%2Ftexformatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdkharris%2Ftexformatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdkharris%2Ftexformatter/lists"}