Generate a tex file to render the tex string at a specific font size. Return the file name.
(cls, tex, fontsize)
| 242 | |
| 243 | @classmethod |
| 244 | def make_tex(cls, tex, fontsize): |
| 245 | """ |
| 246 | Generate a tex file to render the tex string at a specific font size. |
| 247 | |
| 248 | Return the file name. |
| 249 | """ |
| 250 | texpath = cls._get_base_path(tex, fontsize).with_suffix(".tex") |
| 251 | texpath.write_text(cls._get_tex_source(tex, fontsize), encoding='utf-8') |
| 252 | return str(texpath) |
| 253 | |
| 254 | @classmethod |
| 255 | def _run_checked_subprocess(cls, command, tex, *, cwd=None): |