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}}$$$

  • »
    »
    5 weeks 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"

    • »
      »
      »
      5 weeks 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)?

      • »
        »
        »
        »
        5 weeks 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.

        • »
          »
          »
          »
          »
          5 weeks 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.)

          • »
            »
            »
            »
            »
            »
            5 weeks 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).

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    This works for the HTML statement but not the PDF statement, gives "! Undefined control sequence." Do you know if there are other commands or workarounds for that?

    Sorry for necroposting :3

  • »
    »
    4 weeks ago, # ^ |
    Rev. 5   Vote: I like it 0 Vote: I do not like it

    $$${\color{red}{x}}$$$ $$${\color{blue}{x}}$$$ $$${\color{green}{x}}$$$ $$${\color{yellow}{x}}$$$

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Unable to parse markup [type=CF_MATHJAX]

$

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

x x x x