是否可以使用 tikz 包在乳胶中绘制这样的图形?

是否可以使用 tikz 包在乳胶中绘制这样的图形?
  • 所需图像类似于以下图像:

在此处输入图片描述

  • 图像代码与显示图像不完全相关
  • 我的问题是如何更改显示代码以重现显示的图像
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{csvsimple}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{relsize}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage[T1]{fontenc}
\title{table try}
\author{Jof Frimpong}
\date{October 2022}
\usepackage{float}
\usepackage{tikz}
    \usetikzlibrary{decorations.pathreplacing,calligraphy}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{statistics}
\usepgfplotslibrary{fillbetween}

\begin{document}
\maketitle
    
\section{Introduction}
    
\begin{table}[H]
    \centering
    \csvautotabular[]{latextry.csv}
\end{table}

    \begin{center}
\begin{tikzpicture}
    
    % \draw[](0,0) grid (5,5)
    \node[draw](a) at (0,0){Audit Fees};
    \node[draw](b) at (9,0){Profitability};
    \node[draw](c) [below of =a]{Audit Tenure};
    \node[draw](d) [below right of =b]{liquidity};
    \node[draw](e) [below  of =c]{firm size};
    \node[draw](f) at (0,-6){Board Size};
    \node[draw,fill=blue,text=white,shape=circle](g) at (5,0){\huge Audit Qualtiy};
    
    \draw[-latex](a) to (g);
    \draw[stealth-](c) to (g);
    \draw[line width=3pt][-{stealth [scale width=2]}](d) to (g);
    \draw[line width=3pt][-latex](f) to (g);
\end{tikzpicture}
    \end{center}
\end{document}

答案1

经过痛苦的拔出后,你追求的似乎是什么......你在寻找以下内容:

在此处输入图片描述

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
                calc, chains,
                decorations.pathreplacing,
                calligraphy,
                positioning,
                shapes}

\begin{document}
    \begin{figure}[ht]
    \centering
\begin{tikzpicture}[
node distance = 5mm and 16mm,
  start chain = going below,
   arr/.style = {-Stealth, very thick, color=cyan},
    BC/.style args = {#1/#2}{decorate,
                decoration={calligraphic brace, amplitude=6pt,
                pre =moveto, pre  length=1pt,
                post=moveto, post length=1pt,
                raise=#1, mirror},
                ultra thick,
                pen colour={#2}},
   BCL/.style args = {#1/#2}{draw=#1, rounded corners, 
                semithick, below=#2},      
     E/.style = {ellipse, draw=cyan, semithick, 
                 fill=cyan!30, font=\Large\bfseries},
     N/.style = {draw=cyan, semithick, minimum width = 8em, inner sep=1ex}
                    ]
    \begin{scope}[nodes={N, on chain}]
\node (a)   {text};
\node (b)   {text};
\node (c)   {text};
\node (d)   {text};
    \end{scope}
\node (e) [E, left= of {$(b.west)!0.5!(c.west)$}]  {TEXT};
%
\node (f) [N, left=of e.west |- a]   {text};
\node (g) [N, left=of e.west |- d]   {text};
%
    \foreach \i [count=\j]in {a,b,c,d, f,g}
{
\ifnum\j<5
    \draw[arr]   (\i.west) -- (e);
\else
    \draw[arr]   (\i.east) -- (e);
\fi
}
%
    \begin{scope}[nodes={BCL=orange/5mm}]
\draw[BC=3pt/orange]    (g.south west) 
                                -- node {text}
                        (g.south east);
\draw[BC=3pt/orange]    (e.west  |- d.south)
                                -- node {text}
                        (e.east  |- d.south);
\draw[BC=3pt/orange]    (d.south west)
                                -- node {text}
                         (d.south east);
    \end{scope}
\end{tikzpicture}
    \end{figure}
\end{document}

附录:

  • 正如我所担心的,所显示的图像是简化的......最终的图像仪是不同的(再次= :-)
  • 所需图像左侧有七个节点,右侧有五个节点
  • 这些改变可以通过对第一个版本答案进行以下修改来简单实现:
    • 定义两个节点 chanis )L 和 R),一个用于左侧,一个用于右侧
    • 先绘制左链,然后绘制中间节点,最后绘制右链
    • 仍然预计,链节点中的文本为一行,且短于或等于8em
    • 命名链(L用于左侧,R用于右侧);这样代码就更短更简单了:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
                chains,
                decorations.pathreplacing,
                calligraphy,
                positioning,
                shapes}

\begin{document}
    \begin{figure}[ht]
    \centering
\begin{tikzpicture}[
node distance = 5mm and 16mm,
  start chain = L going below,      % added chain name, for leftside chain 
  start chain = R going below,      % new chain, for rightside 
   arr/.style = {-Stealth, very thick, color=cyan},
    BC/.style args = {#1/#2}{decorate,
                decoration={calligraphic brace, amplitude=6pt,
                pre =moveto, pre  length=1pt,
                post=moveto, post length=1pt,
                raise=#1, mirror},
                ultra thick,
                pen colour={#2}},
   BCL/.style args = {#1/#2}{draw=#1, rounded corners, 
                semithick, font=\scshape, 
                align=center, below=#2},      
     E/.style = {ellipse, draw=cyan, semithick, 
                 fill=cyan!30, font=\Large\bfseries,
                 align=center},
     N/.style = {draw=cyan, semithick, minimum width = 8em, 
                 align=center, inner sep=1ex}
                    ]
    \begin{scope}[nodes={N, on chain=L}] % leftside chain of 7 nodes
\node   {text L1}; % node name: L-1
\node   {text L2};
\node   {text L3};
\node   {text L4};
\node   {text L5};
\node   {text L6};
\node   {text L7};
    \end{scope}
\node (e) [E, right= of L-4]  {TEXT\\ TEXT};
%
    \begin{scope}[nodes={N, on chain=R}] % rightside chain of 5 nodes
\node   [right=of L-2 -| e.east]
        {text R1}; % node name: R-1
\node   {text R2};
\node   {text R3};
\node   {text R4};
\node   {text R5};
    \end{scope}
%
\foreach \i in {1, 2,...,7}
    \draw[arr]   (L-\i.east) -- (e);
\foreach \i in {1, 2,...,5}
    \draw[arr]   (R-\i.west) -- (e);

%
    \begin{scope}[nodes={BCL=orange/5mm}]
\draw[BC=3pt/orange]    (L-7.south west) 
                                -- node {left side\\ nodes} 
                        (L-7.south east);
\draw[BC=3pt/orange]    (e.west  |- L-7.south)
                                -- node {text}
                        (e.east  |- L-7.south);
\draw[BC=3pt/orange]    (R-5.west |- L-7.south)
                                -- node {right side\\ nodes} 
                        (R-5.east |- L-7.south);
    \end{scope}
\end{tikzpicture}
    \end{figure}
\end{document}

在此处输入图片描述

相关内容