A collection of basic TeX template objects Examples -------- Normal usage as a value for the keyword argument tex_template of Tex() and MathTex() mobjects:: ``Tex("My TeX code", tex_template=TexTemplateLibrary.ctex)``
| 50 | # TexTemplateLibrary |
| 51 | # |
| 52 | class TexTemplateLibrary: |
| 53 | """ |
| 54 | A collection of basic TeX template objects |
| 55 | |
| 56 | Examples |
| 57 | -------- |
| 58 | Normal usage as a value for the keyword argument tex_template of Tex() and MathTex() mobjects:: |
| 59 | |
| 60 | ``Tex("My TeX code", tex_template=TexTemplateLibrary.ctex)`` |
| 61 | |
| 62 | """ |
| 63 | |
| 64 | default = TexTemplate(preamble=_3b1b_preamble) |
| 65 | """An instance of the default TeX template in manim""" |
| 66 | |
| 67 | threeb1b = TexTemplate(preamble=_3b1b_preamble) |
| 68 | """ An instance of the default TeX template used by 3b1b """ |
| 69 | |
| 70 | ctex = TexTemplate( |
| 71 | tex_compiler="xelatex", |
| 72 | output_format=".xdv", |
| 73 | preamble=_3b1b_preamble.replace( |
| 74 | r"\DisableLigatures{encoding = *, family = * }", |
| 75 | r"\usepackage[UTF8]{ctex}", |
| 76 | ), |
| 77 | ) |
| 78 | """An instance of the TeX template used by 3b1b when using the use_ctex flag""" |
| 79 | |
| 80 | simple = _new_ams_template() |
| 81 | """An instance of a simple TeX template with only basic AMS packages loaded""" |
| 82 | |
| 83 | |
| 84 | # TexFontTemplates |
nothing calls this directly
no test coverage detected