How to add a new line when using TextMobject like arrays
See original GitHub issueWhen I use:
t = TextMobject('aaaaa', '''a
a''', 'aaaaa')
but when I use:
t = TextMobject('aaaaaaaaa', '\n\n', 'aaaaaaa')
or:
t = TextMobject('aaaaa', '''
''', 'aaaaa')
It’s not what I want. Are there other ways to add a new line when using TextMobject
like arrays?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
How to append newline to text value in javascript array?
To have it rendered, you need to use an element that doesn't ignore whitespace (like <pre> ), or opt in to <pre> -style...
Read more >Animation — Manim documentation - Read the Docs
Writes the text object passed as argument. Should be used with classes like TexMobject or TextMobject. class AnimationWrite(Scene): def construct(self): ...
Read more >A conversation about teaching and learning physics | Page 3
To line up parts of the equations on screen we use next_to() and align_to() . For this example we've broken the equation into...
Read more >Array of Text not working, I got stuck in a tutorial from The Lazy ...
The change is as follows: TextMobject -> Tex. TexMobject -> MathTex. Text uses pango to put the text in the animation circumventing creation ......
Read more >How can I add a new line in string in array
I match the answers with the text in the array and trying to insert this text in to the word document template. Everything...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is much better:
If you want to use “\n”,
Text()
class supports it.Text(“a\nb\nc”, font=“your font”)
That’s useful, Thanks.