summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pythonhighlight/README.md
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-10 23:32:50 +0000
committerKarl Berry <karl@freefriends.org>2017-02-10 23:32:50 +0000
commit28bfe10fd5a87666dd91f3d56e9015bc8b3ed40e (patch)
tree48ceeb9026d34e321d78f899d61fbf3ff68a5409 /Master/texmf-dist/doc/latex/pythonhighlight/README.md
parent03118b4bd76474b4eafb94be4bf22f06d6f7b58e (diff)
pythonhighlight (9feb17)
git-svn-id: svn://tug.org/texlive/trunk@43191 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pythonhighlight/README.md')
-rw-r--r--Master/texmf-dist/doc/latex/pythonhighlight/README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pythonhighlight/README.md b/Master/texmf-dist/doc/latex/pythonhighlight/README.md
new file mode 100644
index 00000000000..06fc5b02af3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pythonhighlight/README.md
@@ -0,0 +1,33 @@
+Python highlighting in LaTeX
+============================
+
+A simple Python highlighting style to be used with LaTeX.
+
+The package is loaded by the following line:
+
+```tex
+\usepackage{pythonhighlight}
+```
+
+It is then possible to include a Python snippet directly in the code using:
+
+```tex
+\begin{python}
+def f(x):
+ return x
+\end{python}
+```
+
+It is also possible to include inline Python code in LaTeX with ``\pyth``:
+
+```tex
+The special method \pyth{__init__}...
+```
+
+Last but not least, you can load an external Python file with:
+
+```tex
+\inputpython{python_file.py}{23}{50}
+```
+
+to display the contents of the file ``python_file`` from line 23 to line 50.