前言
创作开始时间:2022年11月21日16:37:10
如题,解决一下latex编译时出现的错误:Illegal unit of measure (pt inserted).
原因分析及解决方案
其实原因说白了就是:
If you are specifying a length in LATEX, but do not specify the appropriate units, you will generate the error.
一开始百度查问题,根本查不出原因,后来换成Bing搜索引擎,直接第一个就是Overleaf上的解释。瞬间茅塞顿开。。。
我原来的代码是:
\begin{longtable}{M{0.5cm}M{3cm}M{1cm}M{2cm}M{2.5}M{2cm}M{1cm}}
原来是M{2.5}
搞的!
无语了
加上cm这个单位就可以了!
小结
以上,还是得合理使用搜索引擎。
创作结束时间:2022年11月21日16:39:41
参考文献
- Illegal unit of measure (pt inserted) https://www.overleaf.com/learn/latex/Errors/Illegal_unit_of_measure_(pt_inserted)