Latex 新手求助
  • 板块学术版
  • 楼主Penguin_Master
  • 当前回复3
  • 已保存回复3
  • 发布时间2023/1/13 20:52
  • 上次更新2023/10/24 04:22:58
查看原帖
Latex 新手求助
505254
Penguin_Master楼主2023/1/13 20:52

我想让表格居中,但是它寄了,而且还强制换行,能否有大佬解答。

源码:

\documentclass[UTF8]{ctexart}
\author{\Large XXX}
\title{\Huge XXX}
\begin{document}
    \maketitle
    \begin{table}
        \centering
        \Large \begin{tabular}{|c|c|c|c|c|}
            \hline
            题目名称 & 我的题目 & 我的题目 & 我的题目 & 我的题目 \\
            \hline
            题目类型 & 传统型 & 传统型 & 传统型 & 传统型 \\
            \hline
            目录 & \textbf{sing} & \textbf{run} & \textbf{gofast} & \textbf{runaway}\\
            \hline
            可执行文件名 & \textbf{sing} & \textbf{run} & \textbf{gofast} & \textbf{runaway}\\
            \hline
            输入文件名 & \textbf{sing.in} & \textbf{run.in} & \textbf{gofast.in} & \textbf{runaway.in}\\
            \hline
            输出文件名 & \textbf{sing.out} & \textbf{run.out} & \textbf{gofast.out} & \textbf{runaway.out}\\
            \hline
            每个测试点时限 & 1.0 秒 & 1.0 秒 & 1.0 秒 & 1.0 秒\\
            \hline
            内存限制 & 512 MiB & 512 MiB & 512 MiB & 512 MiB\\
            \hline
            子任务数目 & 20 & 20 & 20 & 20\\
            \hline
            子任务是否等分 & 是 & 是 & 是 & 是\\
            \hline
            结果比较方式 & 全文比较 & 全文比较 & 全文比较 & 全文比较\\
            \hline
        \end{tabular}
    \end{table}
\end{document}

效果:

2023/1/13 20:52
加载中...