• Stars
    star
    418
  • Rank 103,620 (Top 3 %)
  • Language
    TeX
  • License
    BSD 3-Clause "New...
  • Created about 13 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

LaTeX style for Python highlighting

Python highlighting in LaTeX

A simple Python highlighting style to be used with LaTeX.

The package is loaded by the following line:

\usepackage{pythonhighlight}

It is then possible to include a Python snippet directly in the code using:

\begin{python}
def f(x):
    return x
\end{python}

It is also possible to include inline Python code in LaTeX with \pyth:

The special method \pyth{__init__}... 

Last but not least, you can load an external Python file with:

\inputpython{python_file.py}{23}{50}

to display the contents of the file python_file from line 23 to line 50.

More Repositories

1

zsh-git-prompt

Informative git prompt for zsh
Haskell
1,661
star
2

dispatch

Simple dispatch package for python, extracted from django.dispatch.
Python
37
star
3

spacemacs-coq

A very simple coq layer for spacemacs
Emacs Lisp
36
star
4

pydflatex

Python wrapper around pdflatex
Python
26
star
5

odelab

Numerical simulation of ODEs in python.
Python
20
star
6

pygfplots

Python interface to pgfplots
Python
15
star
7

Unixode

LaTeX Style file to use for typesetting maths in unicode with XeLaTeX
TeX
14
star
8

bsplinelab

Implementation of B-Splines in Python for various geometries
Python
13
star
9

downhill-simplex

Implementation of the downhill simplex method (aka Nelderโ€“Mead method)
Python
12
star
10

GeometricAlgebra

Work based on http://www-sop.inria.fr/marelle/GeometricAlgebra/
Coq
10
star
11

python-progressbar

Clone of python-progressbar
Python
10
star
12

diffeopt

Optimisation on Diffeomorphisms
Python
8
star
13

python-sundials

Clone of the python-sundials project
Python
5
star
14

SpecTraVVave

Python project to compute bifurcation diagrams of travelling waves
Python
4
star
15

polynomial

Simple Polynomial class in Python
Python
4
star
16

allergy

Style file to write drafts (and final documents) in LaTeX
TeX
3
star
17

odlpet

Bindings for positron emission tomography
Python
3
star
18

homogint

Integrators on homogeneous spaces
Jupyter Notebook
2
star
19

vimrc

my old vim configuration files
Vim Script
2
star
20

hothello

Othello in Haskell
Haskell
2
star
21

spinsys

Symplectic midpoint solver for spin systems on a product of spheres.
Python
2
star
22

femshape

Library for computing shape invariants of planar curves using finite element method
Jupyter Notebook
2
star
23

sphinx-scons

Clone
Python
1
star
24

mathpython

Python for Mathematics
1
star