summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pythonhighlight
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
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')
-rw-r--r--Master/texmf-dist/doc/latex/pythonhighlight/LICENSE.rst11
-rw-r--r--Master/texmf-dist/doc/latex/pythonhighlight/README.md33
2 files changed, 44 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pythonhighlight/LICENSE.rst b/Master/texmf-dist/doc/latex/pythonhighlight/LICENSE.rst
new file mode 100644
index 00000000000..ebbc520ff69
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pythonhighlight/LICENSE.rst
@@ -0,0 +1,11 @@
+Copyright (c) 2009--2017, Olivier Verdier
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ * Neither the name of "pythonhighlighting" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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.