Skip to content

Instantly share code, notes, and snippets.

@uwezi
Last active October 29, 2024 22:02
Show Gist options
  • Save uwezi/4b9004f6af6e110e5d20c5df23c265ca to your computer and use it in GitHub Desktop.
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
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