Advertisement
klaxalk

subfigure with table

Dec 17th, 2019
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.21 KB | None | 0 0
  1. \begin{figure}
  2.  
  3.  \centering
  4.  
  5.  \begin{tikzpicture}
  6.  
  7.    \node[anchor=south west,inner sep=0] (a) at (0,0) {
  8.  
  9.        \subfloat[Pinhole aperture] {
  10.  
  11.          \begin{tabular}{cc}
  12.            \includegraphics[width=0.25\textwidth]{./fig/855.png}
  13.            \label{fig:pinhole}
  14.          &
  15.          \begin{tabular}{c|c}
  16.            pes & kocka \\
  17.            \hline
  18.            mys & slon
  19.          \end{tabular}
  20.          \end{tabular}
  21.        }
  22.  
  23.      };
  24.  
  25.    \begin{scope}[x={(a.south east)},y={(a.north west)}]
  26.  
  27.      \draw (0.8,0.8) node [text=black] {
  28.  
  29.          \begin{tabular}{c|c}
  30.            \small 1 & 2 \\
  31.            \hline
  32.            \small 3 & 4
  33.          \end{tabular}
  34.  
  35.        };
  36.  
  37.       %%{ grid
  38.  
  39.       % useful grid to help you find coordinates for plotting the overlay
  40.       % \draw[black, xstep=.1, ystep=.1] (0,0) grid (1,1);
  41.       % \foreach \i in {0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1} {
  42.       %   \node[align=center] at (\i, -0.05) {\i};
  43.       %   \node[align=center] at (\i, 1.05) {\i};
  44.       %   \node[align=center] at (-0.05, \i) {\i};
  45.       %   \node[align=center] at (1.05, \i) {\i};
  46.       % }
  47.  
  48.       %%}
  49.  
  50.     \end{scope}
  51.  
  52.  \end{tikzpicture}
  53.  
  54. \end{figure}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement