Last active
February 4, 2016 17:38
-
-
Save kroger/272a4932325d7629831c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. autoimage:: notation3.png | |
:scale-html: 40 | |
:scale-latex: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bodyfont = 'Palatino', serif | |
headfont = Tahoma, Geneva, sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. code-example:: note_name.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: AnonymousPro; | |
font-weight: normal; | |
font-style: normal; | |
src: url("fonts/Anonymous Pro.ttf"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
latex_elements = { | |
'papersize': '', | |
'fontpkg': '', | |
'fncychap': '', | |
'maketitle': '\cover', | |
'pointsize': '', | |
'preamble': '', | |
'releasename': "", | |
'babel': '', | |
'printindex': '', | |
'fontenc': '', | |
'inputenc': '', | |
'classoptions': '', | |
'utf8extra': '', | |
} | |
latex_additional_files = ["mfgan-bw.sty", "mfgan.sty", "_static/cover.png"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. literalinclude:: pyknon/simplemusic.py | |
:pyobject: note_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyknon.simplemusic import note_name | |
note_name(0) | |
note_name(1) | |
note_name(13) | |
note_name(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. only:: not latex | |
.. image:: figs/notation3.png | |
:scale: 40 | |
.. only:: latex | |
.. image:: figs/notation3.png | |
:scale: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PAPEROPTS= -D latex_elements.pointsize=11pt -D latex_elements.preamble=\usepackage{mfgan-bw} \ | |
-D pygments_style=bw -D black_and_white=True -D code_example_wrap=67 \ | |
-D latex_show_pagerefs=True | |
SCREENOPTS= -D latex_elements.pointsize=12pt -D latex_elements.classoptions=,openany,oneside \ | |
-D latex_elements.preamble=\usepackage{mfgan} -D pygments_style=my_pygment_style.BookStyle \ | |
-D code_example_wrap=67 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setup(app): | |
from sphinx.util.texescape import tex_replacements | |
tex_replacements += [(u'♮', u'$\natural$'), | |
(u'ē', u'=e'), | |
(u'♩', u'quarternote'), | |
(u'↑', u'$\uparrow$')] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pdf: | |
$(SPHINXBUILD) -b latex $(SCREENOPTS) $(ALLSPHINXOPTS) $(BUILDDIR)/latex | |
sed -i .bak -f process-latex $(BUILDDIR)/latex/$(LATEX-NAME).tex | |
rsync -a latex/ $(BUILDDIR)/latex/ | |
$(MAKE) -C $(BUILDDIR)/latex pdf | |
pdf-bw: | |
$(SPHINXBUILD) -b latex -t black_and_white $(PAPEROPTS) $(ALLSPHINXOPTS) $(LATEX-BW) | |
sed -i .bak -f process-latex $(LATEX-BW)/$(LATEX-NAME).tex | |
sed -i .bak '/\setcounter{page}{1}/d' $(LATEX-BW)/sphinxmanual.cls | |
rsync -a latex/ $(LATEX-BW)/ | |
$(MAKE) -C $(LATEX-BW)/ pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment