我正在制作一个居中表格,但希望最左侧列的标题左对齐而不是居中。
前言:
\documentclass[11pt]{article}
\usepackage{indentfirst}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
Table code:
\begin{table}[ht]
\caption{Regression standard errors} % title of Table
\centering % used for centering table
\begin{tabular}{c c c c c} % centered columns (4 columns)
\hline\hline %inserts double horizontal lines
Confidence Interval & N=10 & N=30 & N=100 & N=500 \\ [0.5ex] % inserts table
%heading
\hline % inserts single horizontal line
Asymptotic & \% & \% & \% & \% \\
Efron & \% & \% & \% & \% \\
Hall & \% & \% & \% & \% \\
Percentile-t & \% & \% & \% & \% \\
Symmetric percentile-t & \% & \% & \% & \% \\ [1ex] % [1ex] adds vertical space
\hline %inserts single line
\end{tabular}
\label{table:nonlin} % is used to refer this table in the text
\end{table}
答案1
l
如果希望左列的所有单元格都左对齐,请使用(ell)列说明符:
\begin{tabular}{l c c c c} % centered columns (4 columns)
如果只需要将一个单元格条目左对齐,请使用\multicolumn
\begin{tabular}{c c c c c} % centered columns (4 columns)
.
.
.
\multicolumn{1}{l}{Confidence Interval}