Showing
1 changed file
with
11 additions
and
1 deletions
... | @@ -55,7 +55,17 @@ instead of `@` (or any other character). For instance: | ... | @@ -55,7 +55,17 @@ instead of `@` (or any other character). For instance: |
55 | tex("@@@+@@@", "x", char="+") => @@@x@@@ | 55 | tex("@@@+@@@", "x", char="+") => @@@x@@@ |
56 | 56 | ||
57 | So, string `s` is not escaped for LaTeX special characters, only the | 57 | So, string `s` is not escaped for LaTeX special characters, only the |
58 | -`args` are. | 58 | +`args` are. Other predefined Python functions are: |
59 | + | ||
60 | + * `pygmentize(path, include=True, inline=False)`: typesets the | ||
61 | + content of file `path` that is expected to be Python code, and it | ||
62 | + outputs a LaTeX file that is included in main source if | ||
63 | + `include=True`, either inline or displayed depending on `inline` | ||
64 | + argument. If Pygments is not installed, the source code is used | ||
65 | + verbatim. | ||
66 | + * `escape(text)`: returns a copy if string `text` in which every | ||
67 | + LaTeX special character has been properly escaped.x | ||
68 | + * | ||
59 | 69 | ||
60 | Two more LaTeX commands are available: | 70 | Two more LaTeX commands are available: |
61 | 71 | ... | ... |
-
Please register or login to post a comment