# Compilation runs on forever when using \cline in a table [duplicate]

Im using texstudio and have this problem that whenever i use the \cline command and try to compile, it starts compiling and never finishes here is what im trying to compile. Im using this source https://github.com/Kyslik/FEIStyle

\newpage
\begin{tabular}{|c|c|c|c|c|c|}
\hline
Typ algoritmu                   & Kryptosystém      & Level bezpe\v cnosti (bit)    \\
&                   & 80   & 128  & 192  & 256      \\
Faktorizácia celých \v císel    & RSA               & 1024 & 3072 & 7680 & 15360    \\
Diskrétny logaritmus            & DH, DSA, Elgamal  & 1024 & 3072 & 7680 & 15360    \\ \cline{1-2}
Eliptické krivky                & ECDH, ECDSA       & 160  & 256  & 384  & 512      \\
Symetrický                      & AES, 3DES         & 80   & 128  & 192  & 256      \\
\hline
\end{tabular}


## marked as duplicate by egreg, Phelype Oleinik, Troy, TeXnician, Stefan PinnowMar 17 '18 at 17:33

• welcome to tex.se! please provide code of your table in form of complete small document beginning with \documentclass{...} and ending with \end{document}. image of code is not usable. – Zarko Mar 17 '18 at 14:14
• please, not a picture, copy code from your editor. image we can't compile ... it require that we should retype your code from scratch :-( – Zarko Mar 17 '18 at 14:22
• Never ever post a picture of your code, do you really think others want to type that code to test it? A link to the class is fine, but please update your question and paste the code to it such that it is copyable by others. – daleif Mar 17 '18 at 14:24
• Welcome to TeX.SX! No, a minimal working example (MWE), should be compilable code, starting with \documentclass and ending with \end{document}. – Bobyandbob Mar 17 '18 at 14:28
• This seems like a case of tex.stackexchange.com/questions/111999/… – egreg Mar 17 '18 at 14:32

i cant confirm your problem. after completion of your code fragment i obtain

mwe (minimal working example):

\documentclass{article}

\begin{document}
\begin{tabular}{|l|l| c|c| c|c|}                                                                                        \hline
Typ algoritmu                   & Kryptosystém      & Level bezpe\v cnosti (bit)
&      &      &          \\
&                   & 80   & 128  & 192  & 256      \\
Faktorizácia celých \v císel    & RSA               & 1024 & 3072 & 7680 & 15360    \\
Diskrétny logaritmus            & DH, DSA, Elgamal  & 1024 & 3072 & 7680 & 15360    \\
\cline{1-2}
Eliptické krivky                & ECDH, ECDSA       & 160  & 256  & 384  & 512      \\
Symetrický                      & AES, 3DES         & 80   & 128  & 192  & 256      \\                                                                                       \hline
\end{tabular}
\end{document}


• to your document i add \begin{document} and \end{document} that your code fragment become complete small document, which is possible to test (as i ask you to do)
• add missed ampersands in the first row

as you can test, your table code doesn't cause your problem. to see, what is going on at you, you should provide mwe, which show your problem.

i suspect that Level bezpe\v cnosti (bit) should be in \multicoumn{4}{c}{...} cell. further improvements should be use of utf8 input encoding, use of booktabs package for horizontal lines, omit vertical lines and use S column type from siunitx package. all this measure gives (tomy opinion) more open and professional look of table:

mwe:

\documentclass{article}

\begin{document}
\begin{tabular}{ll
*{4}{S[table-format=5.0,   % chBGED FROM "cccc"
group-four-digits]}
}                                                                                        \toprule
Typ algoritmu                   & Kryptosystém
& \multicolumn{4}{c}{Level bezpečnosti (bit)}\\  % changed
\midrule
&                  & 80   & 128  & 192  & 256      \\
Faktorizácia celých čísel & RSA              & 1024 & 3072 & 7680 & 15360    \\
Diskrétny logaritmus      & DH, DSA, Elgamal & 1024 & 3072 & 7680 & 15360    \\
\midrule{1-2}
Eliptické krivky          & ECDH, ECDSA      & 160  & 256  & 384  & 512      \\
Symetrický                & AES, 3DES        & 80   & 128  & 192  & 256      \\
\bottomrule
\end{tabular}
\end{document}