封面中Overfull \hbox (5.32085pt too wide)怎么解决?

2020-12-07 23:15发布

## 编译环境 操作系统 * [10 ] Windows 7/8/10 Tex发行版 * [2020 ] TexLive `年份` ## 我的问题 编译时出现Overfull \hbox (5.320...

## 编译环境 操作系统 * [10 ] Windows 7/8/10 Tex发行版 * [2020 ] TexLive `年份` ## 我的问题 编译时出现Overfull \hbox (5.32085pt too wide)提醒,如何解决 以下给出MWE ①TeX文件 ``` \documentclass[forprint]{WHUBachelor} \begin{document} \miji{公开} \StudentNumber{20000000} \title{\LaTeX 测试MWE} \author{张三} \Csupervisor{李四} \Cmajor{王五} \Cschoolname{2020} \date{二〇二〇年十二月} \maketitle \end{document} ``` ②CLS文件 ``` \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{WHUBachelor}[2016/05/31 4.0 Wuhan University Thesis Template for Bachelor Degree] \LoadClass[zihao=-4,a4paper,oneside]{ctexbook} \setmainfont{Times New Roman} %------------------------ Page layout ---------------------------------- \RequirePackage{fancyhdr,hyperref} \RequirePackage[top=2truecm,bottom=2.2truecm,left=3truecm,right=3truecm,includefoot,xetex]{geometry} % 页面设置% \newtoks\StudentNumber %学号 \newtoks\miji %密级 \newtoks\Cmajor %学科专业中文名 \newtoks\Csupervisor %指导教师中文名 \newtoks\Cschoolname %学院中文名 \pagestyle{fancyplain} \fancyhf{} %清除以前对页眉页脚的设置 \renewcommand{\headrulewidth}{0pt} \fancyfoot[C]{-\,\thepage\,-} \fancypagestyle{plain} { \fancyhead{} % clear all header fields \renewcommand{\headrulewidth}{0pt} \fancyfoot{} % clear all footer fields \fancyfoot[C]{-\,\thepage\,-} } %%=====封面===================== \def\maketitle{% \null \thispagestyle{empty}% %\vspace*{-2cm} \begin{center}\leavevmode {\heiti \zihao{5}% \begin{tabular}{p{9cm}lp{3cm}l} & \raisebox{-0.5ex}[0pt]{\makebox[1.5cm][s]{学\hfill 号}} & {}\hfill\raisebox{-0.5ex}[0pt]{\the\StudentNumber}\hfill{} & \\ \cline{3-3} & \raisebox{-0.5ex}[0pt]{\makebox[1.5cm][s]{密\hfill 级}} & {}\hfill\raisebox{-0.5ex}[0pt]{\the\miji}\hfill{} & \\ \cline{3-3} \end{tabular} } \par \vspace*{2.1cm} %插入空白 {\kaishu \zihao{1} \makebox[10cm][s]{\LaTeX 测试MWE}}\\ \vspace{3.6cm} {\heiti \zihao{2} \@title \par}% % \vspace{4cm} \vfill\vfill\vfill {\songti\zihao{-3} \begin{tabular}{cp{5cm}c} \raisebox{-3ex}[0pt]{\makebox[3.5cm][s]{班\hfill\hfill\hfill 级:}} & { {}\raisebox{-3ex}[0pt]{\the\Cschoolname}\hfill{}} & \\[3ex] \raisebox{-3ex}[0pt]{\makebox[3.5cm][s]{学\hfill 科\hfill 名\hfill 称:}} & { {}\raisebox{-3ex}[0pt]{\the\Cmajor}\hfill{}} & \\[3ex] \raisebox{-3ex}[0pt]{\makebox[3.5cm][s]{学\hfill 生\hfill 姓\hfill 名:}} & { {}\raisebox{-3ex}[0pt]{\@author}\hfill{}} & \\[3ex] \raisebox{-3ex}[0pt]{\makebox[3.5cm][s]{指\hfill 导\hfill 教\hfill 师:}} & { {}\raisebox{-3ex}[0pt]{\the\Csupervisor}\hfill{}} & \\[3ex] \end{tabular} } \par \vspace{2.6cm} { {\songti \zihao{3} \@date \par}% } %\vspace*{-0.7cm} \end{center}% } \endinput ```