Polygon Codeforces LaTeX in Statement

Revision en3, by Dardy, 2020-04-09 16:43:37

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}$$$
Tags #polygon, #codeforces polygon, #latex, #statement

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Dardy 2020-04-09 16:43:37 448 added how to add a table
en2 English Dardy 2020-04-09 16:29:43 224 added how to add matrix
en1 English Dardy 2020-04-09 05:27:11 979 Initial revision (published)