I'm trying to apply a shadow to a longtabu environment (because I want the table expands to fit the available width), similar to this table (CSS):

enter image description here

But, for my sample LaTeX` table, between the shadow and the table, there's some border and padding and I don't know how to remove it:



\definecolor{lightgray}{RGB}{180, 180, 180}



\begin{tcolorbox}[enhanced,size=fbox,drop shadow]
  \begin{longtabu} to \textwidth {cXc}
    Imagen & Producto & Total\\
    A & B & C


enter image description here

In short, I want to remove the borders, to center the shadow, and to remove the padding between the shadow and the table, preferably with using standard packages or environments, but using custom commands is also fine.

  • Please provide a compilable document code, not just fragments
    – user31729
    Commented Jan 31, 2017 at 0:04
  • The longtabu is not necessary here
    – user31729
    Commented Jan 31, 2017 at 0:10
  • @ChristianHupfer But it must be a "longtable" environment, because the table could span more than one page when images add added to the table in the first column.
    – ABu
    Commented Jan 31, 2017 at 0:15
  • 1
    No, even in tcolorbox with breakable, the longtabu won't break any longer!
    – user31729
    Commented Jan 31, 2017 at 0:16

1 Answer 1


The solution was to put the table inside a TiKz node:

  \node[draw=none,shade,blur shadow={shadow blur steps=20, shadow xshift=0ex,shadow yshift=0ex, shadow blur radius=1ex},inner sep=0pt]
           & Producto & Total\\[0.8ex]
           \includegraphics[height=80px, width=0.18\textwidth,keepaspectratio]{icon.png} & B & J

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .