Overlay of tcbitems are not well alignedBeamer: highlighting aligned math with overlaywhy is this equation...

I keep switching characters, how do I stop?

A seasonal riddle

Air travel with refrigerated insulin

Is divisi notation needed for brass or woodwind in an orchestra?

Turning a hard to access nut?

Weird lines in Microsoft Word

Hashing password to increase entropy

Derivative of an interpolated function

When is the exact date for EOL of Ubuntu 14.04 LTS?

Is there any common country to visit for persons holding UK and Schengen visas?

Would a primitive species be able to learn English from reading books alone?

Are hand made posters acceptable in Academia?

Why didn’t Eve recognize the little cockroach as a living organism?

categorizing a variable turns it from insignificant to significant

Error in master's thesis, I do not know what to do

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Connection Between Knot Theory and Number Theory

Highest stage count that are used one right after the other?

Why would five hundred and five same as one?

Would this string work as string?

Unfrosted light bulb

Why is implicit conversion not ambiguous for non-primitive types?

What do the positive and negative (+/-) transmit and receive pins mean on Ethernet cables?

What properties make a magic weapon befit a Rogue more than a DEX-based Fighter?



Overlay of tcbitems are not well aligned


Beamer: highlighting aligned math with overlaywhy is this equation not left aligned?Figure and caption are not alignedSome items in bibliography are not alignedgb4e glosses are not aligned properlyBeamer two column overlay display aligned equations right column first then leftHorizontal center vertically aligned equationsitems list inside table cell are not well alignedOverlay in marginmulticols equations not aligned













0















I'd like to be able to overlay several tables made from raster/tcbitems. I tried several methods to do that, but none of them work for me. There is always a margin somewhere that is wrong. This example uses:



mbox{vbox to 0pt {hbox to 0cm{ <text> }}}


Any idea how to have exact overlay? Thanks!



enter image description here



MWE: (sorry, it's not super minimal, but the code for rasters can be seen as a "blackbox" and just be copy pasted)



documentclass{article}

usepackage{eso-pic}
usepackage{tikz}
usetikzlibrary{calc}
usepackage{contour}
usepackage{luatex85}
usepackage{xcolor}
usepackage{pdfrender}
usepackage[strict]{changepage}
usepackage{adjustbox}
usepackage[most]{tcolorbox}
tcbuselibrary{raster}
usepackage{afterpage}
newlength{myPaperWidth}
setlength{myPaperWidth}{297mm}
newlength{myPaperHeight}
setlength{myPaperHeight}{210mm}
newlength{myRightMargin}
setlength{myRightMargin}{5mm}
newlength{myRightPadding}
setlength{myRightPadding}{5mm}
newlength{myLeftMargin}
setlength{myLeftMargin}{5mm}
newlength{myLeftPadding}
setlength{myLeftPadding}{5mm}
newlength{myTopMargin}
setlength{myTopMargin}{5mm}
newlength{myTopPadding}
setlength{myTopPadding}{5mm}
newlength{myBottomMargin}
setlength{myBottomMargin}{5mm}
newlength{myBottomPadding}
setlength{myBottomPadding}{5mm}
newlength{mystockwidth}
setlength{mystockwidth}{myPaperWidth}
addtolength{mystockwidth}{myLeftMargin}
addtolength{mystockwidth}{myRightMargin}
newlength{mystockheight}
setlength{mystockheight}{myPaperHeight}
addtolength{mystockheight}{myTopMargin}
addtolength{mystockheight}{myBottomMargin}
usepackage[ paperwidth=myPaperWidth,paperheight=myPaperHeight, hmargin={myLeftPadding, myRightPadding}, vmargin={myTopPadding, myBottomPadding}, nohead, nofoot, nomarginpar, pdftex=false, dvips=false, vtex=false,driver=none,showframe]{geometry}
usepackage[width=themystockwidth,height=themystockheight,center,pdftex,frame,noinfo]{crop}


usepackage{wasysym}
begin{document}

noindent %%%% FIRST IMAGE
begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
tcbitem[blankest,valign=center]
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
}
end{tcbitemize}
newpage

noindent %%%% SECOND IMAGE
begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
tcbitem[blankest, valign=center,raster multirow=1]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
tcbitem[blankest, valign=center,raster multicolumn=40]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
}
tcbitem[blankest, valign=center,raster multicolumn=60]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
}
}
end{tcbitemize}
}
tcbitem[blankest, valign=center,raster multirow=1]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
tcbitem[blankest, valign=center,raster multicolumn=60]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
}
tcbitem[blankest, valign=center,raster multicolumn=40]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
}
end{tcbitemize}
}
end{tcbitemize}
end{tcbitemize}
newpage

