Permalink
Browse files

Merge for the updated version

  • Loading branch information...
grea09 committed Nov 10, 2017
2 parents e43234c + 6964960 commit d21629498da4fc9584260bb5cef1f48f2fd7e55f
674 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
No changes.
@@ -1,22 +1,16 @@
#!/usr/bin/env python

"""
Pandoc filter to convert divs with class="algorithm" to LaTeX
algorithm environments in LaTeX output, and to numbered algorithm
Pandoc filter to convert divs with classes specified in configuration to LaTeX
theorem environments in LaTeX output, and to numbered theorems
in HTML output.
"""
from __future__ import print_function

import sys
import re

from pandocfilters import toJSONFilter, stringify, RawBlock, Div, RawInline, Str

def warning(*objs):
print("[WARNING] ", *objs, file=sys.stderr)

def debug(*objs):
print("[DEBUG] ", *objs, file=sys.stderr)

def latex(x):
return RawBlock('tex', x)

@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
width="48"
height="48"
viewBox="0 0 48 48"
sodipodi:docname="pancake1600.svg">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1680"
inkscape:window-height="994"
id="namedview4"
showgrid="false"
inkscape:zoom="13.906433"
inkscape:cx="25.616773"
inkscape:cy="28.623931"
inkscape:window-x="122"
inkscape:window-y="30"
inkscape:window-maximized="1"
inkscape:current-layer="g4138" />
<g
id="g4138"
transform="translate(-4.9596894e-7,-0.07190916)">
<g
id="g4148">
<path
inkscape:connector-curvature="0"
id="path4144"
d="M 22.755,40.978284 C 16.554962,40.829229 11.193279,39.476016 8.104236,37.28064 6.5211429,36.155538 5.5401762,34.832907 5.1630054,33.315 5.0271792,32.768373 4.9371306,31.48506 5.0090589,31.121055 5.1254316,30.532134 5.3920446,30.035688 5.8664334,29.524585 6.0387621,29.33892 6.0654693,29.296353 6.0358347,29.254585 5.9161149,29.085848 5.6420016,28.599149 5.5205151,28.339614 5.2835808,27.833445 5.1344988,27.314109 5.0584554,26.73 4.9935678,26.231581 4.9661412,25.338247 5.0090589,25.121056 5.1254316,24.532133 5.3920446,24.035687 5.8664334,23.524585 6.0387621,23.33892 6.0654693,23.296353 6.0358347,23.254585 5.9161149,23.085848 5.6420016,22.599149 5.5205151,22.339614 5.2835808,21.833445 5.1344988,21.314109 5.0584554,20.73 4.9935678,20.231581 4.9661412,19.338247 5.0090589,19.121057 5.1254316,18.532133 5.3920446,18.035687 5.8664334,17.524585 6.0387621,17.33892 6.0654693,17.296353 6.0358347,17.254585 5.9161149,17.085848 5.6420016,16.599149 5.5205151,16.339614 5.2835808,15.833445 5.1344988,15.314109 5.0584554,14.73 4.9935678,14.231581 4.9661412,13.338247 5.0090589,13.121057 5.1382992,12.467015 5.4268725,11.967522 6.0126681,11.383904 6.6634716,10.735519 7.3445214,10.280048 8.505,9.7170885 11.307151,8.3577366 15.56834,7.4143338 20.34,7.0968876 c 2.345733,-0.1560558 4.974267,-0.1560558 7.32,0 6.071301,0.403908 11.205018,1.8086424 13.74,3.7596614 0.344001,0.264757 0.884151,0.807851 1.077576,1.083451 0.437286,0.623065 0.558867,1.060379 0.528519,1.901057 -0.03909,1.082779 -0.18258,1.763599 -0.526611,2.498557 -0.121485,0.259535 -0.395598,0.746234 -0.515319,0.914971 -0.02963,0.04177 -0.0029,0.08434 0.169401,0.27 0.47439,0.511102 0.741003,1.007548 0.857376,1.596472 0.04292,0.21719 0.01549,1.110524 -0.0494,1.608943 -0.07604,0.584109 -0.225126,1.103445 -0.46206,1.609614 -0.121485,0.259535 -0.395598,0.746234 -0.515319,0.914971 -0.02963,0.04177 -0.0029,0.08434 0.169401,0.27 0.47439,0.511102 0.741003,1.007548 0.857376,1.596471 0.04292,0.217191 0.01549,1.110525 -0.0494,1.608944 -0.07604,0.584109 -0.225126,1.103445 -0.46206,1.609614 -0.121485,0.259535 -0.395598,0.746234 -0.515319,0.914971 -0.02963,0.04177 -0.0029,0.08434 0.169401,0.27 0.47439,0.511103 0.741003,1.007549 0.857376,1.59647 0.07193,0.364005 -0.01812,1.647318 -0.153948,2.193945 -0.214395,0.86283 -0.646311,1.705815 -1.237362,2.415 -2.40945,2.891031 -7.758963,4.758309 -14.869632,5.19033 -0.516259,0.03137 -2.631446,0.09194 -2.925,0.08377 -0.0825,-0.0023 -0.555,-0.01391 -1.05,-0.02581 z"
style="fill:#f6d67e;fill-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path4142"
d="M 22.155,37.96182 C 22.0395,37.9563 21.64125,37.937376 21.27,37.919763 14.989468,37.621803 9.5597781,36.235593 6.7587084,34.215 6.4092669,33.962925 5.7674376,33.335022 5.5660614,33.048231 5.2059969,32.535441 5.0402361,32.046972 5.0406708,31.5 c 5.37e-4,-0.675882 0.2608599,-1.267044 0.8532423,-1.937607 0.094871,-0.107392 0.1835133,-0.191238 0.1969833,-0.186326 0.01347,0.0049 0.166527,0.179238 0.3401268,0.38739 1.5263445,1.830131 4.3357148,3.291623 8.0667728,4.196501 3.56125,0.863697 8.019082,1.211322 12.307204,0.959727 0.61967,-0.03636 0.74338,-0.05186 0.719709,-0.09016 -0.0093,-0.01509 -0.109301,-0.07596 -0.222164,-0.135273 -0.544721,-0.286242 -0.97025,-0.797316 -1.177586,-1.41432 -0.08598,-0.255873 -0.144886,-0.703743 -0.144934,-1.102026 L 25.98,31.970823 24.9525,31.987938 C 18.594232,32.093844 12.59451,31.124106 8.76,29.370736 7.5964116,28.838673 6.7215309,28.265784 6.0586968,27.601868 5.3386962,26.880693 5.0400633,26.264121 5.0406708,25.5 c 5.37e-4,-0.675883 0.2608599,-1.267043 0.8532423,-1.937607 0.094871,-0.107392 0.1835133,-0.191238 0.1969833,-0.186326 0.01347,0.0049 0.166527,0.179238 0.3401268,0.38739 1.5263445,1.830131 4.3357148,3.291624 8.0667728,4.196502 2.476224,0.600549 5.149644,0.930635 8.272204,1.021368 0.98359,0.02858 2.784021,0.01727 3.0825,-0.01936 l 0.1275,-0.01565 0,-1.48775 0,-1.48775 -1.0275,0.01711 C 18.594232,26.093842 12.59451,25.124104 8.76,23.370736 7.5964116,22.838673 6.7215309,22.265784 6.0586968,21.601868 5.3386962,20.880693 5.0400633,20.264121 5.0406708,19.5 c 5.37e-4,-0.675883 0.2608599,-1.267043 0.8532423,-1.937607 0.094871,-0.107392 0.1835133,-0.191238 0.1969833,-0.186326 0.01347,0.0049 0.166527,0.179238 0.3401268,0.38739 1.5057504,1.805438 4.2515208,3.247825 7.9239768,4.162563 0.80294,0.199997 2.363931,0.51398 2.55529,0.51398 l 0.06971,0 0,-1.440941 c 0,-1.125764 -0.0082,-1.443809 -0.0375,-1.454048 -0.02062,-0.0072 -0.348,-0.0607 -0.7275,-0.118869 C 12.337682,18.831823 9.0449145,17.759763 7.1130954,16.462741 6.4949787,16.047738 5.8650561,15.471562 5.5666338,15.04823 5.3551908,14.748283 5.1715443,14.362 5.1015303,14.069927 5.0195016,13.727735 5.0193333,13.271073 5.1011163,12.945 5.1766233,12.643947 5.4087807,12.169438 5.6148384,11.895 6.0808485,11.274343 6.9407703,10.593572 7.9350009,10.058207 12.511925,7.5936597 21.194002,6.4742892 29.385001,7.2926823 c 5.821626,0.5816604 10.585659,2.1385185 12.551553,4.1017747 0.372402,0.371901 0.569565,0.636073 0.754212,1.010543 0.19563,0.396744 0.268245,0.692815 0.268563,1.095 4.2e-4,0.547538 -0.166089,1.037726 -0.525963,1.54823 -0.186621,0.264735 -0.76842,0.847922 -1.078365,1.080937 -1.085091,0.815766 -2.342007,1.429689 -4.17,2.03678 -1.613478,0.535848 -3.410808,0.95529 -5.4,1.260195 -0.3795,0.05817 -0.706875,0.111661 -0.7275,0.118869 -0.0293,0.01024 -0.0375,0.328284 -0.0375,1.454048 l 0,1.440941 0.06971,0 c 0.191358,0 1.752348,-0.313983 2.555289,-0.51398 2.023368,-0.503982 3.884331,-1.216049 5.28,-2.020307 1.070358,-0.616796 1.999794,-1.369863 2.643978,-2.142256 0.173598,-0.208152 0.326655,-0.382477 0.340125,-0.387389 0.02783,-0.01015 0.304353,0.295962 0.501573,0.555257 0.181641,0.238808 0.415812,0.725026 0.488208,1.013675 0.130743,0.521281 0.05885,1.139042 -0.190641,1.638157 -0.188937,0.377973 -0.378105,0.629243 -0.766941,1.018711 -0.662832,0.663916 -1.537713,1.236805 -2.701302,1.768868 -1.952106,0.89262 -4.560159,1.611682 -7.455,2.055406 -0.3795,0.05817 -0.706875,0.111661 -0.7275,0.118869 -0.0293,0.01024 -0.0375,0.328284 -0.0375,1.454048 l 0,1.440941 0.06971,0 c 0.191358,0 1.752348,-0.313983 2.555289,-0.51398 2.023368,-0.503982 3.884331,-1.216049 5.28,-2.020307 1.070358,-0.616796 1.999794,-1.369863 2.643978,-2.142256 0.173598,-0.208152 0.326655,-0.382477 0.340125,-0.387389 0.02783,-0.01015 0.304353,0.295962 0.501573,0.555257 0.181641,0.238808 0.415812,0.725026 0.488208,1.013675 0.130743,0.521281 0.05885,1.139042 -0.190641,1.638157 -0.188937,0.377973 -0.378105,0.629243 -0.766941,1.018711 -0.662832,0.663916 -1.537713,1.236805 -2.701302,1.768868 -1.952106,0.892619 -4.560159,1.611683 -7.455,2.055407 -0.3795,0.05817 -0.706875,0.11166 -0.7275,0.118869 -0.02755,0.0096 -0.03751,0.122802 -0.03752,0.426546 0,0.832674 -0.08476,1.288194 -0.319164,1.716336 -0.182862,0.333999 -0.392733,0.579297 -0.699897,0.818037 -0.05725,0.04449 -0.09542,0.08957 -0.08482,0.100164 0.0618,0.0618 2.416272,-0.362421 3.586107,-0.646137 2.077014,-0.50373 3.989025,-1.228029 5.422797,-2.054244 1.070358,-0.616797 1.999794,-1.369863 2.643978,-2.142257 0.173598,-0.208152 0.326655,-0.382477 0.340125,-0.387389 0.02783,-0.01015 0.304353,0.295962 0.501573,0.555257 0.181641,0.238808 0.415812,0.725027 0.488208,1.013675 0.130743,0.52128 0.05885,1.139043 -0.190641,1.638156 -0.194343,0.388794 -0.380745,0.63342 -0.797664,1.046844 -0.591186,0.586227 -1.200315,0.999069 -2.250579,1.525347 -2.42799,1.216644 -5.913132,2.101506 -9.999346,2.538792 -0.734492,0.0786 -1.863338,0.169191 -2.840654,0.227958 -0.515143,0.03097 -4.192728,0.06229 -4.665,0.03972 z m 3.7125,-15.000422 0.1125,-0.01667 0,-1.478918 0,-1.478919 -1.98,0 -1.98,0 0,1.481555 c 0,0.814856 0.0034,1.483774 0.0075,1.486486 0.06501,0.04273 3.55564,0.04861 3.84,0.0065 z"
style="fill:#e08618;fill-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path4140"
d="m 28.215,34.977831 c -0.29276,-0.03385 -0.44295,-0.07905 -0.72,-0.21669 -0.323193,-0.160563 -0.535453,-0.308664 -0.744995,-0.519807 -0.321276,-0.323733 -0.534406,-0.700503 -0.65784,-1.162926 L 26.027192,32.835 26.011096,25.74 25.995,18.645 25.910293,18.405 C 25.784669,18.04907 25.666348,17.861977 25.397144,17.593594 25.003288,17.200937 24.546178,17.01 24,17.01 c -0.546178,0 -1.003288,0.190937 -1.397144,0.583594 -0.269302,0.268481 -0.387663,0.455685 -0.513016,0.811406 l -0.08457,0.24 -0.01708,2.49 c -0.01894,2.762063 -0.0068,2.59664 -0.225224,3.070208 -0.30434,0.659866 -0.886765,1.157439 -1.59399,1.361764 -0.337943,0.09764 -1.000007,0.09764 -1.33795,0 C 18.12126,25.361913 17.541609,24.865618 17.23474,24.200239 17.015882,23.725695 17.030246,23.953085 17.009847,20.64 c -0.01688,-2.741337 -0.02273,-2.999605 -0.07172,-3.163918 -0.179367,-0.601585 -0.604904,-1.173028 -1.019622,-1.369224 -0.100926,-0.04775 -0.199392,-0.08682 -0.218815,-0.08683 -0.01942,-1.3e-5 -0.242173,-0.06555 -0.495,-0.145635 C 13.537549,15.346305 12.477007,14.698127 12.132193,13.996556 12.023493,13.775391 12.015,13.739407 12.015,13.5 c 0,-0.239407 0.0085,-0.275391 0.117193,-0.496556 1.076443,-2.190172 8.807934,-3.5403958 15.962807,-2.787736 4.142916,0.435815 7.146279,1.512979 7.772808,2.787736 C 35.976507,13.224609 35.985,13.260593 35.985,13.5 c 0,0.239407 -0.0085,0.275391 -0.117192,0.496556 -0.344814,0.701571 -1.405356,1.349749 -3.072495,1.877833 -0.252825,0.08009 -0.475575,0.145622 -0.495,0.145635 -0.01942,1.3e-5 -0.117888,0.03909 -0.218814,0.08683 -0.414324,0.19601 -0.837306,0.763615 -1.020354,1.369224 -0.05129,0.169697 -0.05496,0.570096 -0.07111,7.768918 l -0.01703,7.59 -0.06507,0.243408 c -0.159774,0.597672 -0.44289,1.017669 -0.968924,1.437384 -0.335303,0.267531 -0.690372,0.406239 -1.184953,0.462894 -0.14798,0.01695 -0.282555,0.02916 -0.299055,0.02713 -0.0165,-0.002 -0.1245,-0.01463 -0.24,-0.02798 z"
style="fill:#cb4b16" />
</g>
</g>
</svg>
Oops, something went wrong.

0 comments on commit d216294

Please sign in to comment.