如何在 tikz 中绘制重叠的圆圈,每个圆圈内都有文字

如何在 tikz 中绘制重叠的圆圈,每个圆圈内都有文字

我的目标是使用 Tikz 绘制三个圆形/椭圆形的图片。三个节点应该重叠。在 powepoint 中,很容易制作这样的图形。然而,在 Tikz 中,我在显示重叠方面遇到了一些问题。 在此处输入图片描述

   \documentclass[xcolor=table]{beamer}
   \newcommand\hideit[1]{%
 \only<0| handout:1>{\mbox{}}%
 \invisible<0| handout:1>{#1}}
   \mode<presentation> {

 }
  \usetheme{CambridgeUS} 
\usepackage{comment}
   \usepackage{tikz}
  \usetikzlibrary{shapes}
 \usepackage{graphicx} 
  \usepackage{booktabs}
 \usepackage{multirow}
   \usepackage{amsmath}
 \newcommand*{\Perm}[2]{{}^{#1}\!P_{#2}}%
 \newcommand*{\Comb}[2]{{}^{#1}C_{#2}}%
\usepackage{amssymb}

    \usepackage{subfig}
   \newcommand{\mathbold}[1]{\text{\textbf{#1}}}
 \makeatletter
     \let\@@magyar@captionfix\relax
  \makeatother
    \begin{document}

  \begin{frame}{Frame Title}

  \begin{tikzpicture} 
 \node[xshift=4cm,draw,fill=green!25,ellipse,text width=5cm,align=center] 
 {
 \tiny{
 Short term
 \begin{enumerate}
  \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
  \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
  \item DO 3  Text  DO 2 Text  DO 2 Text
  \item  DO 4 Text  DO 2 Text  DO 2 Text  DO 2 Text 

  \end{enumerate}
 }

  };

  \node[xshift=9cm,draw,fill=white!25,ellipse,text width=3cm,align=center] 
{
  \tiny{
  Short term
  \begin{enumerate}
    \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
    \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
   \end{enumerate}
  }

   };


    \node[xshift=8cm,yshift=-3cm,draw,fill=white!25,ellipse,text width=5cm,align=center] 
 {
 \tiny{
      University
\begin{enumerate}

     \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
  \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
     \item DO 2  DO 2  DO 2  DO 2 DO 2 DO 2 Text
 \end{enumerate}
}

 };

 \end{tikzpicture}
  \end{frame}


  \end{document}   

答案1

像这样?

\documentclass[xcolor=table]{beamer}
\usetheme{CambridgeUS} 
\usepackage{tikz}
\usetikzlibrary{positioning,shapes.geometric}
\usepackage{amsmath}
\begin{document}

\begin{frame}[t]
\frametitle{Frame Title}

  \begin{tikzpicture}[font=\tiny,
    elli/.style={ellipse,text width=5cm,align=center,
        minimum height=4cm,inner xsep=-1em,inner ysep=-1em,draw}]
 \node[elli] (TL) {Short term
 \begin{itemize}
  \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
  \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
  \item DO 3  Text  DO 2 Text  DO 2 Text
  \item  DO 4 Text  DO 2 Text  DO 2 Text  DO 2 Text 

  \end{itemize}
  };
  \node[elli,right=-0.5cm of TL] (TR) {Short term
  \begin{itemize}
    \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
    \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
   \end{itemize}

   };
  \path (TL) -- (TR) node[elli,midway,below=0.8cm] (B) {University
    \begin{itemize}
     \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
     \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
     \item DO 2  DO 2  DO 2  DO 2 DO 2 DO 2 Text
  \end{itemize}};
\end{tikzpicture}
\end{frame}
\end{document}   

在此处输入图片描述

或者不进行调整,但使用交叉点。

\documentclass[xcolor=table]{beamer}
\usetheme{CambridgeUS} 
\usepackage{tikz}
\usetikzlibrary{positioning,shapes.geometric,intersections}
\usepackage{amsmath}
\begin{document}

\begin{frame}[t]
\frametitle{Frame Title}

  \begin{tikzpicture}[font=\tiny,
    elli/.style={ellipse,text width=5cm,align=center,
        minimum height=4cm,inner xsep=-1em,inner ysep=-1em,draw}]
 \node[elli,name path=L] (TL) {\textcolor{red}{\underline{\normalsize Short term}}
 \begin{itemize}
  \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
  \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
  \item DO 3  Text  DO 2 Text  DO 2 Text
  \item  DO 4 Text  DO 2 Text  DO 2 Text  DO 2 Text 

  \end{itemize}
  };
  \node[elli,right=-0.5cm of TL,name path=R] (TR)
  {\textcolor{red}{\underline{\normalsize Short term}}
  \begin{itemize}
    \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
    \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
   \end{itemize}

   };
  \path[name intersections={of=L and R}] (intersection-2) 
  node[elli,anchor=north] (B) {\textcolor{red}{\underline{\normalsize
  University}}
    \begin{itemize}
     \item DO 1  DO 1  DO 1  DO 1 DO 1 DO 1 Text
     \item DO 2 Text DO 2 Text  DO 2 Text DO 2 Text
     \item DO 2  DO 2  DO 2  DO 2 DO 2 DO 2 Text
  \end{itemize}};
\end{tikzpicture}
\end{frame}
\end{document}   

在此处输入图片描述

相关内容