Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing bracket color does not work when paste formula #573

Closed
1 task done
sheppard30 opened this issue Aug 6, 2020 · 3 comments
Closed
1 task done

Changing bracket color does not work when paste formula #573

sheppard30 opened this issue Aug 6, 2020 · 3 comments
Assignees
Labels

Comments

@sheppard30
Copy link

sheppard30 commented Aug 6, 2020

Prerequisites

  • New issue

Description

When you paste formula containing bracket, like below to playground:

\textcolor{#FF7968}{\left\{ \begin{aligned}x=x \\ y=y\end{aligned}\right.}

it does not apply color to the bracket (but it was created with color).

Actual behavior

Color is not applied to the bracket

Expected Behavior

Color should be applied to bracket

Steps to Reproduce

  1. Create similar formula manually (and set color using keyboard tool):
    \textcolor{#FF7968}{\left\{ \begin{aligned}x=x \\ y=y\end{aligned}\right.}
  2. You will see that color is applied correctly.
  3. Now select generated formula, copy and clear playground
  4. Paste formula
  5. You will see that bracket has no styles

Environment

Mathlive playground and my application with MathLive v0.52.0

@stefnotch
Copy link
Contributor

stefnotch commented Sep 13, 2020

I can confirm that this is indeed a bug. Normal LaTeX does render brackets with colors.

Another test case
\textcolor{red}{ \begin{bmatrix} a\\b\\c \end{bmatrix} }

@stefnotch
Copy link
Contributor

It seems like this happens with a number of functions in definitions-stylings.ts

@arnog arnog self-assigned this Sep 15, 2020
@arnog arnog added the bug label Sep 15, 2020
@arnog
Copy link
Owner

arnog commented Sep 15, 2020

The current style was not applied to "leftright" atoms

@arnog arnog closed this as completed in 82db841 Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants