Franck Pommereau

improved doc, fixed errors

...@@ -50,11 +50,14 @@ result without using `args`, option `char='*'` allows to use `*` ...@@ -50,11 +50,14 @@ result without using `args`, option `char='*'` allows to use `*`
50 instead of `@` (or any other character). For instance: 50 instead of `@` (or any other character). For instance:
51 51
52 tex("hello") => hello 52 tex("hello") => hello
53 - tex("\foo{@}", "$") => \foo{\$} 53 + tex(r"\foo{@}", "$") => \foo{\$}
54 tex("@@") => @ 54 tex("@@") => @
55 - tex("@@@+@@@", "x") => @@@x@@@ 55 + tex("@@@+@@@", "x", char="+") => @@@x@@@
56 56
57 -Two more commands are available: 57 +So, string `s` is not escaped for LaTeX special characters, only the
58 +`args` are.
59 +
60 +Two more LaTeX commands are available:
58 61
59 * `\pyc{pass}` inserts a pretty printed version of the Python snippet 62 * `\pyc{pass}` inserts a pretty printed version of the Python snippet
60 without evaluating it, environment `pycode` is similar but for a 63 without evaluating it, environment `pycode` is similar but for a
...@@ -84,5 +87,6 @@ Compile in three passes, like a bibTeX: ...@@ -84,5 +87,6 @@ Compile in three passes, like a bibTeX:
84 Just run `latex -shell-escape jobname`. Pros: you use just one command 87 Just run `latex -shell-escape jobname`. Pros: you use just one command
85 and the results are inserted on the fly so everything is immediately 88 and the results are inserted on the fly so everything is immediately
86 consistent. Cons: it's slower (a server version of PyTeX is launched 89 consistent. Cons: it's slower (a server version of PyTeX is launched
87 -and communication takes some time, this may be improved in the 90 +and communication between `latex` and the server takes some time, this
88 -future). 91 +may be improved in the future if this is caused by PyTeX, but I
92 +suspect it is `\write18` mechanism that is slow).
......