Last active
October 29, 2024 22:02
-
-
Save uwezi/4b9004f6af6e110e5d20c5df23c265ca to your computer and use it in GitHub Desktop.
[Aligned LaTeX] Different alignments in LaTeX. #manim #latex #tex #flushleft #flushright #center #minipage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from manim import * | |
class myParagraph(Scene): | |
def construct(self): | |
paragraph = Tex(r'''{12em} | |
No, this is an awesome paragraph with \\ Newlines and Alignments\\ | |
\begin{center} | |
center | |
\end{center} | |
\begin{flushleft} | |
left | |
\end{flushleft} | |
\begin{flushright} | |
right | |
\end{flushright} | |
''', | |
tex_environment="minipage", | |
) | |
self.play(Write(paragraph)) | |
self.wait() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment