金发姑娘问题:
我想要一个在框图中看起来不错的积分符号和 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
答案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}