提高tikz包的产量

问题描述 投票:0回答:1
$F_1(g)=\left\{ 
\begin{tikzpicture}
\node[shape=circle,draw=black] (A) {$b^1_0$}; 
\end{tikzpicture} \right\}$

执行此代码,我有一个像这样的Output输出

我想要更多地集中在括号中,比如我还在写作而不是画画。

latex tikz
1个回答
2
投票

您必须将图片的基线更改为其中心,然后将该基线与文本的垂直中心对齐。这可以通过选项[baseline={([yshift=-.8ex]current bounding box.center)}]完成。我将它添加到您给出的示例代码中,并将inner sepcircle更改为0pt。如果这对您有用,请告诉我。

$F_1(g)=\left\{ 
\begin{tikzpicture}[baseline={([yshift=-.8ex]current bounding box.center)}]
\node[shape=circle,draw=black, inner sep=0pt] (A) {$b^1_0$}; 
\end{tikzpicture} \right\}$

\end{document}
© www.soinside.com 2019 - 2024. All rights reserved.