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

How would a solely written language work mechanically

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

Derivative of an interpolated function

Checking @@ROWCOUNT failing

Why can't I get pgrep output right to variable on bash script?

Why do Radio Buttons not fill the entire outer circle?

Air travel with refrigerated insulin

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

Why does the frost depth increase when the surface temperature warms up?

Are hand made posters acceptable in Academia?

Is this saw blade faulty?

What is this high flying aircraft over Pennsylvania?

Extract substring according to regexp with sed or grep

How do you justify more code being written by following clean code practices?

How can a new country break out from a developed country without war?

Calculate Pi using Monte Carlo

How to preserve electronics (computers, ipads, phones) for hundreds of years?

Trouble reading roman numeral notation with flats

Travelling in US for more than 90 days

PTIJ: Which Dr. Seuss books should one obtain?

Reasons for having MCU pin-states default to pull-up/down out of reset

C++ lambda syntax

Sort with assumptions

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



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 5 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

          Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

          Schneeberg (Smreczany) Bibliografia | Menu...

          Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...