0

This question already has an answer here:

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 Pinnow Mar 17 '18 at 17:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    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
  • 1
    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
  • 3
    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
  • 1
    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
  • 3
    This seems like a case of tex.stackexchange.com/questions/111999/… – egreg Mar 17 '18 at 14:32
1

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

enter image description here

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}

please observe:

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

addendum:

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:

enter image description here

mwe:

\documentclass{article}
\usepackage[utf8]{inputenc} % added
\usepackage{booktabs}       % added
\usepackage{siunitx}        % added

\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}

Not the answer you're looking for? Browse other questions tagged or ask your own question.