如何用 TeX 编写此代码

如何用 TeX 编写此代码

任务

你好,你能帮我完成这个任务吗?

答案1

matrix of nodes这是使用第一条“线”的一种可能性。是Timatrix of nodes的一种风格matrixZ 库。我让你添加西里尔字符,因为我不擅长这个领域。;-)

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{matrix, positioning}

\begin{document}

\begin{tikzpicture}
% Use the 'text depth' key to tune the depth of the matrix
% nodes, and thus where the arrow tips arrive.
\matrix (mymat) [matrix of nodes, column sep=0.2em, nodes={text depth=3ex}]
  {
    Just & data & \guillemotright\guillemotright\guillemotright
         & |(diff)|\Huge \textbf{Difficult} & |(easy)| \LARGE\textit{Easy}
         & |(data)|data\\
  };

\begin{scope}[every node/.append style={outer ysep=0.2ex, align=center}]
  \node (some) [below right=1cm and 0.5cm of diff.south]
    {Some\\ \textcolor{red!80!black}{text}};
  \node (other) [below=1cm of data]
    {\textcolor{red!80!black}{Other}\\ text};
\end{scope}

\begin{scope}[every path/.append style={draw, -latex}]
  \path (some) -- (diff);
  \path (some) -- (easy);
  \path (other) -- (data);
 \end{scope}
\end{tikzpicture}

\end{document}

截屏

相关内容