微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在LateX中使文本看起来像

如何解决如何在LateX中使文本看起来像

我需要使图片上的线条与图片中的线条完全相同。 How it has to be

这是我的代码

\begin{figure}[h]
    \centering
    \captionof{table}{} \label{tab:table 1}
    %I think that the line must be here
    \begin{center}
        \begin{tabular}{|c||c|c|c|c||c|}
            \hline
            Level & Trial & Mod. & Time & Prop. & Tot.\\
            \hline
            2 & 478 & 2 & 1h 19m & 3/5 & 16\\
            3 & 408 & 1 & 1h 04m & 2/5 & 12\\
            4 & 400 & 2 & 1h 00m & 3/5 & 14\\
            5 & 7531 & 3 & 17h 52m & 2/5 & 6\\
            6 & 402 & 1 & 0h 50m & 3/5 & 11\\
            \hline
            av. & 1843 & 1.6 & 4h 25m & 2.4/5 & 11.8\\
            av2 & 422 & 1.5 & 1h 3m & 2.75/5 & 13.25\\
            \hline
        \end{tabular}
    \end{center}
\end{figure}

它看起来像这样:My compiled picture

谢谢您的帮助!

解决方法

与您面对的工作代码的第一个建议:

\documentclass{article}

\begin{document}

\begin{table}[htbp]
  \caption{Curation analysis for \emph{Let it snow} levels 2 to 6}
  \label{tab:tab1}
  \centering
  \begin{tabular}{|c||c|c|c|c||c|}
    \hline
    Level & Trial & Mod. & Time & Prop. & Tot.\\
    \hline
    2 & 478 & 2 & 1h 19m & 3/5 & 16\\
    3 & 408 & 1 & 1h 04m & 2/5 & 12\\
    4 & 400 & 2 & 1h 00m & 3/5 & 14\\
    5 & 7531 & 3 & 17h 52m & 2/5 & 6\\
    6 & 402 & 1 & 0h 50m & 3/5 & 11\\
    \hline
    av. & 1843 & 1.6 & 4h 25m & 2.4/5 & 11.8\\
    av2 & 422 & 1.5 & 1h 3m & 2.75/5 & 13.25\\
    \hline
  \end{tabular}
\end{table}

\end{document}
,

您应该考虑删除图形和中心环境,而改用表格环境。您将以正确的方式获得相同的结果。就问题而言,不确定您具体想要什么,我假设您要在其下方添加字幕,在这种情况下,将选项标签ep = newline添加到字幕包中,如文档http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/caption/caption-eng.pdf所示。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。