()

\line命令中为何要用圆括号?[]是可选参数,{}是必选参数,()表示什么参数

发布于 2021-06-11 14:47:30
关注者
0
被浏览
1.2k
 個亼滴兲箜
個亼滴兲箜 2021-06-11
这家伙很懒,什么也没写!

MWE 为

\documentclass{article}
\begin{document}
\line(1,0){50}
\line(0,1){50}
\end{document}

用法为

\line(x_run,y_rise){travel}

详见 texdoc latex2e sec 8.19.5.

2 个回答
寄存器
寄存器 2021-06-11
这家伙很懒,什么也没写!

为什么要想当然呢? 这本就是\line的语法。

\line(x-slope,y-slope){length}

The \line command draws a line of the specified length and slope.

The slope is determined by (x-slope,y-slope) which are signed integers of magnitude less than or equal to 6 and which have no common divisor except for plus or minus one; For example (1,0) is a horizontal line; (1,1) gives a slope of 45 degress; (0,1) is a vertical line; (-1,1) is 135 degrees.

The horizontal extent of the line is given by the length parameter, except in the case of a vertical line in which case length specifies the vertical height.

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览