![longtable 中同一列的对齐方式不同](https://linux22.com/image/272200/longtable%20%E4%B8%AD%E5%90%8C%E4%B8%80%E5%88%97%E7%9A%84%E5%AF%B9%E9%BD%90%E6%96%B9%E5%BC%8F%E4%B8%8D%E5%90%8C.png)
我有一张长桌,上面有这一排
\begin{center}
\renewcommand{\arraystretch}{1.75}
\begin{longtable}{c|c|c}
...
$x^\alpha$ & $\frac{x^{\alpha+1}}{\alpha+1}+c$ & \multicolumn{1}{l}{$\left\{\begin{tabular}{@{\ }l@{}} 1 \\ 2 \\ 3
\end{tabular}\right.$} \\ \hline
...
\end{longtable}
\end{center}
我需要将括号放在列的左侧,但我希望将 1、2、3 放在列的中间。该怎么做?
谢谢你!
答案1
一种可能性是:
\documentclass{report}
\usepackage{longtable}
\newcommand\MyBrace[1]{%
\makebox[0pt][l]{$\left\lbrace\vphantom{#1}\right.$}\hfill$#1$\hfill\null}
\begin{document}
\begin{longtable}{c|c|c}
...
$x^\alpha$ & $\frac{x^{\alpha+1}}{\alpha+1}+c$ & \MyBrace{\begin{tabular}{@{\ }c@{}} 1 \\ 2 \\ 3 \\ 4
\end{tabular}} \\ \hline
a & b & some text and some other text
\end{longtable}
\end{document}