跳转到内容

The Wikibooks community is developing a policy on the use of generative AI. Please review the draft policy and provide feedback on its talk page.

TeX/ifvbox

来自,自由的教科书
< TeX

概要

[编辑 | 编辑源代码]
\ifvbox<0..255> <tex-code-1> [\else <tex-code-2>] \fi

描述

[编辑 | 编辑源代码]

\ifvbox 命令表示一个 if-then-else 控制结构 的开始,其中 <0..255> 必须扩展为 0 到 255 之间的整数。如果 盒子寄存器 \box<0..255> 包含一个 垂直盒子,则处理 <tex-code-1> 并忽略 <tex-code-2>(如果包含 \else 部分)。如果 \box<0..255> 不包含 垂直盒子,则忽略 <tex-code-1> 并处理 <tex-code-2>(如果包含 \else 部分)。

华夏公益教科书