tabularray的tblr环境中插图如何其余单元格垂直居中?

发布于 2023-06-29 21:37:53

begin{tblr}{%

            hlines,
            vlines,
            rowspec={X[2]X[2]X[2,m]X[1]X[1]},
            colspec={Q[c,m]Q[c,m]Q[c,m]Q[c,m]Q[c,m]},
            cells={c}
        }
        焦点位置&图形&标准方程&焦点坐标&准线方程\\
        焦点在$x$正半轴上&\begin{tikzpicture} [scale=0.3,line width=1pt,line join=round,me]
            \draw[->](-2,0)--(3,0)node [xshift=-3pt,yshift=-5pt]{$ x $};
            \draw [->](0,-3.5)--(0,3.5)node[xshift=-5pt,yshift=-3pt]{$ y $};
            \coordinate(O)at (0,0);
            \node at (O)[xshift=-0.2cm,yshift=-0.2cm]{$ O $};
            \tkzDefPoints{1/0/F,-1/3/R,-1/-3/S}
            \tkzDrawPoints(F)
            \tkzDrawSegments[line width=1pt](R,S)
            \draw[color=cyan] plot [samples=200,domain=-3:3]({(\x)^2/4},\x);
            \node at (F)[shift={(-90:7pt)}]{$F$};
            \node at (R)[shift={(-180:8pt)}]{$l$};
        \end{tikzpicture}&$y^2=2px(p>0)$&$(\frac{p}{2},0)$&$x=-\frac{p}{2}$\\
        焦点在$x$负半轴上&\begin{tikzpicture} [scale=0.3,line width=1pt,line join=round,me]
            \draw[->](-3,0)--(2,0)node [xshift=-3pt,yshift=-5pt]{$ x $};
            \draw [->](0,-3.5)--(0,3.5)node[xshift=-5pt,yshift=-3pt]{$ y $};
            \coordinate(O)at (0,0);
            \node at (O)[xshift=0.2cm,yshift=-0.2cm]{$ O $};
            \tkzDefPoints{-1/0/F,1/3/R,1/-3/S}
            \tkzDrawPoints(F)
            \tkzDrawSegments[line width=1pt](R,S)
            \draw[color=cyan] plot [samples=200,domain=-3:3]({-(\x)^2/4},\x);
            \node at (F)[shift={(-90:7pt)}]{$F$};
            \node at (R)[shift={(0:8pt)}]{$l$};
        \end{tikzpicture}&$y^2=-2px(p>0)$&$(-\frac{p}{2},0)$&$x=\frac{p}{2}$\\
        焦点在$y$正半轴上&\begin{tikzpicture} [scale=0.4,line width=1pt,line join=round,me]
            \draw[->](-3.5,0)--(3.5,0)node [xshift=-3pt,yshift=-5pt]{$ x $};
            \draw [->](0,-2)--(0,3)node[xshift=-5pt,yshift=-3pt]{$ y $};
            \coordinate(O)at (0,0);
            \node at (O)[xshift=-0.2cm,yshift=-0.2cm]{$ O $};
            \tkzDefPoints{0/1/F,-3/-1/R,3/-1/S}
            \tkzDrawPoints(F)
            \tkzDrawSegments[line width=1pt](R,S)
            \draw[color=cyan] plot [samples=200,domain=-3:3](\x,{(\x)^2/4});
            \node at (F)[shift={(0:7pt)}]{$F$};
            \node at (R)[shift={(-180:8pt)}]{$l$};
        \end{tikzpicture}&$x^2=2py(p>0)$&$(0,\frac{p}{2})$&$y=-\frac{p}{2}$\\
        焦点在$y$负半轴上&\begin{tikzpicture} [scale=0.4,line width=1pt,line join=round,me]
            \draw[->](-3.5,0)--(3.5,0)node [xshift=-3pt,yshift=-5pt]{$ x $};
            \draw [->](0,-2)--(0,3)node[xshift=-5pt,yshift=-3pt]{$ y $};
            \coordinate(O)at (0,0);
            \node at (O)[xshift=0.2cm,yshift=0.2cm]{$ O $};
            \tkzDefPoints{0/-1/F,-3/1/R,3/1/S}
            \tkzDrawPoints(F)
            \tkzDrawSegments[line width=1pt](R,S)
            \draw[color=cyan] plot [samples=200,domain=-3:3](\x,{-(\x)^2/4});
            \node at (F)[shift={(0:7pt)}]{$F$};
            \node at (R)[shift={(-180:8pt)}]{$l$};
        \end{tikzpicture}&$x^2=-2py(p>0)$&$(0,-\frac{p}{2})$&$y=\frac{p}{2}$\\    
    \end{tblr}

查看更多

关注者
0
被浏览
491
2 个回答
Beatrice
Beatrice 2023-06-30
这家伙很懒,什么也没写!

pgfmanual.pdf里Ctrl+F/tikz/baseline

寄存器
寄存器 2023-07-06
这家伙很懒,什么也没写!

在原仓库的Discussios里有相关讨论:
graphics and tblr #47

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览