Basic Manim Tex Template
Basic Manim
Tex Template is a Latex template used for creating Tex Mobject.
Tex Template
There are two tex templates.
The default Basic Manim tex template is tex_template.tex.
- tex_template.tex
- ctex_template.tex
tex_template.tex Template
\documentclass[preview]{standalone}
\usepackage[landscape,a0paper]{geometry}
\usepackage{anyfontsize}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dsfont}
\usepackage{setspace}
\usepackage{tipa}
\usepackage{relsize}
\usepackage{textcomp}
\usepackage{mathrsfs}
\usepackage{calligra}
\usepackage{wasysym}
\usepackage{ragged2e}
\usepackage{physics}
\usepackage{xcolor}
\usepackage{microtype}
%\usepackage[UTF8]{ctex}
% single/double line spacing
\newcommand\txtdot{{\fontsize{0.005}{0.001}\selectfont .}}
\newcommand\dtxtdot{\txtdot\\}
\newcommand\titleA[1]{\textit{\textbf{\underline{#1}}}}
\newcommand\bR[1]{\vspace{0.1em\enspace #1}}
\newcommand\Part[0]{\par\hspace*{1em}}
\newcommand\BR[3]{\vspace{#1 em \hspace{#2 em} #3}}
\newcommand\Br[1]{\BR{0.2}{0.9}{#1}}
\newcommand\Bxz[2]{\linespread{#1}\selectfont\parbox{#2}}
\newcommand\Bxa{\Bxz{0.9}{14em}}
\newcommand\Bxah[1]{\Bxa{\hangindent=1em #1}}
\newcommand\Bxb{\Bxz{0.9}{28em}}
\newcommand\Bxbh[1]{\Bxb{\hangindent=1em #1}}
\newcommand\Bxc[1]{\Bxz{0.9}{#1 em}}
\newcommand\Bxch[2]{\Bxc{#1}{\hangindent=1em #2}}
\newcommand\Bxat[1]{\Bxa{\hspace*{1em}#1}}
\newcommand\Bxbt[1]{\Bxb{\hspace*{1em}#1}}
\newcommand\Bxct[2]{\Bxc #1{\hspace*{1em}#2}}
\newcommand\Bxx[1]{\hangindent=#1\makebox[#1][l]}
\newcommand\Bxai[3]{\Bxa{\Bxx{#1}{#2}#3}}
\newcommand\Bxbi[3]{\Bxb{\Bxx{#1}{#2}#3}}
\newcommand\Bxci[4]{\Bxc{#1}{\Bxx{#2}{#3}#4}}
\newcommand\Bxaia[2]{\Bxa{\Bxx{0.9em}{#1}#2}}
\newcommand\Bxaib[2]{\Bxa{\Bxx{1.4em}{#1}#2}}
\newcommand\Bxbia[2]{\Bxb{\Bxx{0.9em}{#1}#2}}
\newcommand\Bxbib[2]{\Bxb{\Bxx{1.4em}{#1}#2}}
\newcommand\Bxcia[3]{\Bxc{#1}{\Bxx{0.9em}{#2}#3}}
\newcommand\Bxcib[3]{\Bxc{#1}{\Bxx{1.4em}{#2}#3}}
\newcommand\Bxy[1]{\par\parshape 1 #1 \dimexpr\linewidth-#1\relax {}}
\newcommand\Fxb[1]{\Bxy{2em}{\linespread{0.1}\selectfont\parbox{\dimexpr\linewidth-2em}{\scriptsize#1}}}
\newcommand\Fxa[1]{\unskip\nobreak\hfil\penalty50
\hskip2em\hbox{}\nobreak\hfil{\scriptsize#1}\parfillskip=0pt \finalhyphendemerits=0 \par}
\def\theLetterSpace{-1pt}
\def\extraWordSpace{-1pt}
\newcommand\spaceout[2][\theLetterSpace]{%
\def\LocalLetterSpace{#1}\expandafter\spaceouthelpA#2 \relax\relax}
\def\spaceouthelpA#1 #2\relax{%
\spaceouthelpB#1\relax\relax%
\ifx\relax#2\else\kern\extraWordSpace\ \kern\LocalLetterSpace\spaceouthelpA#2\relax\fi
}
\def\spaceouthelpB#1#2\relax{%
#1%
\ifx\relax#2\else
\kern\LocalLetterSpace\spaceouthelpB#2\relax%
\fi
}
\def\textspA#1{\spaceout{#1}}
\DisableLigatures{encoding = *, family = * }
\linespread{1}
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
\begin{document}
[tex_expression]
%YourTextHere
\end{document}
Source and Reference
https://github.com/SidewayOutput/Basic-Manim