Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
pytex
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2017-04-22 17:42:38 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3d32bbd98c0626d6f086681cef714b71f7a82ce
f3d32bbd
1 parent
9c131b93
added doc abour reset()
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
README.md
README.md
View file @
f3d32bb
...
...
@@ -33,6 +33,12 @@ should be passed to Python `eval` and the computed value integrated
into the LaTeX document. You may use also the corresponding
environments
`pyexec`
and
`pyeval`
.
An important feature of
`pytex`
is that all the snippets are executed
in the same environment, so that you can do something like
`
\p
yx{x=5}
balh blah
\p
yv{x+2} % yields 7
`
. If you wish to forget about all
previous computation, use
`\pyx{reset()}`
which clears the execution
environment.
A Python function
`tex(s, *args)`
may be called from Python snippets
to generate some LaTeX code that will be inserted in the document
instead of the snippet (and, in the case of
`\pyv`
, after its result).
...
...
Please
register
or
login
to post a comment