[docs]classLatexTextSplitter(RecursiveCharacterTextSplitter):"""Attempts to split the text along Latex-formatted layout elements."""
[docs]def__init__(self,**kwargs:Any)->None:"""Initialize a LatexTextSplitter."""separators=self.get_separators_for_language(Language.LATEX)super().__init__(separators=separators,**kwargs)