LaTeXStudio
LaTeXStudio
这家伙很懒,什么也没写!

注册于 4年前

回答
467
文章
291
关注者
196

这都是细节照顾的问题了 TeX 里面的字符的深度要考虑的,比如 p 下身长这样的情况。实在不喜欢,自己定义 amsmath 提供了 \genfrac 可以自己定义适合自己的样式。

去看 caption 的说明如下:
image.png

代码可以这样写了:

\DeclareCaptionFont{fsong}{\fangsong}
\captionsetup{font={small,fsong}}

可以的 仔细看他的代码 除掉 macrocode 就是说明的部分了。
没必要折腾,直接编译就好了。

无解的问题,需要学习下 XeCJK 的中文支持,以前的文件需要更新中文支持方式。

图片上传的时候,确定生成链接了,再提交,有时网络抖动上传比较慢,一般都是比较快的。

这是一个常见设置:

\documentclass{ctexbook} 
\ctexset{ 
section = {
number=\arabic{section},
format=\raggedright\bfseries\heiti\zihao{4},numberformat =\rmfamily,
beforeskip={2ex},
afterskip={2ex plus 3pt minus 3pt}
},
subsection = {
format=\raggedright\bfseries\heiti\zihao{-4},numberformat =\rmfamily,
beforeskip={2ex},
afterskip={2ex plus 3pt minus 3pt}
},}
\begin{document}

\section{A A AAA}

\section{BBBBB BB}

\section{CCC CCC}

\end{document} 

用 tabularx 即可,参考代码,如果用 Y 参数就是居中对齐,如果是 X 参数就是左对齐,自己选择吧:

\documentclass{ctexart}
\usepackage{amsmath}
\usepackage{array,tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\begin{document}
\begin{tabularx}{10cm}{YYYYYYY}
\hline
$n$&$ 1$&$ 2$&$ 3$&$4$&5&6\\
\hline
$Na^{\scriptscriptstyle{+} }$&$3$&$4$&$ 5$&$6$&6&7\\
$K^{\scriptscriptstyle{+}}$&$2$&$4$&$5$&$7$&7. 2&8\\
$Ca^{\scriptscriptstyle{2+}}$&$9$&$10$&$10.5$&$11.2$&11.5&11.9\\
\hline
\end{tabularx}
\end{document}

效果:
image.png

推荐的方法:

\usepackage{tocloft}


\newlength\mylena
\settowidth\mylena{Figure}
\addtolength\cftfignumwidth{\mylena}
\renewcommand\cftfigpresnum{\figurename\space}

image.png

宏包 overpic 参看这里:http://www.ctex.org/documents/latex/graphics/node56.html
新版本的 overpic 环境命令有所变化,看看最新的文档说明。

发布
问题