在行中的段落中过满的 \hbox1.38991pt 太宽,即使生成 PDF 也会发出 Latex 警告

问题描述

下面的乳胶代码有警告说“行中段落中的过满 \hBox(1.38991pt 太宽)”pdf 正在生成而没有任何问题,我试图找出我在看到该警告时到底犯了什么错误。我在两个乳胶代码中都加粗了我观察到的 /hBox 警告(即在乳胶代码 1 中:“\begin{document}”和在乳胶代码 2 中:“\end{框架}")

import tkinter
import tkinter.messageBox as message

windows = tkinter.Tk()
ready = message.askyesno("ready?")
#print(ready)
def func():
    e = tkinter.Entry(windows,bg="lightblue")
    e.pack()

if ready == False:
    windows.quit()
else:
    func()
windows.mainloop()
Latex code1:
**\begin{document}**
\setbeamertemplate{caption}[numbered]
\begin{frame}
\titlepage
\end{frame}
Latex code2:

解决方法

没有足够的空间来容纳 10 cm 的列列前后的默认填充。使用 @{}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}