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

Автор Dardy, история, 5 лет назад, По-английски

Hello :D

I'm trying to write a statement for a problem using Polygon, but there are so many things that should be easy in LaTex but yet are "unsupported" in polygon. Is there any documentation for what subset of LaTeX is available in Polygon for HTML statements?

Here is some of what I frequently need but polygon rejects, if you can help with the 'Polygonic' way to perform this, it would be awesome :D

  • Insert a newline or a linebreak: tried both '\\' and '\newline'.
  • A horizontal line: tried '\hbreak'
  • A table: tried both '\begin{tablular}' and '\begin{table}'
  • A matrix: tried '\begin{matrix}' and '\begin{array}':

So yeah, without a documentation on supported LaTeX commands, I get stuck way too often trying to find alternative solutions. Is there any help?

Also, is there a way to check the LaTeX code behind already existing problems? It would be much much easier to just find what I want and copy the format. UPD1: It seems that '\matrix' works in Math mode: so this works: write this between $$ and $$

\matrix{
a & b & c \cr
d & e & f \cr
g & h & i \cr
}
$$$\matrix{ a & b & c \cr d & e & f \cr g & h & i \cr }$$$

UPD2: It seems that '\array' works in Math mode and it is sufficient for making a table: write this between $$ and $$

\begin{array}{|c|c|c|}
\hline
a & b & c \cr \hline
d & e & f \cr \hline
g & h & i \cr \hline
\end{array}
$$$\begin{array}{|c|c|c|} \hline a & b & c \cr \hline d & e & f \cr \hline g & h & i \cr \hline \end{array}$$$
  • Проголосовать: нравится
  • +16
  • Проголосовать: не нравится

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

Sorry if it's not exactly about this question, but rather near. I'm afraid current Polygon's state is rather strange at all. I don't think it's correct when I have situation described in this picture: why does Polygon say that I have problem with test format? Does it mean that endlines should be not Unix but Windows? But why is it a good idea to require this? If it's some other problem -- I don't see it all. And it's not just a warnming, it's an error preventing futher work at all.

And about warnings about statements. It sounds a great idea to test aren't some equations missed/corrupted and can prevent many errors. But, please, leave this as warning, don't make this an error! (Or, at least, allow to say "Yes, I know and I want to do so".) For example, if it's expected that participants will have printed statemants at contest, I think it's correct to have, for example, different signs for $$$\leq$$$ (with horizontal bottom line in English statements, but with slanted one in Russian and/or Ukrainian ones), and so on.

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

Use double-space and enter for a new line.
I am not sure about the horizontal line, table and matrix.

UPD: Sorry, it doesn't work. Seems like double enter is the only way for a new line.

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

    double-space then enter didn't work for me. But I now know how to create a matrix.

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

Auto comment: topic has been updated by Dardy (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Dardy (previous revision, new revision, compare).

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

Found anything about inserting newline ?