From c58ed951a14b68f6a4b8d76a50b570b8473ceb57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 15 Jul 2020 09:58:18 +0200 Subject: [PATCH] Drop LaTeX dependency via usage of sphinx.ext.imgmath in Vector Math tutorial It's the only tutorial where we used the extension for *3* formulas which anyway ended up as fairly low res static images generated by sphinx.ext.imgmath, so requiring ~1 GB of LaTeX setup for it is overkill. The replacement pictures are the ones generated by sphinx.ext.imgmath, we could replace them by higher resolution ones. --- Makefile | 4 ---- conf.py | 1 - tutorials/math/img/vector_cross1.png | Bin 0 -> 755 bytes .../math/img/{tutovec16.png => vector_cross2.png} | Bin tutorials/math/img/vector_dot1.png | Bin 0 -> 663 bytes tutorials/math/img/vector_dot2.png | Bin 0 -> 595 bytes tutorials/math/vector_math.rst | 14 ++++---------- 7 files changed, 4 insertions(+), 15 deletions(-) create mode 100644 tutorials/math/img/vector_cross1.png rename tutorials/math/img/{tutovec16.png => vector_cross2.png} (100%) create mode 100644 tutorials/math/img/vector_dot1.png create mode 100644 tutorials/math/img/vector_dot2.png diff --git a/Makefile b/Makefile index dabd23408..f1fa052cf 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,6 @@ ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD make variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) endif -# check for latex dependencies -E := $(foreach exec, $(LATEXDEPS),\ - $(if $(shell which $(exec)), some string,$(warning The $(exec) command was not found: math formulas will not be built. LaTeX is required for math formula support. If you don't have LaTeX installed, grab it from https://www.latex-project.org/get/))) - # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter diff --git a/conf.py b/conf.py index 71e5312e4..37a6e416e 100644 --- a/conf.py +++ b/conf.py @@ -14,7 +14,6 @@ needs_sphinx = "1.3" sys.path.append(os.path.abspath("_extensions")) extensions = [ "sphinx_tabs.tabs", - "sphinx.ext.imgmath", ] # Warning when the Sphinx Tabs extension is used with unknown diff --git a/tutorials/math/img/vector_cross1.png b/tutorials/math/img/vector_cross1.png new file mode 100644 index 0000000000000000000000000000000000000000..42116f645a01b609273655c1b96a034d844754d9 GIT binary patch literal 755 zcmeAS@N?(olHy`uVBq!ia0vp^H-T7~g&9b`f4p@%kTMAH332`Z|38pPJkYnm|^{0qq!w7yU+jjNRarv-{t`0JD?P2fk$L90|Va?5N4dJ%_q&kz~txY;uzv_ zeCt%(oXZX($N&E{=(Cry5#c;2q{h~gW$0iX;u5-9q0J*;)>^lYyWTS-dRkn}l}Z^p z`9y@inR&h5W6&YDbJaZ3WkL|cdYC0T8f)G|MuH<{{6q_^WWdyYi&`mVAH1k zhq@w8-YVW7`m5os_xkfUMHe0II(6!wmUfbAw)me-rcbZuXU^x0$~`!@w@iE9l9%q8 z?bWXFmm=S4n$*lH%(<2@DNXMA!IQluAC_IzJMXcY<+Ach?#pggC0<*c%VYzdzUG+Y|kwV?VzTzjfh-{u_J#-C0q4KYJ|c{Utl|T0H-~{F&V4Rf;?+MMjq< zDlZKE%NA(RFK4?&;&#@p(wwd>yw^KiX1!F{kla&Kd>~UrT{+gVx{a;BXzAgFzU=RV zqKYS<@yy)S9$Ri z;y2mFvYM0j-`nLVy2`hm$66l2_aV OO1GY_elF{r5}E)s*ii)l literal 0 HcmV?d00001 diff --git a/tutorials/math/img/tutovec16.png b/tutorials/math/img/vector_cross2.png similarity index 100% rename from tutorials/math/img/tutovec16.png rename to tutorials/math/img/vector_cross2.png diff --git a/tutorials/math/img/vector_dot1.png b/tutorials/math/img/vector_dot1.png new file mode 100644 index 0000000000000000000000000000000000000000..10a1a7618885c9c8c426321cb7a2125185d75a5e GIT binary patch literal 663 zcmeAS@N?(olHy`uVBq!ia0vp^8-Q4tg&9a55}c(AqznRlLR|m<{|{sm5A^RYs0OO$ zFA4GsX4s$5J@>PR(cO}lza`GEw+_&i07`KdctjR6Fz_7#VaBQ2e9{aIjGsJR978Nl zznx<5eb_DZUx5@VdZ{CWBHv&%$$)C6T@bFF7jZl3z2sokR_)Sxiqdyv7*8tZwCn|ATY z%w%@EV{-NURf)Z?eYw;o^T()d)@5#g$?~dy&f4q8cFtmTI&WlP+?nuJEW-En0nMtW zbK(8hKOR0{u;Gd-v+-n(ub(u34m2Z`|&AOZ1FN z(_!_Wl81w*%n1w1HOVmJi1FCF|9<{NnWkOd_Q{#sUfk5Kc`&8*?7==ymgAQK`fZl3 zP>$VVP`iP%NyKR8nICK?CpSBX==*G#w|b$Dns#fl&_PZwIUCi)z`dCZ@5LFc5IJ+$ zD{;}XBl$wQn%}$+0F8+cinpy}b)Oc0_i*==o9<4JYX#I^^ajRqT~}$ko+-Z6OS9>+ z*rs;2D6O~G9)7y3&>b{QW?r_?0l`zopr0D7tqfB*mh literal 0 HcmV?d00001 diff --git a/tutorials/math/img/vector_dot2.png b/tutorials/math/img/vector_dot2.png new file mode 100644 index 0000000000000000000000000000000000000000..ebd3a734995c78503513f577194a31c888c1d1e5 GIT binary patch literal 595 zcmeAS@N?(olHy`uVBq!ia0vp^Yk*jYg&9bi+}C&qqznRlLR|m<{|{sm5A^RYs0OO$ zFA4GsX4s$5J@>PR(cO}lza`GEw+_&i07`KdctjR6Fz_7#VaBQ2e9{aIjO#pI978Nl zCnqp4xv{cIJm{WYedA;UU(1J6N<0ozubVrp$Vf>z5$p|9hPaVJacAW z^hwozaR4g*hvgV+!O|FWb#t)=lBZ89w1!^e02$-QHjURoOY}{}KNhxW+zWQ>fMm}%Q{QJhhf=K7PZ5gd-<0HoYzCX