tikz 积分器块的“恰到好处”的积分符号

tikz 积分器块的“恰到好处”的积分符号

金发姑娘问题:

我想要一个在框图中看起来不错的积分符号和 dt;尺寸inline看起来太小,displaystyle尺寸看起来太大。有什么方法可以将其缩放到介于两者之间吗?

在此处输入图片描述

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shadows, positioning}
\begin{document}
\begin{tikzpicture}[node distance=5mm, auto, font=\sffamily,
       blockcolors/.style={
        % The rest
        thick,draw=black,
        top color=white,
        bottom color=black!10,
        font=\sffamily\small
    },
    blockheight/.style = {
        minimum height=10mm
    },
    block/.style={
        % The shape:
        rectangle, minimum size=6mm, minimum width=12mm,
        blockheight,
        node distance=5mm,
        blockcolors,
        drop shadow
    }
    ]
\node (int1) [block, label=below:too small]{$\int dt$};
\node (int2) [block, right=of int1, label=below:too big]{$\displaystyle\int dt$};
\node (int3) [block, right=of int2, label=below:just right]{???};
\end{tikzpicture}
\end{document}

答案1

\usepackage{nccmath}可以输入

$\medint\int dt$

在第三个框中,结果将是

在此处输入图片描述

金发姑娘在这里是错的:正确的那个在中间。

答案2

A\scalebox就足够了。

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shadows, positioning}
\begin{document}
\begin{tikzpicture}[node distance=5mm, auto, font=\sffamily,
       blockcolors/.style={
        % The rest
        thick,draw=black,
        top color=white,
        bottom color=black!10,
        font=\sffamily\small
    },
    blockheight/.style = {
        minimum height=10mm
    },
    block/.style={
        % The shape:
        rectangle, minimum size=6mm, minimum width=12mm,
        blockheight,
        node distance=5mm,
        blockcolors,
        drop shadow
    }
    ]
\node (int1) [block, label=below:too small]{$\int dt$};
\node (int2) [block, right=of int1, label=below:too big]{$\displaystyle\int dt$};
\node (int3) [block, right=of int2, label=below:just right]{$\scalebox{1.4}{$\int$}dt$};
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容