TransWikia.com

Place an image behind a table

TeX - LaTeX Asked on October 2, 2021

I have a table in my document that holds preliminary data and I’d like to mark this by putting an image behind the table. How can I achieve this?

enter image description here

This is a mockup of what I’d like to achieve but if possible with the text in the background instead of in front.

One Answer

enter image description here

documentclass{article}
usepackage{tikz, lmodern}
usetikzlibrary{calc,tikzmark}
begin{document}
    
    begin{tikzpicture}[overlay,remember picture]
    node [yshift=.6ex,rotate=45] at ( $(pic cs:A) !.5! (pic cs:B)$ ){ fontsize{8} 
          {6}selectfonttextbf{color{black!40}RESTRICTED} };
    end{tikzpicture}
    
    begin{tabular}{llll}
        1 & 2 & 3 & tikzmark{B}4 
        1 & 2 & 3 & 4 
        1 & 2 & 3 & 4 
        1 & 2 & 3 & 4 
        tikzmark{A}1 & 2 & 3 & 4
    end{tabular}
    
end{document}

Correct answer by js bibra on October 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP