方框方程和箭头

方框方程和箭头

我想将其实现到对齐环境(或等效环境)中,我该怎么做?我尝试使用盒子,但结构相当复杂,因为我想要左侧有一个大盒子……

在此处输入图片描述

答案1

给你。除了使用 Sans Serif 系列(在我的字体中显示为粗体),我无法复制该字体。

输出

图1

代码

\documentclass[margin=10pt]{standalone}
\usepackage{tikz}

\usetikzlibrary{arrows.meta,calc,positioning}


\tikzset{
    every node/.style={draw=gray, rounded corners, text centered,text width=3cm},
}

\begin{document}
    \begin{tikzpicture}[
        >=latex,
        font=\sffamily
      ]
    \node[minimum height=4cm,minimum width=3cm] (big) at (0,0) {text\\more text};

    \node[font=\Large\sffamily, right=of big.north east, anchor=north west,minimum height=1cm] (s1) {equation}; 
    \node[right=of big.south east, anchor=south west,minimum height=1cm] (s2) {a lot of text\\and another line};

    \node[draw=none] at ($(big.north east)!.5!(s1.south west)$) {$\times$};
    \node[draw=none] at ($(big.south east)!.5!(s2.north west)$) {$\times$};

    \draw[<->, shorten >=5mm, shorten <=5mm] (s1.south) -- (s2.north);

    \end{tikzpicture}
\end{document}

相关内容