答案1
这是您的起点。开始根据您的需要进行修改,如果遇到问题,请编辑您的问题并在此答案下发表评论,以便我收到通知。然后我将进一步帮助您:
\documentclass[tikz, border=2mm]{standalone}
\usetikzlibrary{patterns}
%
\begin{document}
%
\begin{tikzpicture}
%
\pattern[pattern=north east lines] (0,0)--(0,1)--(1,1)--(1,0)--cycle;
\draw[dashed] (0,2) -- (1,2);
%
\end{tikzpicture}%
%
\end{document}
答案2
这可能是一个很好的起点。
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns, decorations.pathreplacing, calc}
\begin{document}
\renewcommand{\b}{10}
\newcommand{\h}{5}
\renewcommand{\t}{.5}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\coordinate (E) at (\b,0);
\coordinate (En) at (\b,\t);
\coordinate (One) at (\t,\t);
\coordinate (Ne) at (\t,\h);
\coordinate (N) at (0,\h);
\coordinate (NE) at (N -| E);
\draw[thick, pattern=north east lines] (O) -- (E) -- (En) -- (One) -- (Ne) -- (N) -- cycle;
\draw[thick] (En) -- (NE);
\draw[dashed] (Ne) -- (NE);
\draw[thick, decorate, decoration={brace, raise=20pt}] (NE) -- (E) node[midway, right=30pt] {text};
\draw[thick, decorate, decoration={brace, raise=20pt, mirror}] (O) -- (E) node[midway, below=30pt] {text};
\end{tikzpicture}
\end{document}