6

There seems to be a problem between the CIFA document class and the booktabs package. When I compile the following code, the horizontal lines are not displayed:

\documentclass{cifa}
\usepackage{booktabs}

\begin{document}
\begin{table}
    \centering 
    \begin{tabular}{cc}
        \toprule
        $Cell_{11}$ & $Cell_{12}$ \\
        \midrule
        $Cell_{21}$ & $Cell_{22}$ \\
        \bottomrule
    \end{tabular}
    \caption{Bad table}
\end{table}
\end{document}

If I use the article document class, the example compiles correctly. Any workaround?

7

The thickness of the rules is defined by booktabs relative to the main document's font. However cifa.cls forgets to say \normalsize (which every class should do), so booktabs sets the thickness to a fraction of zero (because the font has not yet been chosen).

\documentclass{cifa}
\normalsize

<other packages>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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