Блог пользователя 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}}$$$

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

    it doesn't seem to work on polygon

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

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

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

      • »
        »
        »
        »
        3 дня назад, # ^ |
          Проголосовать: нравится 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.

        • »
          »
          »
          »
          »
          3 дня назад, # ^ |
            Проголосовать: нравится 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.)

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

            Thank you, it worked.

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