prosecode

所属分类:代码编辑器
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2022-12-08 03:48:01
上 传 者sh-1993
说明:  Python中从降价到乳胶的识字编程
(Literate programming in Python from markdown to latex)

文件列表:
LICENSE (1067, 2020-04-03)
Pipfile (291, 2020-04-03)
Pipfile.lock (13508, 2020-04-03)
docs/ (0, 2020-04-03)
docs/.buildinfo (230, 2020-04-03)
docs/.nojekyll (0, 2020-04-03)
docs/_sources/ (0, 2020-04-03)
docs/_sources/cli.rst.txt (469, 2020-04-03)
docs/_sources/examples.rst.txt (813, 2020-04-03)
docs/_sources/index.rst.txt (787, 2020-04-03)
docs/_sources/installation.rst.txt (126, 2020-04-03)
docs/_sources/latex.rst.txt (664, 2020-04-03)
docs/_sources/makefileusage.rst.txt (930, 2020-04-03)
docs/_sources/problem.rst.txt (1074, 2020-04-03)
docs/_sources/tables.rst.txt (159, 2020-04-03)
docs/_static/ (0, 2020-04-03)
docs/_static/basic.css (12261, 2020-04-03)
docs/_static/css/ (0, 2020-04-03)
docs/_static/css/badge_only.css (3391, 2020-04-03)
docs/_static/css/theme.css (118340, 2020-04-03)
docs/_static/doctools.js (9354, 2020-04-03)
docs/_static/documentation_options.js (329, 2020-04-03)
docs/_static/file.png (286, 2020-04-03)
docs/_static/fonts/ (0, 2020-04-03)
docs/_static/fonts/Inconsolata-Bold.ttf (109948, 2020-04-03)
docs/_static/fonts/Inconsolata-Regular.ttf (96964, 2020-04-03)
docs/_static/fonts/Inconsolata.ttf (63184, 2020-04-03)
docs/_static/fonts/Lato-Bold.ttf (656544, 2020-04-03)
docs/_static/fonts/Lato-Regular.ttf (656568, 2020-04-03)
docs/_static/fonts/Lato/ (0, 2020-04-03)
docs/_static/fonts/Lato/lato-bold.eot (256056, 2020-04-03)
docs/_static/fonts/Lato/lato-bold.ttf (600856, 2020-04-03)
docs/_static/fonts/Lato/lato-bold.woff (309728, 2020-04-03)
docs/_static/fonts/Lato/lato-bold.woff2 (184912, 2020-04-03)
docs/_static/fonts/Lato/lato-bolditalic.eot (266158, 2020-04-03)
docs/_static/fonts/Lato/lato-bolditalic.ttf (622572, 2020-04-03)
docs/_static/fonts/Lato/lato-bolditalic.woff (323344, 2020-04-03)
docs/_static/fonts/Lato/lato-bolditalic.woff2 (193308, 2020-04-03)
... ...

# Prose Code ### Literate programming in Python from markdown to LaTeX The `prosecode` library is being developed as a way to generate really neat LaTeX from markdown files. It will support both tangling and weaving code. That is, it can run the code from the markdown files and it can also extract the code into separate `.py` files. It is assumed that the markdown file uses github style fenced code blocks with extra data as is used in the Markdown-Preview-Enhanced plugin for Atom and VSCode. ## Installation (coming soon) ``` pip install prosecode ``` ## Tangling The following will extract the python code from `myfile.md` and store it in files. ``` $ prosecode tangle myfile.md ``` There is an optional `--srcdir` parameter that tells where to put the tangled source code. ``` $ prosecode tangle myfile.md --srcdir src/ ``` ## Weaving The following will execute the code in `myfile.md`, place the output inline, and then convert it to LaTeX. ``` $ prosecode weave mdfile.md --execute=True --outfile someotherfile.tex ``` The `--outfile` parameter is optional. If omitted, it will simply replace `.md` with `.tex`. There is also an optional parameter `--execute` that tells whether or not to execute the code chunks. The default value is false.

近期下载者

相关文件


收藏者