画一个简单的括号和/或弧图

画一个简单的括号和/或弧图

我希望能够绘制类似于所附示例的东西。我对乳胶还不太熟悉,但之前做过一些直白的散文。它需要传达一般的想法,但不必看起来完全一样。有人能给我指出正确的方向吗(例如要使用什么包)?提前谢谢!

在此处输入图片描述

答案1

这是一种可能的解决方案,其中VerticalBracket定义一个接受 7 个参数的宏,包括一个颜色选项。

在此处输入图片描述

代码

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}

\newcommand{\tikzmark}[1]{\tikz[overlay,remember picture,baseline={-3pt}] \node[] (#1) {};}

\newcommand\VerticalBraket[7][]{%
    % #1 = draw options
    % #2 = top mark
    % #3 = bottom mark
    % #4 = label
    % #5 = x adjustment 
    % #6 = labe at upper corner
    % #7 = label at lower corner
\draw[#1] 
(#2) node[above left,]{#6} -- ++(-1.2 cm,0)|- node[pos=0.3,left=2mm] {#4} ([xshift=-#5]#3.west)
node [above left] {#7};
}
\begin{document}

\begin{itemize}
\item[\tikzmark{1a}1a] Those under the yoke of slavery should consider their own masters wotthy of all honor
\begin{itemize}
\item[\tikzmark{1b} 1b] in order that the same of God should not be sopken against\\
\item[\tikzmark{1c}1c] and  that the teaching should not be soken against
\end{itemize}
\item[\tikzmark{2a} 2a] That is, those slaves who have believing masters should not despise them
\begin{itemize}
\item[\tikzmark{2b} 2b] becaue they are brothers
\end{itemize}
\item[\tikzmark{2c} 2c] but instead, they should serve their believing masters
\begin{itemize}
\item[\tikzmark{2d} 2d] becaue those benefiting from the good work are believers and beloved
\end{itemize}
\end{itemize}

\begin{tikzpicture}[overlay,remember picture]
\VerticalBraket[ultra thick, blue]{1b}{1c}{\tikzmark{s}S}{1ex}{}{}
\VerticalBraket[ultra thick, blue]{2a}{2b}{\tikzmark{-}}{5ex}{}{G}
\VerticalBraket[ultra thick, blue]{2c}{2d}{\tikzmark{+}}{5ex}{}{G}
\VerticalBraket[draw=none]{1a}{1a}
{\tikzmark{ac}}{0ex}{}{}
\VerticalBraket[ultra thick, blue]{ac}{s}
{\tikzmark{id}}{3ex}{Ac}{Pur}
\VerticalBraket[ultra thick, blue]{-}{+}
{\tikzmark{exp}}{0ex}{$-$}{$+$}
\VerticalBraket[ultra thick, blue]{id}{exp}
{}{0ex}{Id}{Exp}
\end{tikzpicture}

\end{document}

相关内容