Блог пользователя AhmetKaan

Автор AhmetKaan, история, 4 года назад, По-английски

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.

  • Проголосовать: нравится
  • +25
  • Проголосовать: не нравится

»
3 года назад, # |
Rev. 2   Проголосовать: нравится +7 Проголосовать: не нравится

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

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

  • »
    »
    4 месяца назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    it doesn't seem to work on polygon

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

    • »
      »
      »
      4 месяца назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

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

      • »
        »
        »
        »
        4 месяца назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

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

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

        • »
          »
          »
          »
          »
          4 месяца назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          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.)

          • »
            »
            »
            »
            »
            »
            4 месяца назад, # ^ |
              Проголосовать: нравится 0 Проголосовать: не нравится

            Thank you, it worked.

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

  • »
    »
    4 месяца назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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 месяца назад, # ^ |
    Rev. 5   Проголосовать: нравится 0 Проголосовать: не нравится

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

»
4 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Unable to parse markup [type=CF_MATHJAX]

$

»
4 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

x x x x