크기 변경 원형 tikz 노드

크기 변경 원형 tikz 노드

나는 원의 크기를 줄이고 싶습니다. 즉, 원의 경계가 내부 방정식에 더 가까워지길 원합니다. 첨부된 코드에 있는 몇 가지 무료 매개변수를 가지고 실험해 보았지만 아무 일도 일어나지 않았습니다. 어떤 팁이 있나요?

\documentclass[8pt,dvipsnames]{beamer}
\usepackage{tikz}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usefonttheme{serif}
\usetikzlibrary{positioning}
\usepackage{import}
\usepackage{ragged2e}
\usepackage{tikz}

\usetheme{metropolis}
\usepackage{appendixnumberbeamer}

\usepackage{booktabs}
\usepackage[scale=2]{ccicons}

\usepackage{pgfplots}
\usepgfplotslibrary{dateplot}

\usepackage{xspace}
\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}



\setbeamertemplate{itemize items}{\textbullet}

\begin{document}

\begin{frame}[fragile]
\frametitle{What do we want to compute?}
    \begin{tikzpicture}[
    bigcircle/.style={ % style for the circles
        text width=2.8cm, %1.6cm % diameter
        align=center, % center align
        line width=2mm, % thickness of border
        draw, % draw the border
        circle, % shape
        font=\sffamily%\footnotesize % font of the year
    },
    desc/.style 2 args={ % style for the list nodes
        text width=3.2cm, % means the node will be kind of like a 4cm wide minipage, and if the
        font=\sffamily\small\RaggedRight, % set the font in the list
        label={[#1,yshift=-1.5ex,font=\sffamily]above:#2} % add the title as a label
    },
    desc/.style 2 args={ % style for the list nodes
        text width=3.2cm, % means the node will be kind of like a 4cm wide minipage, and if the
        font=\sffamily\small\RaggedRight, % set the font in the list
        label={[#1,yshift=-1.5ex,font=\sffamily]above:#2} % add the title as a label
    },
    node distance=10mm and 3mm % vertical and horizontal separation of nodes, when positioned with e.g. above=of othernode
    ]
\node [desc={olive}{Poisson problem}] (list1) {
};
\node [bigcircle,olive, below=0.1cm of list1] (circ1) {
    \small  \textcolor{black}{
    \begin{align*}
        -\Delta u = f,\quad&\text{in}\;\Omega,\\
        +\text{b.c.},\quad&\text{on}\;\Gamma.
\end{align*}}
}; 
\end{tikzpicture} 
\end{frame}

\end{document}

답변1

MWE의 컨텍스트를 알 수 없습니다. 이 예에서만 이 원을 사용하시겠습니까? 아니면 스타일 정의가 더 다양해야 합니까? 즉, 사용할 때마다 크기를 로컬로 조정할 수 있어야 합니까?

후자의 경우 노드 스타일을 다음과 같이 변경해야 합니다.

bigcircle/.style args = {#1/#2/#3}{% circle style
        circle,         % shape
        text width=#1,  % for locally determined diameter
        draw=#2,        % draw the border
        line width=2mm, % thickness of border
        align=center,   % for center align of text
        font=#3  % used font
                    },

노드의 코드를 다음과 같이 작성하십시오.

\node [bigcircle=2.4cm/olive/\small, 
       below=0.1cm of list1
       ] (circ1) 
{
\begin{align*}
    -\Delta u = f,\quad &\text{in}\;\Omega,\\
    +\text{b.c.},\quad  &\text{on}\;\Gamma.
\end{align*}
};

이 변경 사항은 다음과 같은 결과를 제공합니다.

여기에 이미지 설명을 입력하세요

관련 정보