Latex表格居中但左边留出空白
发布网友
发布时间:2022-04-26 00:15
我来回答
共1个回答
热心网友
时间:2023-10-22 01:09
这很好解决啊加载caption宏包,两边加parbox就可以了。宽度你自己调整。给你一个例子:
\documentclass{article}
\usepackage{caption}
\begin{document}
\begin{table}
\captionsetup{format=plain,labelsep=space,justification=raggedright,singlelinecheck=off,labelfont=bf,tablewithin=none}
\parbox{.4\textwidth}{\caption{This is a test for table caption if we want to show caption on the leftside of the table. And this table caption can be extremely long}}
\hspace{\fill}
\parbox{.5\textwidth}{
\centering
\begin{tabular}{||*{5}{l|}|}
A & B & C & D & E \\
F & G & H & I & J
\end{tabular}}
\end{table}
\end{document}