LaTeX 遇到各种小问题汇总
用tex模板写毕业论文,发现字数统计的好工具:texcount如果安装了完整的tex发行版,在命令行输入:$ texdoc texcount查看相关说明论文模板有多个文件用了\include,统计字数时找主文件:$ texcount thesis.tex -inc...
系统,Ubuntu 18.04LTS
1. 字数统计
用tex模板写毕业论文,发现字数统计的好工具:texcount
如果安装了完整的tex发行版,在命令行输入texdoc texcount
查看相关说明
论文模板有多个文件用了\include
,统计字数时找主文件:
$ texcount thesis.tex -merge
2. 去除目录页眉页脚
目录有多页时,去除每一页页眉页脚
\setcounter{page}{0}
\thispagestyle{empty}
\tableofcontents
\setcounter{page}{0}
\thispagestyle{empty}
\newpage
\setcounter{page}{1}
3. 字体设置
分别改变文本字体和数学字体,而不需要同时使用(参考pkuthss)
\usepackage[defaultsups]{newtxtext}
\usepackage[cmintegrals,varg]{newtxmath}
4. hyperref warning
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing '\xxx' on input line xxxx.
hyperref: takes the text for bookmarks from the arguments of commands like \section, which can
contain things like math, colors, or font changes, none of which will display in bookmarks as is.
\texorpdfstring{TEXstring}{PDFstring}
5. xeCJK warning
Package fontspec Warning: Font "FandolSong-Regular" does not contain requested (fontspec) Script "CJK".
虽然无伤大雅,但是还是不爽,解决方法就是不用xeCJK
,还是老实ctex
吧,复制windows字体到ubuntu,
\usepackage[fontset=windows]{ctex}
效果感觉不错
6. 图表标题放右侧
有些答案说floatrow
和浮动环境不兼容,minipage
是很好的办法
\begin{figure}[htbp]
\begin{minipage}[b]{.65\textwidth}
\includegraphics[width=\textwidth]{picture.eps}
\end{minipage}\hfill
\begin{minipage}[b]{.3\textwidth}
\caption{图像}
\end{minipage}
\end{figure}
更多推荐
所有评论(0)