
직사각형으로 쉽게 가능하기 때문에 타원을 (그림처럼) 두 부분으로 분할하려고 시도했지만 동일하게 작동하지 않는 것 같은데 어떻게 할 수 있습니까? (내가 시도한 코드 아래)
splitEllipse/.style={
ellipse split,
draw,
shape aspect=2,
inner sep=2pt,
text centered,
fill=blue!10!white,
font=\itshape
}
splitEllipse/.style={
ellipse split part=2,
draw,
shape aspect=2,
inner sep=2pt,
text centered,
fill=blue!10!white,
font=\itshape
}
이 코드 중 어느 것도 작동하지 않습니다.
답변1
일부 옵션이 해당 모양에 작동하지 않습니다 ellipse split
.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\tikzset{
splitEllipse/.style={draw, fill=blue!10!white, shape=ellipse split, align=center, minimum width=6cm, inner sep=2pt}
}
\begin{document}
\begin{tikzpicture}
\node[splitEllipse]{upper text\nodepart{lower}lower text\\second line};
\end{tikzpicture}
\end{document}