MCPcopy
hub / github.com/ManimCommunity/manim / construct

Method construct

example_scenes/advanced_tex_fonts.py:63–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 """
62
63 def construct(self):
64 def write_one_line(template):
65 x = Tex(template.description, tex_template=template).shift(UP)
66 self.play(Create(x))
67 self.wait(1)
68 self.play(FadeOut(x))
69
70 examples = [
71 TexFontTemplates.american_typewriter, # "American Typewriter"
72 TexFontTemplates.antykwa, # "Antykwa Półtawskiego (TX Fonts for Greek and math symbols)"
73 TexFontTemplates.apple_chancery, # "Apple Chancery"
74 TexFontTemplates.auriocus_kalligraphicus, # "Auriocus Kalligraphicus (Symbol Greek)"
75 TexFontTemplates.baskervald_adf_fourier, # "Baskervald ADF with Fourier"
76 TexFontTemplates.baskerville_it, # "Baskerville (Italic)"
77 TexFontTemplates.biolinum, # "Biolinum"
78 TexFontTemplates.brushscriptx, # "BrushScriptX-Italic (PX math and Greek)"
79 TexFontTemplates.chalkboard_se, # "Chalkboard SE"
80 TexFontTemplates.chalkduster, # "Chalkduster"
81 TexFontTemplates.comfortaa, # "Comfortaa"
82 TexFontTemplates.comic_sans, # "Comic Sans MS"
83 TexFontTemplates.droid_sans, # "Droid Sans"
84 TexFontTemplates.droid_sans_it, # "Droid Sans (Italic)"
85 TexFontTemplates.droid_serif, # "Droid Serif"
86 TexFontTemplates.droid_serif_px_it, # "Droid Serif (PX math symbols) (Italic)"
87 TexFontTemplates.ecf_augie, # "ECF Augie (Euler Greek)"
88 TexFontTemplates.ecf_jd, # "ECF JD (with TX fonts)"
89 TexFontTemplates.ecf_skeetch, # "ECF Skeetch (CM Greek)"
90 TexFontTemplates.ecf_tall_paul, # "ECF Tall Paul (with Symbol font)"
91 TexFontTemplates.ecf_webster, # "ECF Webster (with TX fonts)"
92 TexFontTemplates.electrum_adf, # "Electrum ADF (CM Greek)"
93 TexFontTemplates.epigrafica, # Epigrafica
94 TexFontTemplates.fourier_utopia, # "Fourier Utopia (Fourier upright Greek)"
95 TexFontTemplates.french_cursive, # "French Cursive (Euler Greek)"
96 TexFontTemplates.gfs_bodoni, # "GFS Bodoni"
97 TexFontTemplates.gfs_didot, # "GFS Didot (Italic)"
98 TexFontTemplates.gfs_neoHellenic, # "GFS NeoHellenic"
99 TexFontTemplates.gnu_freesans_tx, # "GNU FreeSerif (and TX fonts symbols)"
100 TexFontTemplates.gnu_freeserif_freesans, # "GNU FreeSerif and FreeSans"
101 TexFontTemplates.helvetica_fourier_it, # "Helvetica with Fourier (Italic)"
102 TexFontTemplates.latin_modern_tw_it, # "Latin Modern Typewriter Proportional (CM Greek) (Italic)"
103 TexFontTemplates.latin_modern_tw, # "Latin Modern Typewriter Proportional"
104 TexFontTemplates.libertine, # "Libertine"
105 TexFontTemplates.libris_adf_fourier, # "Libris ADF with Fourier"
106 TexFontTemplates.minion_pro_myriad_pro, # "Minion Pro and Myriad Pro (and TX fonts symbols)"
107 TexFontTemplates.minion_pro_tx, # "Minion Pro (and TX fonts symbols)"
108 TexFontTemplates.new_century_schoolbook, # "New Century Schoolbook (Symbol Greek)"
109 TexFontTemplates.new_century_schoolbook_px, # "New Century Schoolbook (Symbol Greek, PX math symbols)"
110 TexFontTemplates.noteworthy_light, # "Noteworthy Light"
111 TexFontTemplates.palatino, # "Palatino (Symbol Greek)"
112 TexFontTemplates.papyrus, # "Papyrus"
113 TexFontTemplates.romande_adf_fourier_it, # "Romande ADF with Fourier (Italic)"
114 TexFontTemplates.slitex, # "SliTeX (Euler Greek)"
115 TexFontTemplates.times_fourier_it, # "Times with Fourier (Italic)"
116 TexFontTemplates.urw_avant_garde, # "URW Avant Garde (Symbol Greek)"
117 TexFontTemplates.urw_zapf_chancery, # "URW Zapf Chancery (CM Greek)"
118 TexFontTemplates.venturis_adf_fourier_it, # "Venturis ADF with Fourier (Italic)"
119 TexFontTemplates.verdana_it, # "Verdana (Italic)"
120 TexFontTemplates.vollkorn_fourier_it, # "Vollkorn with Fourier (Italic)"

Callers

nothing calls this directly

Calls 7

TexClass · 0.85
CreateClass · 0.85
waitMethod · 0.80
addMethod · 0.45
to_edgeMethod · 0.45
playMethod · 0.45
shiftMethod · 0.45

Tested by

no test coverage detected