Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -33,6 +33,12 @@ should be passed to Python `eval` and the computed value integrated | ... | @@ -33,6 +33,12 @@ should be passed to Python `eval` and the computed value integrated |
33 | into the LaTeX document. You may use also the corresponding | 33 | into the LaTeX document. You may use also the corresponding |
34 | environments `pyexec` and `pyeval`. | 34 | environments `pyexec` and `pyeval`. |
35 | 35 | ||
36 | +An important feature of `pytex` is that all the snippets are executed | ||
37 | +in the same environment, so that you can do something like `\pyx{x=5} | ||
38 | +balh blah \pyv{x+2} % yields 7`. If you wish to forget about all | ||
39 | +previous computation, use `\pyx{reset()}` which clears the execution | ||
40 | +environment. | ||
41 | + | ||
36 | A Python function `tex(s, *args)` may be called from Python snippets | 42 | A Python function `tex(s, *args)` may be called from Python snippets |
37 | to generate some LaTeX code that will be inserted in the document | 43 | to generate some LaTeX code that will be inserted in the document |
38 | instead of the snippet (and, in the case of `\pyv`, after its result). | 44 | instead of the snippet (and, in the case of `\pyv`, after its result). | ... | ... |
-
Please register or login to post a comment