LaTeX Spaces and Boxes
程序员文章站
2022-03-09 09:36:21
...
\makebox, \mbox
\makebox[width][position]{text}
\mbox {text}
The \makebox command creates a box to contain the text specified. The width of the box is specified by the optional width argument. The position of the text within the box is determined by the optional position argument.
c - centered (default)
l - flushleft
r - flushright
The \mbox command creates a box just wide enough to hold the text created by its argument.
\raisebox
\raisebox{distance}[extend-above][extend-below]{text}
The \raisebox command is used to raise or lower text. The first mandatory argument specifies how high the text is to be raised (or lowered if it is a negative amount). The text itself is processed in LR mode.
Sometimes it's useful to make LaTeX think something has a different size than it really does - or a different size than LaTeX would normally think it has. The \raisebox command lets you tell LaTeX how tall it is.
The first optional argument, extend-above, makes LaTeX think that the text extends above the line by the amount specified. The second optional argument, extend-below, makes LaTeX think that the text extends below the line by the amount specified.
下一篇: JAVA上转型、下转型
推荐阅读
-
Linux折腾记(十五):再来说说LaTeX排版引擎
-
Linux折腾记(十四):优秀的文本化编辑思想大碰撞(Markdown、LaTeX、MathJax)
-
change Eclipse to use spaces instead of tabs?
-
windows下安装使用LaTeX编辑器
-
强化学习(六) - 连续空间中的强化学习(RL in Continuous Spaces)及相关实例
-
Texmaker使用方法、Latex的优缺点详细介绍
-
LaTex如何设置表格列宽以及居中格式
-
bootstrap + simple_form 的 check_boxes inline样式
-
bootstrap + simple_form 的 check_boxes inline样式
-
python使用bat批处理简单方式(latex编译文件,dvipng 将dvi文件转为png)