{ "info": { "author": "Matthew Brett, Ond\u0159ej \u010cert\u00edk", "author_email": "matthew.brett@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering" ], "description": "######################################################\nTexext - sphinx extensions for working with LaTeX math\n######################################################\n\n``texext`` contains a couple of Sphinx_ extensions for working with LaTeX math.\n\n***********\nmath_dollar\n***********\n\n``math_dollar`` replaces math expressions between dollars in ReST_ with\nequivalent inline math.\n\nFor example::\n\n Here is some math: $a = 2$\n\nwill be replaced by::\n\n Here is some math: :math:`a = 2`\n\nThe extension makes some effort not to replace dollars that aren't meant as\nmath, but please check your output carefully, and submit an issue on the\n`texext issue tracker`_ if we have messed up.\n\nTo enable math_dollar, make sure that the ``texext`` package is on your\nPython path, and add ``texext.math_dollar`` to your list of extensions in the\nSphinx ``conf.py``. If you want math_dollar to process docstrings, you\nshould add ``sphinx.ext.autodoc`` higher up your extensions list than\n``math_dollar``.\n\n******************\nmathcode directive\n******************\n\nUsers of `sympy `_ may want to generate LaTeX\nexpressions dynamically in Sympy, and then render them in LaTeX in the built\npages. You can do this with the ``mathcode`` directive::\n\n .. mathcode::\n\n import sympy\n a, b = sympy.symbols('a, b')\n a * 10 + 2 * b\n\nThe directive runs ``sympy.latex()`` on the return result of the final\nexpression, and embeds it in a ``.. math::`` directive, resulting in\nequivalent output to sphinx of::\n\n .. math::\n\n 10 a + 2 b\n\nContext (namespace) is preserved by default, so you can use context in\nsubsequent directives, e.g.::\n\n .. mathcode::\n\n a * 5 + 3 * b\n\nIf the last expression in the mathcode block is not an expression, the context\ngets updated, but the extension generates no math directive to the output.\nThis allows you to have blocks that fill in calculations without rendering to\nthe page. For example, this generates no output::\n\n .. mathcode::\n\n expr = a * 4\n\nYou can use the generated context in a later directive::\n\n .. mathcode::\n\n expr\n\nTo reset the context (namespace), use the ``newcontext`` option::\n\n .. mathcode::\n :newcontext:\n\n import sympy # again\n\nIf you would like mathcode to share a namespace with the `matplotlib\nplot_directive`_, set the following in your ``conf.py``::\n\n # Config of mathcode directive\n mathcode_use_plot_ns = True\n\n.. note::\n\n If you want to use the plot_directive context from within mathcode\n directives, you need to list the plot_directive above the mathcode\n directive in your sphinx extension list. All the plot directives code\n will get run before all the mathcode directive code.\n\n Conversely, if you want to use the mathcode directive context from the\n plot_directive, list mathcode first in your sphinx extension list.\n\n.. note::\n\n By default, the Matplotlib ``plot_directive`` will clear the namespace\n context for each directive, so you may want to use the ``:context:``\n option to the plot directive, most of the time.\n\nIf you are using Nb2plots_ for your plots, and you want Mathcode to share a\nnamespace with the Nb2plots plot directive, you will need to specify the\nNb2plots plot context directly::\n\n # Config of mathcode directive\n mathcode_use_plot_ns = True\n mathcode_plot_context = 'nb2plots.nbplots.plot_context'\n\nMore generally if you want to work with a customized version of the\nplot_directive, you need to supply the name of the plot context dictionary for\nthe plot directive, as a string. For example, if you have a custom plot\ndirective module importable as ``import my_path.plot_directive``, with the\nplot context in ``my_path.plot_directive.plot_context``, then your ``conf.py``\nshould have lines like these::\n\n # Config of mathcode directive\n mathcode_plot_context = \"my_path.plot_directive.plot_context\"\n\nThe plot context is a string rather than the attribute itself in order to let\nsphinx pickle the configuration between runs. This allows sphinx to avoid\nbuilding pages that have not changed between calls to ``sphinx-build``.\n\nTo enable the mathcode directive, make sure that the ``texext`` package is on\nyour Python path, and add ``textext.mathcode`` to your list of extensions in\nthe Sphinx ``conf.py``.\n\n****\nCode\n****\n\nSee https://github.com/matthew-brett/texext\n\nReleased under the BSD two-clause license - see the file ``LICENSE`` in the\nsource distribution.\n\n`travis-ci `_ kindly tests the\ncode automatically under Python versions 2.7, and 3.3 through 3.6.\n\nThe latest released version is at https://pypi.python.org/pypi/texext\n\n*******\nSupport\n*******\n\nPlease put up issues on the `texext issue tracker`_.\n\n.. _sphinx: http://sphinx-doc.org\n.. _rest: http://docutils.sourceforge.net/rst.html\n.. _texext issue tracker: https://github.com/matthew-brett/texext/issues\n.. _matplotlib plot_directive: http://matplotlib.org/sampledoc/extensions.html\n.. _nb2plots: https://pypi.python.org/pypi/nb2plots", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/matthew-brett/texext", "keywords": "", "license": "BSD license", "maintainer": "", "maintainer_email": "", "name": "texext", "package_url": "https://pypi.org/project/texext/", "platform": "", "project_url": "https://pypi.org/project/texext/", "project_urls": { "Homepage": "http://github.com/matthew-brett/texext" }, "release_url": "https://pypi.org/project/texext/0.6.1/", "requires_dist": null, "requires_python": "", "summary": "Sphinx extensions for working with LaTeX math", "version": "0.6.1" }, "last_serial": 4196804, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5a58df0db980a064870140cd3fa2a9a9", "sha256": "b926a2951c2fab59fb6917406d3304a147c5ce6c08b716cda096405d612f6bba" }, "downloads": -1, "filename": "texext-0.1.tar.gz", "has_sig": true, "md5_digest": "5a58df0db980a064870140cd3fa2a9a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26373, "upload_time": "2015-10-11T08:26:42", "url": "https://files.pythonhosted.org/packages/f2/7c/31a4f3048c7ca4a41abffb1cfdf7536dd19b953faace490464541c5370c8/texext-0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "3d66a4b421f15e6e3cef463e12dad1e8", "sha256": "d0bceae6f7b63f26e2c4b396559607d6f3ac60ac8f3c6687f7f52aa6b57a0b7c" }, "downloads": -1, "filename": "texext-0.1.zip", "has_sig": true, "md5_digest": "3d66a4b421f15e6e3cef463e12dad1e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31180, "upload_time": "2015-10-11T08:26:54", "url": "https://files.pythonhosted.org/packages/45/d8/ee956b5748f14572505f54a0ac7a768b7ced09b1155732df7bb5445c1a82/texext-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6da24b8d9172d971d0cd7b41a6d2d4a0", "sha256": "b4765f2529a32d960df8e59f0051233554f0800db18f5271280f13b749f5a6ce" }, "downloads": -1, "filename": "texext-0.2.tar.gz", "has_sig": true, "md5_digest": "6da24b8d9172d971d0cd7b41a6d2d4a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38317, "upload_time": "2015-10-12T19:41:42", "url": "https://files.pythonhosted.org/packages/70/f9/812311447817f280035553aeaf7c6c28d5f0f4788fafa3ebb6056f80b0f3/texext-0.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "a7fb5ee13599409eff39c6dffdf0a5bf", "sha256": "8ed1dde8caed4cacf73f82aa1120dadf1a13ecd789ca4f3d5d8e48b8309ade86" }, "downloads": -1, "filename": "texext-0.2.zip", "has_sig": true, "md5_digest": "a7fb5ee13599409eff39c6dffdf0a5bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50578, "upload_time": "2015-10-12T19:41:51", "url": "https://files.pythonhosted.org/packages/65/f3/202dd2aa388029b8313cacbdf28cbe56530253b5cc306b20a64845d0a6dc/texext-0.2.zip" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "ca0c756fd2d890a1c4c09b8939e9103d", "sha256": "4e338f6f81cb1ff0881229fa5533ad0f9abf868d2e8b38e4f8f8645b442f3484" }, "downloads": -1, "filename": "texext-0.3.tar.gz", "has_sig": true, "md5_digest": "ca0c756fd2d890a1c4c09b8939e9103d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40080, "upload_time": "2015-11-26T01:27:56", "url": "https://files.pythonhosted.org/packages/3f/da/ac5a4d21acbffc3a7942fe5f41f52f33ead6a96bc9483e4306aaffdf2409/texext-0.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "e1ea8642855727f9f40a2332d3b39841", "sha256": "3c3764095b6b0f0df2d9955fbc9545917b0a529a66063d9ccebc2571ae9f11c4" }, "downloads": -1, "filename": "texext-0.3.zip", "has_sig": true, "md5_digest": "e1ea8642855727f9f40a2332d3b39841", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52549, "upload_time": "2015-11-26T01:28:07", "url": "https://files.pythonhosted.org/packages/a5/1d/8a7051b25b8f205aabc646b5df8bac96c747e49b807ac6ea61d4767da740/texext-0.3.zip" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "8c0982214536ff437e31474780b22232", "sha256": "2d2ad9b5a2aee9b8bd83def1ddd68c2bb41319488e856d97e0ec46c5884e5d2a" }, "downloads": -1, "filename": "texext-0.3.1.tar.gz", "has_sig": true, "md5_digest": "8c0982214536ff437e31474780b22232", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40248, "upload_time": "2015-11-28T23:34:51", "url": "https://files.pythonhosted.org/packages/e6/ed/cbce627796e7f77cca3a3defdbbe773df96659411d469a652f1e3c6c0dda/texext-0.3.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "beb1298d31ef676c87afb5f90f8a8806", "sha256": "ed7e541982090176c0f81217b28f176bfcf781583fe5a2460887b5f6b52102f6" }, "downloads": -1, "filename": "texext-0.3.1.zip", "has_sig": true, "md5_digest": "beb1298d31ef676c87afb5f90f8a8806", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 52861, "upload_time": "2015-11-28T23:35:03", "url": "https://files.pythonhosted.org/packages/b3/41/6f6d98cb3da5e46f5e7836b21d9c2c79e95917f4d81818baed21418e92f8/texext-0.3.1.zip" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "9d9eb9ab4172f533d45f4cd7b697085b", "sha256": "5928e1048913bd1e138b7b879617dea51635ad6ec752d559ef3b9e439d333cb3" }, "downloads": -1, "filename": "texext-0.3.2.tar.gz", "has_sig": true, "md5_digest": "9d9eb9ab4172f533d45f4cd7b697085b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41574, "upload_time": "2016-04-14T04:10:38", "url": "https://files.pythonhosted.org/packages/22/63/f112d4add933f442f49f3c77ba74bb24477619ad55bb41042923c2a18fbf/texext-0.3.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "4923612ec5126124679e67513fe61a26", "sha256": "8ce5c1354ec255dec47ccf41597c22a6eb755d15c8edfd6b3596de6086bc12e3" }, "downloads": -1, "filename": "texext-0.3.2.zip", "has_sig": true, "md5_digest": "4923612ec5126124679e67513fe61a26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59758, "upload_time": "2016-04-14T04:10:52", "url": "https://files.pythonhosted.org/packages/ff/cd/f992b54ecc683977e3b74cb9fd8fa4df0280d38235118d9b0f345cd84a0e/texext-0.3.2.zip" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "4af79575caaa6a7ae3b3a2aa882e9cca", "sha256": "f0b06e7c7674af01b3604e87c57aa7f6158c7ab45f3dab694c2504e142ea7e87" }, "downloads": -1, "filename": "texext-0.3.3.zip", "has_sig": true, "md5_digest": "4af79575caaa6a7ae3b3a2aa882e9cca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60799, "upload_time": "2017-01-03T02:32:26", "url": "https://files.pythonhosted.org/packages/2d/1f/6843e0d37c344810af8aaff44121ab3b39115564d77cb8274b6f16404493/texext-0.3.3.zip" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "5aa319b0ab8867eace31fa5cf38ef47f", "sha256": "f2126838b11e497d51b9de48c2726accda4da26afc81e17f537b69e02f32bbe9" }, "downloads": -1, "filename": "texext-0.3.4.zip", "has_sig": true, "md5_digest": "5aa319b0ab8867eace31fa5cf38ef47f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60866, "upload_time": "2017-01-03T14:03:21", "url": "https://files.pythonhosted.org/packages/bf/f3/2c689543afbd118b2891077f0773afcbb60806eac900f61caedeeed861c2/texext-0.3.4.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "1d6041cec7259b43a71f7d24b6373c77", "sha256": "5f8e0c4ed5f5320a158c53d9c8bcb6acdfdb235146baca88dc282bf093c8260a" }, "downloads": -1, "filename": "texext-0.4.zip", "has_sig": true, "md5_digest": "1d6041cec7259b43a71f7d24b6373c77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60761, "upload_time": "2017-07-26T14:23:23", "url": "https://files.pythonhosted.org/packages/47/89/34dea3a46713e024b3f6f0664c5eb07d5f60e142e3e654c335fc0d980ddd/texext-0.4.zip" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "53772a54b43d4cdc50f236e1875a317a", "sha256": "40fd47668d5330c5bd94504c5da8236a19272c73ff75f9e99b75b37fd8d54546" }, "downloads": -1, "filename": "texext-0.5.zip", "has_sig": true, "md5_digest": "53772a54b43d4cdc50f236e1875a317a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45093, "upload_time": "2017-08-14T23:15:03", "url": "https://files.pythonhosted.org/packages/00/90/2fdcecb597917cdbc50bab6e66eb8560c461c81cc17c83a8cfe7e17cb28a/texext-0.5.zip" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "773defbed7afc9d8e6b762eac82c09dd", "sha256": "4425a210f041e1145d887a7a924ca075f77eab569e1a90e9881dc7e2b7540afd" }, "downloads": -1, "filename": "texext-0.6.zip", "has_sig": true, "md5_digest": "773defbed7afc9d8e6b762eac82c09dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46812, "upload_time": "2018-05-07T22:21:36", "url": "https://files.pythonhosted.org/packages/34/5d/3d3815d4d5f87228bce6f4db3071310bb294de3be8905b588dc901bb888a/texext-0.6.zip" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "a8bf2d509afdbc1307a0e7bfc4bd3eaf", "sha256": "d103978ba910de4e0a0b03b0ae8cfde28ee5ec4f82bab71603d44c31ff82295d" }, "downloads": -1, "filename": "texext-0.6.1.tar.gz", "has_sig": true, "md5_digest": "a8bf2d509afdbc1307a0e7bfc4bd3eaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36065, "upload_time": "2018-08-22T16:18:08", "url": "https://files.pythonhosted.org/packages/3f/f2/b29458c16470e9c2ce788febda9f25e6a36f0f5657daa51ae99243163ab8/texext-0.6.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a8bf2d509afdbc1307a0e7bfc4bd3eaf", "sha256": "d103978ba910de4e0a0b03b0ae8cfde28ee5ec4f82bab71603d44c31ff82295d" }, "downloads": -1, "filename": "texext-0.6.1.tar.gz", "has_sig": true, "md5_digest": "a8bf2d509afdbc1307a0e7bfc4bd3eaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36065, "upload_time": "2018-08-22T16:18:08", "url": "https://files.pythonhosted.org/packages/3f/f2/b29458c16470e9c2ce788febda9f25e6a36f0f5657daa51ae99243163ab8/texext-0.6.1.tar.gz" } ] }