【问题标题】:Overfull \hbox (1.38991pt too wide) in paragraph at lines, Latex warning even though PDF is getting generated在行中的段落中过满 \hbox(1.38991pt 太宽),即使正在生成 PDF 也会发出乳胶警告
【发布时间】:2021-01-20 12:53:36
【问题描述】:

下面的乳胶代码有警告说Overfull \hbox (1.38991pt too wide) in paragraph at lines; pdf正在生成没有任何问题,我试图找出我在哪里犯了错误以看到该警告。

乳胶代码1:

\begin{document}
\setbeamertemplate{caption}[numbered]
\begin{frame}
\titlepage
\end{frame}

乳胶代码2:

%\section{Literature Review}%
\begin{frame}{OBJECTIVE}
\begin{table}[h!]
    \centering
   
    \begin{tabular}{ p{3cm}|p{7cm}}
     \hline
     \vspace{1pt}
    Title & “CompaRob:The shopping cart assistance robot"  \textit{’ Int. J. Distrib. Sensor Netw., vol. 12,no. 2, Feb. 2016, Art. no. 4781280.} \\
     \hline
     \vspace{6mm}
     Methodology & 
     \begin{itemize}
         \item Radio and ultrasound signals
         \item Provide freedom of movements for elderly people
     \end{itemize}\\
     \hline
     \vspace{1pt}
    Demerit & 
    \begin{itemize}
        \item  Not able to show how to find a product
       
    \end{itemize}\\
     \hline
    \end{tabular}
    \end{table}
\end{frame} 

 

【问题讨论】:

  • 这是一个警告,而不是错误,这就是您获得 PDF 的原因。在 1.4pt 时,您可能需要仔细查看是否有一条太长的线,但对于更大的数字,您的线会向右延伸很远。滚动到 500 页的 pdf 来查找所有这些会非常麻烦,因此 LaTeX 会报告它们。通常你可以通过用不同的措辞来解决这个问题。如果您的表导致此问题,请尝试使用较小的列。或者调整页面边框(参见几何包)。
  • @Robert 不要使用几何命令来调整投影仪文档中的边距。 beamer 有自己的接口
  • @Robert 而且对于大多数非灾难性错误,您仍然会得到一个 pdf,这不是一个好的论点
  • @samcarter_is_at_topanswers.xyz 是的,我只是在解释为什么你得到一个 PDF,而你也得到了一些看起来像错误的东西。这不是支持或反对任何事情的论据。

标签: latex tex pdflatex


【解决方案1】:

没有足够的空间容纳 10 厘米的列列之前和之后的默认填充。使用@{}p{2.9cm}|p{7cm}@{} 删除填充或使列更小:

\documentclass{beamer}

\begin{document}
\setbeamertemplate{caption}[numbered]
\begin{frame}
\titlepage
\end{frame}


%\section{Literature Review}%
\begin{frame}{OBJECTIVE}
\begin{table}[h!]
    \centering
   
    \begin{tabular}{ p{2.9cm}|p{7cm}}
     \hline
     \vspace{1pt}
    Title & “CompaRob:The shopping cart assistance robot"  \textit{’ Int. J. Distrib. Sensor Netw., vol. 12,no. 2, Feb. 2016, Art. no. 4781280.} \\
     \hline
     \vspace{6mm}
     Methodology & 
     \begin{itemize}
         \item Radio and ultrasound signals
         \item Provide freedom of movements for elderly people
     \end{itemize}\\
     \hline
     \vspace{1pt}
    Demerit & 
    \begin{itemize}
        \item  Not able to show how to find a product
       
    \end{itemize}\\
     \hline
    \end{tabular}
    \end{table}
\end{frame}

 


\end{document}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-02-18
    • 2018-12-28
    • 1970-01-01
    • 1970-01-01
    • 2014-01-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多