{ "info": { "author": "Matthew Edwards", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Text Processing :: Markup :: LaTeX" ], "description": "# LaTeX Python figures\n\n\n\nGiven a Python script like this which draws a Matplotlib figure:\n\n```python\n\ndef main():\n\n x = np.arange(10)\n\n y = x**2\n\n plt.plot(x, y)\n\n plt.xlabel('$x$')\n\n plt.ylabel('$x^2$')\n\n return 'test' # Figure filename\n\n```\n\n\n\nyou can insert it into a LaTeX document like this:\n\n\n\n```latex\n\n\\begin{figure}\n\n \\pyfig{'test.py'}\n\n \\caption{Test figure.}\n\n\\end{figure}\n\n```\n\n\n\nBy default, the figure size defaults to `\\textwidth` square and the font and font size match the rest of the document.\n\n\n\n\n\n\n\n## Installation\n\nRequires a LaTeX installation (probably TeX Live 2019), PythonTeX, and Python 3.6 or greater.\n\nExamples require latexmk.\n\n\n\nTo install the Python package:\n\n```bash\n\npip3 install pythontexfigures\n\n```\n\n\n\nTo install the LaTeX package into `texmf-local`:\n\n```bash\n\nsudo python3 -m pythontexfigures.install\n\n```\n\nIf you don't have root access, you can install it into `texmf-home` instead:\n\n```bash\n\nsudo python3 -m pythontexfigures.install TEXMFHOME\n\n```\n\n\n\nAlternatively, call `pf.print_preamble()` in your pythontexcustomcode and follow with `\\printpythontex`.\n\n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mje-nz/pythontexfigures", "keywords": "", "license": "BSD 3-Clause", "maintainer": "", "maintainer_email": "", "name": "pythontexfigures", "package_url": "https://pypi.org/project/pythontexfigures/", "platform": "", "project_url": "https://pypi.org/project/pythontexfigures/", "project_urls": { "Homepage": "https://github.com/mje-nz/pythontexfigures" }, "release_url": "https://pypi.org/project/pythontexfigures/0.2.0/", "requires_dist": [ "matplotlib", "pygments" ], "requires_python": ">=3.5", "summary": "Embed matplotlib figures into LaTeX documents using PythonTeX", "version": "0.2.0" }, "last_serial": 5566908, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "43c61a59f42f03a8657a3b7f706514e4", "sha256": "f6fd17a786b8b2b3714cd2d2007e65a3646785d0ba8d42995e58892640f077fd" }, "downloads": -1, "filename": "pythontexfigures-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "43c61a59f42f03a8657a3b7f706514e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 9025, "upload_time": "2019-07-21T11:43:31", "url": "https://files.pythonhosted.org/packages/43/e9/76eaaec9cd6c2544d02d923e3949bdfc12bbb7c44e4d1d053532bd61b4ed/pythontexfigures-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "03efee64acc4286831edf733b3780b41", "sha256": "ad2d781f8ba94145b286bb46bc89d1595e10d0efe556924748e5c2498186e152" }, "downloads": -1, "filename": "pythontexfigures-0.1.0.tar.gz", "has_sig": false, "md5_digest": "03efee64acc4286831edf733b3780b41", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 6877, "upload_time": "2019-07-21T11:43:34", "url": "https://files.pythonhosted.org/packages/86/f8/df5c43715d86f3451d1d55312970d91d55ca3bfc982eb888885a82c9bbbd/pythontexfigures-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "14dd793c9103bfaecded61b79a174d68", "sha256": "56b978dcda84404252bafacb91336409bb28d4e746b786badfee575ab0802b16" }, "downloads": -1, "filename": "pythontexfigures-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "14dd793c9103bfaecded61b79a174d68", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 10051, "upload_time": "2019-07-22T11:22:48", "url": "https://files.pythonhosted.org/packages/20/e8/edb82dab41651ef6639b4ebc2c5a130864fc9065bb263e468d04dd086546/pythontexfigures-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a02d97b1e62e832d4d0b7b7f42abaae2", "sha256": "99f2c9bff53ce5a41fa901add18328f0a767017949aee3198d58619c4fba9a4c" }, "downloads": -1, "filename": "pythontexfigures-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a02d97b1e62e832d4d0b7b7f42abaae2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 7658, "upload_time": "2019-07-22T11:22:50", "url": "https://files.pythonhosted.org/packages/aa/f5/3dc9158c0cc74362281c8ff4e9fb24a39b5606e7726d2389c8101e857507/pythontexfigures-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "14dd793c9103bfaecded61b79a174d68", "sha256": "56b978dcda84404252bafacb91336409bb28d4e746b786badfee575ab0802b16" }, "downloads": -1, "filename": "pythontexfigures-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "14dd793c9103bfaecded61b79a174d68", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 10051, "upload_time": "2019-07-22T11:22:48", "url": "https://files.pythonhosted.org/packages/20/e8/edb82dab41651ef6639b4ebc2c5a130864fc9065bb263e468d04dd086546/pythontexfigures-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a02d97b1e62e832d4d0b7b7f42abaae2", "sha256": "99f2c9bff53ce5a41fa901add18328f0a767017949aee3198d58619c4fba9a4c" }, "downloads": -1, "filename": "pythontexfigures-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a02d97b1e62e832d4d0b7b7f42abaae2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 7658, "upload_time": "2019-07-22T11:22:50", "url": "https://files.pythonhosted.org/packages/aa/f5/3dc9158c0cc74362281c8ff4e9fb24a39b5606e7726d2389c8101e857507/pythontexfigures-0.2.0.tar.gz" } ] }