Skip to content

Igorantivirus/Simple-Manip-Animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Manip Animation

Русская версия

Description

Python code based on the manim library, which allows you to create animations without using a description of each screen with LaTex code in a txt file

Dependencies

  • Python3+
  • Manim
    • FFmpeg
    • MikTex

Key Features

  • The convenience of creating animations
  • LaTex formatting: added their own "LaTex" commands
  • Flexibility

Installation

  1. Install all the dependencies
  2. Clone the Git repository
    git clone "https://github.com/Igorantivirus/Simple-Manip-Animation"
    
  3. Create a file to describe the animation Create a file where you will describe the animation and save the path to it to the ANIMATION_FILE variable in main.py the py file

Features of the LaTex syntax in the project

To improve the animation, the following features of the LaTex syntax used in the txt file have been created:

Comman Description
'#' (Separate line) Comments
'\\' Line break. The difference from Base LaTex: it should be surrounded by spaces only if the construction "\begin(name)...\end{name}" is not used.
Space Separates animation objects. It cannot be used in the construction of "\begin(name)...\end{name}".
Empty line Empty lines are skipped.
\header{} (Separate line) The title on the screen before the new title appears
\border Creates an outline around the following code
\next Glues the current and next lines together

Examples

  • Example: Solving a linear equation
\header{Line equation}
ax + b = 0
ax = - b
ax = - b |\cdot \frac{1}{a}
\frac{ax}{a} = -\frac{b}{a}
x = -\frac{b}{a}
ax + b = 0 \\ x = -\frac{b}{a}
  • Run

Run file main.py:

./main.py

Or assemble the video with the command you need, for example:

manim -pql main.py LaTexProcessor

License

The MIT License

About

Simple animation of mathematical expressions via LaTex from a separate file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages