打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
\vspace vs. \vskip

At any point in its processing, TeX is in some mode. There are six modes, divided in threecategories:

  1. horizontal mode and restricted horizontal mode,
  2. vertical mode and internal vertical mode, and
  3. math mode and display math mode.

When not typesetting mathematics, TeX is in horizontal or vertical mode.Horizontal mode is typically used to make lines of text; vertical mode is typically used to stack the lines of a paragraph on top of each other.

\vskip inserts a glue in a vertical list of the lines. Therefore \vskip breaks the horizontal mode and goes to the vertical mode.

\vspace can work in horizontal mode and vertical mode.In horizontal mode \vspace 1mm is equivalent to \vadjust{\vskip 1mm \vskip 0pt} and inserts a space after the current line.In vertical mode \vspace 1mm is equivalent to \vskip 1mm \vskip 0pt

\vskip 0pt is needed so \removelastskip can not remove your vertical space.

Full definition:

\vspace : -> \@ifstar \@vspacer \@vspace 

Without * case (\vspace 1mm):

\@vspace: #1->\ifvmode \vskip #1 \vskip \z@skip \else \@bsphack \vadjust {\@restorepar \vskip #1 \vskip \z@skip }\@esphack \fi 

Note \z@skip equal to 0pt, \@bsphack is needed to save big horizontal space after period.\@esphack is needed to return big space settings.

With * case (\vspace* 1mm):

\@vspacer:#1->\ifvmode \dimen@ \prevdepth \hrule \@height \z@ \nobreak \vskip #1 \vskip \z@skip \prevdepth \dimen@ \else \@bsphack \vadjust {\@restorepar \hrule     @height \z@ \nobreak \vskip #1 \vskip \z@skip }\@esphack \fi 
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
用OpenCV和OCR识别图片中的表格数据 !OpenCV简直太强大了!
Drawing horizontal and vertical gridlines
VGA(摘自FPGA4fun)
CRT/LCD/VGA Information and Timing
pdfplumber说明文档翻译
基于OpenCV的表格文本内容提取
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服