question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’d like to run the code: numeros4 = TexMobject( "\\mathbb{N}", "=", "\\{", "1", ",", "2", ",", "3", ",", "\\ldots", "\\}" ) cause I wish I could change the color of the braces separately. But I got this error: Exception: Latex error converting to dvi. I’ve already tried using the command Brace() or the ideas found at reddit, but it didn’t work at all. Is there a way to make it possible?

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
NavpreetDevpuricommented, May 2, 2020
class colorBetterApproach(Scene):
    def construct(self):
        # if you want to color "{" or "}" braces character separately
        numeros4 = TexMobject( "\\mathbb{N}=\\{1,2,3,\\ldots\\}")
        # coloring first 2 characters 
        numeros4[0][0:2].set_color(GREEN)
        # coloring 3rd character
        numeros4[0][2].set_color(RED)
        self.add(numeros4)
        self.wait()

Output 3_text_like_arrays_better_approach

1reaction
NavpreetDevpuricommented, Apr 30, 2020

use Text("{") instead of TextMobject("{") after that place it where ever you want to.

temp_char = TextMobject("(")
cb =TextMobject("{")
text = TextMobject("any text")
cb.move_to(text.get_right()+np.array([self.temp_char.get_width()*2, 0, 0]))
Read more comments on GitHub >

github_iconTop Results From Across the Web

How Do Braces Work to Straighten Your Teeth? - Healthline
Braces work by exerting pressure on your jawline to change the way your smile appears. ... or stainless steel brackets are applied to...
Read more >
Tips for Wearing Braces - Belmar Orthodontics
Tips for Wearing Braces: Keeping Your Braces Clean · Brush your teeth at least 2 times a day, if not more. · Floss...
Read more >
10 Important Things to Know Before You Get Dental Braces
Unfortunately, wearing and getting used to braces is not a pain-free process. While the actual fitting rarely hurts, the new sensations and ...
Read more >
Orthodontics - Wearing Braces - Nationwide Children's Hospital
It is very important to keep the braces, teeth, and gums clean while the braces are in place. · Brush your teeth for...
Read more >
Braces (for Parents) - Nemours KidsHealth
The orthodontist also might recommend that your child have one or more teeth removed to create more space in the mouth. While wearing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found