gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)
https://git.umaneti.net/latex-awesomebox/about/
Do What The F*ck You Want To Public License
52 stars 6 forks source link

Box inside tabular environment? #15

Open deining opened 5 years ago

deining commented 5 years ago

Hi,

is it possible to have boxes inside an tabular environment?

Minimal working example:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\usepackage{awesomebox}
\usepackage{babel}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}

\begin{tabularx}{10cm}{cXccc}
    \toprule
    Position & Article & Description & Price & Unit \\
    \cmidrule(r){1-1}
    \cmidrule(lr){2-2}
    \cmidrule(lr){3-3}
    \cmidrule(lr){4-4}
    \cmidrule(lr){5-5}
    \addlinespace

    1 & 2 & 3 & 4 & 5 \\

    \multicolumn{5}{c}{\mbox{German, English, usw.}} \\

        %\multicolumn{5}{c}{\importantbox{German, English, usw.)}} \\
        % the line above does not work :-(
    \bottomrule
\end{tabularx}

\end{document}

Thanks for providing this useful package!

milouse commented 5 years ago

Hi,

I'll look at it as soon as possible. Thank you for your minimal exemple, it will help me a lot.