Preface
由于要改冬令营的论文,想着$\LaTeX$这回得好好做下排版了,于是便开始搜索模板。
CVPR模板
在查找模板的过程当中,几经波折。由于我是用的是WSL[Ubuntu],之前太懒没有装Windows下的TeXLive而且也懒得再倒腾,WSL中的TeX中文环境也只适配了XeTeX,所以这些都成为了找米板路上的阻碍。
最后,在Overleaf上找到了2018年的CVPR模板,如下:https://www.overleaf.com/latex/templates/cvpr-2018-template/qgmrfntfbqns
要使用的话直接复制所有的文件自己创建然后编译就行。
关于此模板的Bug
今天由于我需要使用tikz宏包画流程图,然而一include就会编译过不了,于是借助万能的互联网,找到了如下的解决方案:https://tex.stackexchange.com/questions/373873/sharelatex-cvpr-template-not-compiling-tikz
That template looks pretty horribly broken. The
eso-pic.styfile isn't actually the real file. It's hacked to\input{cvpr_eso.sty}rather than\RequirePackage{atbeginshi}at least. Butcvpr_eso.styappears to actually beeveryshi.To fix it, delete
cvpr_eso.styandeso-pic.sty. Now everything should compile with\usepackage{tikz}.Other bad things about that template:
- The
epsfigpackage should not be used;graphicxreplaces it.- The
timespackage should probably not be used. Usemathptmxinstead.
所以,只需删除cvpr_eso.sty和eso-pic.sty,然后不建议使用epsfig和times宏包即可。