class_docstr: Builds LaTeX output to create PDF.
class_docstr_tok: ["Builds","LaTeX","output","to","create","PDF","."]
docstr: Copy TeX support files from texinputs.
docstr_tok: ["Copy","TeX","support","files","from","texinputs","."]
code: def copy_support_files(self) -> None:
      """Copy TeX support files from texinputs."""
      # configure usage of xindy (impacts Makefile and latexmkrc)
      # FIXME: convert this rather to a confval with suitable default
      #        according to language ? but would require extra documentation
      xindy_lang_option = XINDY_LANG_OPTIONS.get(
          self.config.language[:2], "-L general -C utf8 "
      )
      xindy_cyrillic = (
          self.config.language[:2] in XINDY_CYRILLIC_SCRIPTS
      )
  
      context = {
          "latex_engine": self.config.latex_engine,
          "xindy_use": self.config.latex_use_xindy,
          "xindy_lang_option": xindy_lang_option,
          "xindy_cyrillic": xindy_cyrillic,
      }
      logger.info(bold(__("copying TeX support files...")))
      staticdirname = path.join(package_dir, "texinputs")
      for filename in os.listdir(staticdirname):
          if not filename.startswith("."):
              copy_asset_file(
                  path.join(staticdirname, filename),
                  self.outdir,
                  context=context,
              )
  
      # use pre-1.6.x Makefile for make latexpdf on Windows
      if os.name == "nt":
          staticdirname = path.join(package_dir, "texinputs_win")
          copy_asset_file(
              path.join(staticdirname, "Makefile_t"),
              self.outdir,
              context=context,
          )
  
imports: from __future__ import annotations
  import os
  import warnings
  from os import path
  from typing import TYPE_CHECKING, Any
  from docutils.frontend import OptionParser
  import sphinx.builders.latex.nodes
  from sphinx import addnodes, highlighting, package_dir
  from sphinx.builders import Builder
  from sphinx.builders.latex.constants import ADDITIONAL_SETTINGS, DEFAULT_SETTINGS, SHORTHANDOFF
  from sphinx.builders.latex.theming import Theme, ThemeFactory
  from sphinx.builders.latex.util import ExtBabel
  from sphinx.config import ENUM, Config
  from sphinx.environment.adapters.asset import ImageAdapter
  from sphinx.errors import NoUri, SphinxError
  from sphinx.locale import _, __
  from sphinx.util import logging, texescape
  from sphinx.util.console import bold, darkgreen
  from sphinx.util.display import progress_message, status_iterator
  from sphinx.util.docutils import SphinxFileOutput, new_document
  from sphinx.util.fileutil import copy_asset_file
  from sphinx.util.i18n import format_date
  from sphinx.util.nodes import inline_all_toctrees
  from sphinx.util.osutil import SEP, make_filename_from_project
  from sphinx.util.template import LaTeXRenderer
  from sphinx.writers.latex import LaTeXTranslator, LaTeXWriter
  from docutils import nodes
label_desc: Use image node_id 17 for calling the LaTeXBuilder obj's underlying member method code with example usage: obj.copy_support_files() without return types