AhmetKaan's blog

By AhmetKaan, history, 4 years ago, In English

How can i write colored text in polygon. I found latex commands like this: \textcolor{declared-color}{text} but i did not succeed. If there is a way to make this please tell me.

  • Vote: I like it
  • +25
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
Rev. 2   Vote: I like it +7 Vote: I do not like it

$$${\color{red}{x}}$$$

$$${\color{red}{x}}$$$

  • »
    »
    3 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it doesn't seem to work on polygon

    "Can't be rendered because of: Transformation failed: Unsupported command: color"

    • »
      »
      »
      3 days ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Did you put it in math mode (i.e. surrounded by dollar signs)?

      • »
        »
        »
        »
        3 days ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        I tried copying exactly what he wrote and it gave me this error

        Can't be rendered because of: Transformation failed: Unclosed math text.

        • »
          »
          »
          »
          »
          3 days ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Put them between single dollar signs, not triple ones: ${\color{red}{x}}$

          (This is a bug/limitation of Codeforces comment system: it converts single dollar signs to triple ones for dumb reasons.)

          • »
            »
            »
            »
            »
            »
            3 days ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            Thank you, it worked.

            (I was also having problems with \ge but it worked after I put it between two single dollar signs).