SATySFiの字句解析器には主要なモードが4つある:
- プログラムモード
- 垂直モード
- 水平モード
- 数式モード
またサブモードとして
# By Jake VanderPlas | |
# License: BSD-style | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def discrete_cmap(N, base_cmap=None): | |
"""Create an N-bin discrete colormap from the specified input map""" |
pygmentize -f rtf FILE | pbcopy
(Pasting RTF directly into PowerPoint doesn't work correctly, at least with PowerPoint 2008 — it extends colour spans longer than it should, and sometimes removes line breaks. Going via TextEdit seems to solve the problem.)