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-24 09:30:03 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
54b91315e1a02c2ba01c17fbc222551285262adc
54b91315
1 parent
f3d32bbd
improved doc, fixed errors
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
README.md
README.md
View file @
54b9131
...
...
@@ -49,12 +49,15 @@ special characters. Having `@@` in `s` inserts a single `@` in the
result without using
`args`
, option
`char='*'`
allows to use
`*`
instead of
`@`
(or any other character). For instance:
tex("hello") => hello
tex("\foo{@}", "$") => \foo{\$}
tex("@@") => @
tex("@@@+@@@", "x") => @@@x@@@
tex("hello") => hello
tex(r"\foo{@}", "$") => \foo{\$}
tex("@@") => @
tex("@@@+@@@", "x", char="+") => @@@x@@@
So, string
`s`
is not escaped for LaTeX special characters, only the
`args`
are.
Two more commands are available:
Two more
LaTeX
commands are available:
*
`\pyc{pass}`
inserts a pretty printed version of the Python snippet
without evaluating it, environment
`pycode`
is similar but for a
...
...
@@ -84,5 +87,6 @@ Compile in three passes, like a bibTeX:
Just run
`latex -shell-escape jobname`
. Pros: you use just one command
and the results are inserted on the fly so everything is immediately
consistent. Cons: it's slower (a server version of PyTeX is launched
and communication takes some time, this may be improved in the
future).
and communication between
`latex`
and the server takes some time, this
may be improved in the future if this is caused by PyTeX, but I
suspect it is
`\write18`
mechanism that is slow).
...
...
Please
register
or
login
to post a comment