noindent %%%% MIX OF IMAGES
mbox{vbox to 0pt {hbox to 0cm{%%%% First picture
begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
tcbitem[blankest,valign=center]
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
}
end{tcbitemize}
}}}%
mbox{vbox to 0pt {hbox to 0cm{%%%%% Second picture
begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
tcbitem[blankest, valign=center,raster multirow=1]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
tcbitem[blankest, valign=center,raster multicolumn=40]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
}
tcbitem[blankest, valign=center,raster multicolumn=60]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
}
}
end{tcbitemize}
}
tcbitem[blankest, valign=center,raster multirow=1]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
tcbitem[blankest, valign=center,raster multicolumn=60]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
}
tcbitem[blankest, valign=center,raster multicolumn=40]{
edeftcbitemtw{tcbtextwidth}
edeftcbitemth{tcbtextheight}
}
end{tcbitemize}
}
end{tcbitemize}
end{tcbitemize}
}
}
}
newpage


end{document}








share



























    0















    I'd like to be able to overlay several tables made from raster/tcbitems. I tried several methods to do that, but none of them work for me. There is always a margin somewhere that is wrong. This example uses:



    mbox{vbox to 0pt {hbox to 0cm{ <text> }}}


    Any idea how to have exact overlay? Thanks!



    enter image description here



    MWE: (sorry, it's not super minimal, but the code for rasters can be seen as a "blackbox" and just be copy pasted)



    documentclass{article}

    usepackage{eso-pic}
    usepackage{tikz}
    usetikzlibrary{calc}
    usepackage{contour}
    usepackage{luatex85}
    usepackage{xcolor}
    usepackage{pdfrender}
    usepackage[strict]{changepage}
    usepackage{adjustbox}
    usepackage[most]{tcolorbox}
    tcbuselibrary{raster}
    usepackage{afterpage}
    newlength{myPaperWidth}
    setlength{myPaperWidth}{297mm}
    newlength{myPaperHeight}
    setlength{myPaperHeight}{210mm}
    newlength{myRightMargin}
    setlength{myRightMargin}{5mm}
    newlength{myRightPadding}
    setlength{myRightPadding}{5mm}
    newlength{myLeftMargin}
    setlength{myLeftMargin}{5mm}
    newlength{myLeftPadding}
    setlength{myLeftPadding}{5mm}
    newlength{myTopMargin}
    setlength{myTopMargin}{5mm}
    newlength{myTopPadding}
    setlength{myTopPadding}{5mm}
    newlength{myBottomMargin}
    setlength{myBottomMargin}{5mm}
    newlength{myBottomPadding}
    setlength{myBottomPadding}{5mm}
    newlength{mystockwidth}
    setlength{mystockwidth}{myPaperWidth}
    addtolength{mystockwidth}{myLeftMargin}
    addtolength{mystockwidth}{myRightMargin}
    newlength{mystockheight}
    setlength{mystockheight}{myPaperHeight}
    addtolength{mystockheight}{myTopMargin}
    addtolength{mystockheight}{myBottomMargin}
    usepackage[ paperwidth=myPaperWidth,paperheight=myPaperHeight, hmargin={myLeftPadding, myRightPadding}, vmargin={myTopPadding, myBottomPadding}, nohead, nofoot, nomarginpar, pdftex=false, dvips=false, vtex=false,driver=none,showframe]{geometry}
    usepackage[width=themystockwidth,height=themystockheight,center,pdftex,frame,noinfo]{crop}


    usepackage{wasysym}
    begin{document}

    noindent %%%% FIRST IMAGE
    begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
    tcbitem[blankest,valign=center]
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
    includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
    }
    end{tcbitemize}
    newpage

    noindent %%%% SECOND IMAGE
    begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
    tcbitem[blankest, valign=center,raster multirow=1]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
    tcbitem[blankest, valign=center,raster multicolumn=40]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    }
    tcbitem[blankest, valign=center,raster multicolumn=60]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
    includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
    }
    }
    end{tcbitemize}
    }
    tcbitem[blankest, valign=center,raster multirow=1]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
    tcbitem[blankest, valign=center,raster multicolumn=60]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    }
    tcbitem[blankest, valign=center,raster multicolumn=40]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    }
    end{tcbitemize}
    }
    end{tcbitemize}
    end{tcbitemize}
    newpage

    noindent %%%% MIX OF IMAGES
    mbox{vbox to 0pt {hbox to 0cm{%%%% First picture
    begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
    tcbitem[blankest,valign=center]
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
    includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
    }
    end{tcbitemize}
    }}}%
    mbox{vbox to 0pt {hbox to 0cm{%%%%% Second picture
    begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
    tcbitem[blankest, valign=center,raster multirow=1]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
    tcbitem[blankest, valign=center,raster multicolumn=40]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    }
    tcbitem[blankest, valign=center,raster multicolumn=60]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
    includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
    }
    }
    end{tcbitemize}
    }
    tcbitem[blankest, valign=center,raster multirow=1]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
    tcbitem[blankest, valign=center,raster multicolumn=60]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    }
    tcbitem[blankest, valign=center,raster multicolumn=40]{
    edeftcbitemtw{tcbtextwidth}
    edeftcbitemth{tcbtextheight}
    }
    end{tcbitemize}
    }
    end{tcbitemize}
    end{tcbitemize}
    }
    }
    }
    newpage


    end{document}








    share

























      0












      0








      0








      I'd like to be able to overlay several tables made from raster/tcbitems. I tried several methods to do that, but none of them work for me. There is always a margin somewhere that is wrong. This example uses:



      mbox{vbox to 0pt {hbox to 0cm{ <text> }}}


      Any idea how to have exact overlay? Thanks!



      enter image description here



      MWE: (sorry, it's not super minimal, but the code for rasters can be seen as a "blackbox" and just be copy pasted)



      documentclass{article}

      usepackage{eso-pic}
      usepackage{tikz}
      usetikzlibrary{calc}
      usepackage{contour}
      usepackage{luatex85}
      usepackage{xcolor}
      usepackage{pdfrender}
      usepackage[strict]{changepage}
      usepackage{adjustbox}
      usepackage[most]{tcolorbox}
      tcbuselibrary{raster}
      usepackage{afterpage}
      newlength{myPaperWidth}
      setlength{myPaperWidth}{297mm}
      newlength{myPaperHeight}
      setlength{myPaperHeight}{210mm}
      newlength{myRightMargin}
      setlength{myRightMargin}{5mm}
      newlength{myRightPadding}
      setlength{myRightPadding}{5mm}
      newlength{myLeftMargin}
      setlength{myLeftMargin}{5mm}
      newlength{myLeftPadding}
      setlength{myLeftPadding}{5mm}
      newlength{myTopMargin}
      setlength{myTopMargin}{5mm}
      newlength{myTopPadding}
      setlength{myTopPadding}{5mm}
      newlength{myBottomMargin}
      setlength{myBottomMargin}{5mm}
      newlength{myBottomPadding}
      setlength{myBottomPadding}{5mm}
      newlength{mystockwidth}
      setlength{mystockwidth}{myPaperWidth}
      addtolength{mystockwidth}{myLeftMargin}
      addtolength{mystockwidth}{myRightMargin}
      newlength{mystockheight}
      setlength{mystockheight}{myPaperHeight}
      addtolength{mystockheight}{myTopMargin}
      addtolength{mystockheight}{myBottomMargin}
      usepackage[ paperwidth=myPaperWidth,paperheight=myPaperHeight, hmargin={myLeftPadding, myRightPadding}, vmargin={myTopPadding, myBottomPadding}, nohead, nofoot, nomarginpar, pdftex=false, dvips=false, vtex=false,driver=none,showframe]{geometry}
      usepackage[width=themystockwidth,height=themystockheight,center,pdftex,frame,noinfo]{crop}


      usepackage{wasysym}
      begin{document}

      noindent %%%% FIRST IMAGE
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
      tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
      }
      end{tcbitemize}
      newpage

      noindent %%%% SECOND IMAGE
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
      }
      }
      end{tcbitemize}
      }
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      end{tcbitemize}
      }
      end{tcbitemize}
      end{tcbitemize}
      newpage

      noindent %%%% MIX OF IMAGES
      mbox{vbox to 0pt {hbox to 0cm{%%%% First picture
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
      tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
      }
      end{tcbitemize}
      }}}%
      mbox{vbox to 0pt {hbox to 0cm{%%%%% Second picture
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
      }
      }
      end{tcbitemize}
      }
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      end{tcbitemize}
      }
      end{tcbitemize}
      end{tcbitemize}
      }
      }
      }
      newpage


      end{document}








      share














      I'd like to be able to overlay several tables made from raster/tcbitems. I tried several methods to do that, but none of them work for me. There is always a margin somewhere that is wrong. This example uses:



      mbox{vbox to 0pt {hbox to 0cm{ <text> }}}


      Any idea how to have exact overlay? Thanks!



      enter image description here



      MWE: (sorry, it's not super minimal, but the code for rasters can be seen as a "blackbox" and just be copy pasted)



      documentclass{article}

      usepackage{eso-pic}
      usepackage{tikz}
      usetikzlibrary{calc}
      usepackage{contour}
      usepackage{luatex85}
      usepackage{xcolor}
      usepackage{pdfrender}
      usepackage[strict]{changepage}
      usepackage{adjustbox}
      usepackage[most]{tcolorbox}
      tcbuselibrary{raster}
      usepackage{afterpage}
      newlength{myPaperWidth}
      setlength{myPaperWidth}{297mm}
      newlength{myPaperHeight}
      setlength{myPaperHeight}{210mm}
      newlength{myRightMargin}
      setlength{myRightMargin}{5mm}
      newlength{myRightPadding}
      setlength{myRightPadding}{5mm}
      newlength{myLeftMargin}
      setlength{myLeftMargin}{5mm}
      newlength{myLeftPadding}
      setlength{myLeftPadding}{5mm}
      newlength{myTopMargin}
      setlength{myTopMargin}{5mm}
      newlength{myTopPadding}
      setlength{myTopPadding}{5mm}
      newlength{myBottomMargin}
      setlength{myBottomMargin}{5mm}
      newlength{myBottomPadding}
      setlength{myBottomPadding}{5mm}
      newlength{mystockwidth}
      setlength{mystockwidth}{myPaperWidth}
      addtolength{mystockwidth}{myLeftMargin}
      addtolength{mystockwidth}{myRightMargin}
      newlength{mystockheight}
      setlength{mystockheight}{myPaperHeight}
      addtolength{mystockheight}{myTopMargin}
      addtolength{mystockheight}{myBottomMargin}
      usepackage[ paperwidth=myPaperWidth,paperheight=myPaperHeight, hmargin={myLeftPadding, myRightPadding}, vmargin={myTopPadding, myBottomPadding}, nohead, nofoot, nomarginpar, pdftex=false, dvips=false, vtex=false,driver=none,showframe]{geometry}
      usepackage[width=themystockwidth,height=themystockheight,center,pdftex,frame,noinfo]{crop}


      usepackage{wasysym}
      begin{document}

      noindent %%%% FIRST IMAGE
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
      tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
      }
      end{tcbitemize}
      newpage

      noindent %%%% SECOND IMAGE
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
      }
      }
      end{tcbitemize}
      }
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      end{tcbitemize}
      }
      end{tcbitemize}
      end{tcbitemize}
      newpage

      noindent %%%% MIX OF IMAGES
      mbox{vbox to 0pt {hbox to 0cm{%%%% First picture
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]
      tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-a}
      }
      end{tcbitemize}
      }}}%
      mbox{vbox to 0pt {hbox to 0cm{%%%%% Second picture
      begin{tcbitemize}[,nobeforeafter, blankest, raster row skip=4mm, raster columns=1, raster rows=1, raster valign=center, halign=center, raster every box/.style={nobeforeafter,fit=outside,top=0pt, bottom=0pt, right=0pt, left=0pt, boxsep=0pt,enhanced,clip upper,halign=center, raster valign=center}, raster width=textwidth, raster column skip=4mm, raster height=textheight, raster height=1textheight, ]tcbitem[blankest,valign=center]
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster columns=1,raster rows=2,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      tcbox[,nobeforeafter, enhanced, skin=enhanced jigsaw, clip upper, left=0pt, bottom=0pt, top=0pt, right=0pt, boxsep=0pt, beforeafter skip=0pt, tikz={,}, ]{
      includegraphics[width=tcbitemtw,height=tcbitemth, keepaspectratio]{example-image-b}
      }
      }
      end{tcbitemize}
      }
      tcbitem[blankest, valign=center,raster multirow=1]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      begin{tcbitemize}[raster rows=1,raster columns=100,raster height=tcbtextheight,raster width=tcbtextwidth, raster valign=center]
      tcbitem[blankest, valign=center,raster multicolumn=60]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      tcbitem[blankest, valign=center,raster multicolumn=40]{
      edeftcbitemtw{tcbtextwidth}
      edeftcbitemth{tcbtextheight}
      }
      end{tcbitemize}
      }
      end{tcbitemize}
      end{tcbitemize}
      }
      }
      }
      newpage


      end{document}






      horizontal-alignment vertical-alignment align overlays





      share












      share










      share



      share










      asked 4 mins ago









      tobiasBoratobiasBora

      1,272315




      1,272315






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480411%2foverlay-of-tcbitems-are-not-well-aligned%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480411%2foverlay-of-tcbitems-are-not-well-aligned%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

          Castillo d'Acher Características Menú de navegación

          Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...