带乳胶的绘图盒

带乳胶的绘图盒

我想写一些类似于附件中的内容。在此处输入图片描述

任何帮助将不胜感激。

答案1

我猜你正在寻找类似的东西。你需要根据你的要求和图形调整代码。

在此处输入图片描述

\documentclass[a4paper,11pt]{article}

\usepackage[margin=2cm]{geometry}

\usepackage{luacolor} % LuaLatex needed to use this / replace with xcolor for PDFLatex

\usepackage{graphicx}

\usepackage{tikz}
\usetikzlibrary{backgrounds,positioning,shadows,shapes.geometric}

\begin{document}
    
    \begin{tikzpicture}
        \draw[drop shadow,fill=white,rounded corners] (0,0) rectangle ++ (5,7) node(base) {};
        \node[align=center](quest) at (1.5,5) {\begin{tabular}{c l}
            Q   &   x = 6   \\
                &   y = 2   \\
                &   print(x**y) \\
                &   print(x/y)
        \end{tabular}};
        \draw[fill=blue] (2.5,7) circle[radius=0.6] node [white,align=center] {\includegraphics[scale=0.05]{example-image-b}};
    
        \begin{scope}[on background layer]
            \draw[drop shadow,fill=white,rounded corners,] ([xshift=-10mm,yshift=-10mm]base.north east) rectangle node[align=center] {\includegraphics[scale=0.1]{example-image-a}}  ++ (3,2);
        \end{scope}
        
        \begin{scope}[block/.style={rectangle,rounded corners,drop shadow,fill=white,text width=20mm,align=left}]
            \node[block](ans) at (5.5,4.5)  {\textbf{A.} 66 0};
            \node[block,below=of ans,yshift=7.5mm] {\textbf{B.} 66 3};
            \node[block,below=of ans,yshift=0mm] {\textbf{C.} 36 0};
            \node[block,below=of ans,yshift=-7.5mm] {\textbf{D.} 36 3};
        \end{scope}
    \end{tikzpicture}

\end{document}

相关内容