目录
9、(中文)图/表目录里标题过长,如何将正文里图/表标题和图/表目录里的标题设置成不同
10、(中文)修改图/表标题编号格式 “1.1” 改为 “1-1”
1、公式太长,但又实在没办法换行
\resizebox{.9\hsize}{!}{公式}
latex - Scale an equation to fit exact page width - Stack Overflow
\begin{equation}
\resizebox{.9\hsize}{!}{$A+B+C+D+E+F+G+H+I+J+K+L+M+N+O+P+Q+R+S+T+U+V+W+X+Y+Z$}
\end{equation}
2、算法 / 伪代码 中的注释
How do I add comments on an algorithm environment in LaTeX? - Stack Overflow
引入包
\usepackage[noend]{algpseudocode}
\algrenewcommand{\algorithmiccomment}[1]{\hfill// #1}
\State $temp \gets temp * 2$ \algorithmiccomment{Multiplication}
3、设置有序列表的格式:1. -> (1)
numbering - How to change enumerate item from 1. to (1)? - TeX - LaTeX Stack Exchange
不需要引入其他包,用这个命令即可:
\renewcommand\labelenumi{(\theenumi)}
示例:
\documentclass{article}
\begin{document}
\begingroup
\renewcommand\labelenumi{(\theenumi)}
\begin{enumerate}
\item A first item. \label{item:1}
\item A second item. \label{item:2}
\end{enumerate}
\endgroup
\noindent
Here are some cross-references to items \ref{item:1} and \ref{item:2}.
\end{document}
效果:
4、LaTex 中输入空格以及换行
LaTex中输入空格以及换行_橘子甜不甜的博客-CSDN博客_latex换行
5、设置行距
我一定要总结一下Latex了!_Clifnich的博客-CSDN博客_\linespread
6、表目录& 图目录
LaTeX 中表格和图片的目录_latex listoffigures_Xovee的博客-CSDN博客
\listoffigures
\listoftables
7、(中文)图/表目录的编号前加一个“图”字
Latex论文中取消图表目录不同章间的大间隔_\listoffigures_努力学习加油淦的博客-CSDN博客
8、(中文)图/表目录缩小大章节标题之间的距离
Latex论文中取消图表目录不同章间的大间隔_\listoffigures_努力学习加油淦的博客-CSDN博客
9、(中文)图/表目录里标题过长,如何将正文里图/表标题和图/表目录里的标题设置成不同
change caption in list of tables - TeX - LaTeX Stack Exchange
\caption[图/表目录里的标题]{正文里的图/表标题}
10、(中文)修改图/表标题编号格式 “1.1” 改为 “1-1”
Latex 图注设置(图1:改为图1-1)_latex图注_狼逍豪的博客-CSDN博客
\renewcommand{\thetable}{\thechapter{}-\arabic{table}}
\renewcommand{\thefigure}{\thechapter{}-\arabic{figure}}
11、设置表格内字体尺寸
fontsize - Change font inside document to specific point size - TeX - LaTeX Stack Exchange
\fontsize{9}{11}\selectfont
其中,9 是指字体大小:9pt,对应小五号字体;11 是指行间距
\begin{table}
\centering\fontsize{9}{11}\selectfont
\begin{tabular}{*3{l}}
Word & Word & Word\\
Word & Word & Word\\
Word & Word & Word\\
\end{tabular}
\caption{My table}
\end{table}
12、解决双栏图片自动跑到下一页的问题
Latex 图像总是出现在目标页的下一页置顶_双栏latex如何使图片不在页头_wzg2016的博客-CSDN博客
\usepackage{stfloats}
13、换行顶格、不缩进
在段落前加上如下命令即可:
\noindent