Tikz:如何美观的实现图片中的效果?

Tikz:如何美观的实现图片中的效果?

我想要实现的目标:

我想要实现什么

我的代码:

\documentclass{article}

\usepackage{tikz}

\begin{document}

    \centering
    \begin{tikzpicture}[thick]
        \draw (-1,0) rectangle (16,10);
        \draw (10,5) circle (5);
        \draw (5,5) circle (5);
        \node at (14,9.5) {$\Omega$};
        \linespread{1.5} % 
        \node at (2.5,5) {\shortstack{the day\\went out to\\an ice-cream, we said\\just let our silence melt\\the air as we walked across the\\our love never tiring}};
        \node at (12.5,5) {\shortstack{should\\talked it over but\\ever seems to get\\your fat head.You are too\\and l wish we had never met\\and l$^{,}$d married Tim instead}};
        \node at (7.5,5) {\shortstack{we\\have\\nothing\\in\\common}};
    \end{tikzpicture}

\end{document}

效果不理想: 我的代码

希望图片可以更好的把握相对距离,让画面更加美观。

因为这是一本诗歌和数学的合集,所以我希望相应的结构特征能够更加明显。

感谢您的帮助!

答案1

您可以尝试一下。对齐文本是关键。但我没能像您在示例中展示的那样将对齐方式弯曲到曲线周围。

\documentclass{standalone}
\usepackage{standalone}

\usepackage{tikz}

\begin{document}

    \centering
    \begin{tikzpicture}[thick]
        \draw (-1,1) rectangle (16,9);
        \draw (11,5) ellipse (5 and 4);
        \draw (4,5) ellipse (5 and 4);
        \node at (15,8.5) {$\Omega$};
        \linespread{1.5} % 
        \node[align = right] at (3.4,5) {the day\\went out to\\an ice-cream, we said\\just let our silence melt\\the air as we walked across the\\our love never tiring};
        \node[align = left] at (11.6,5) {should\\talked it over but\\ever seems to get\\your fat head.You are too\\and l wish we had never met\\and l$^{,}$d married Tim instead};
        \node[align = center] at (7.5,5) {we\\have\\nothing\\in\\common};
    \end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容