class_docstr: Convert strings to dvi files using TeX, caching the results to a directory.
  
  The cache directory is called ``tex.cache`` and is located in the directory
  returned by `.get_cachedir`.
  
  Repeated calls to this constructor always return the same instance.
class_docstr_tok: ["Convert","strings","to","dvi","files","using","TeX",",","caching","the","results","to","a","directory",".","The","cache","directory","is","called","``","tex.cache","``","and","is","located","in","the","directory","returned","by","`",".get_cachedir","`",".","Repeated","calls","to","this","constructor","always","return","the","same","instance","."]
docstr: Generate a tex file to render the tex string at a specific font size.
  
  Return the file name.
docstr_tok: ["Generate","a","tex","file","to","render","the","tex","string","at","a","specific","font","size",".","Return","the","file","name","."]
code: def make_tex(cls, tex, fontsize):
      """
      Generate a tex file to render the tex string at a specific font size.
  
      Return the file name.
      """
      texfile = cls.get_basefile(tex, fontsize) + ".tex"
      Path(texfile).write_text(
          cls._get_tex_source(tex, fontsize), encoding="utf-8"
      )
      return texfile
  
imports: import functools
  import hashlib
  import logging
  import os
  from pathlib import Path
  import subprocess
  from tempfile import TemporaryDirectory
  import numpy
  import matplotlib
  from matplotlib import _api, cbook, dviread
label_desc: Use image node_id 8 for calling the TexManager obj's underlying member method code with example usage: obj.make_tex(cls, tex, fontsize) and returns: texfile