引用绘图

引用绘图

我想绘制带有引文的图表。使用 LaTEX 的优点是,每当文档中的引文发生变化时,我都不必手动输入引文。当使用手动软件绘制图表时,这会带来很多问题。作者可能必须等到文档完成后,手动检查引文并将其输入到图表中。我提供了一个示例图表,但目前我没有其他细节的工作示例,因为我不知道从哪里开始。

在此处输入图片描述

答案1

forest简单:

在此处输入图片描述

\documentclass[border=3mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage[edges]{forest}

\begin{document}
\begin{forest}
for tree={              % style of nodes in the tree
  draw, semithick, rounded corners,
   text width = 24mm, text badly centered,% <-- "align=center" doesn't work
                        % style of tree (edges, distances, direction)
         edge = {draw, semithick, -stealth},
       anchor = north,
         grow = south,
forked edge,            % for forked edge
        s sep = 8mm,    % sibling distance
        l sep = 8mm,    % level distance
     fork sep = 3.5mm,  % distance from parent to branching point
     tier/.option=level,
           }
 [Big Class
  [Class A
    [Proposal A1 \cite{...}\\
     Proposal A2 \cite{...}]
  ]
  [Class B
    [Proposal B1 \cite{...}\\
     Proposal B2 \cite{...}]
  ]
  [Class C
    [Proposal C1 \cite{...}\\
     Proposal C2 \cite{...}]
  ]
]
\end{forest}
\end{document}

编辑:tikz使用treestikz 库 可以获得类似的结果:

\documentclass[tikz, border=3mm]{standalone}
\usetikzlibrary{trees}

\begin{document}
    \begin{tikzpicture}[
every node/.style = {draw, rounded corners, text width=28mm, align=center,
                     anchor=north},
level distance = 12mm,
sibling distance = 32mm,
edge from parent fork down
                        ]
 \node {Big Class}
    child{ node {Class A}
        child{ node {Proposal A1 \cite{...}\\
                     Proposal A2 \cite{...}}}
        }
    child{ node {Class B}
        child{ node {Proposal B1 \cite{...}\\
                     Proposal B2 \cite{...}}}
        }
    child{ node {Class C}
        child{ node {Proposal C1 \cite{...}\\
                     Proposal C2 \cite{...}}}
        };
\end{tikzpicture}
\end{document}

相关内容