PageWidth
Usage
• PageWidth 是输出流和单元的一个选项,指定文本每行所允许的宽度。
Notes
• 输出流和单元的可能设置是:
| "\!\(\*StyleBox[\"\\\"Infinity\\\"\", \"MR\"]\) " | 一个无限宽度没有分行 | | "\!\(\*StyleBox[\"\\\"n\\\"\", \"TI\"]\) " | 以印刷符号""给出的明确宽度 |
• SetOptions[stream, PageWidth -> val]重设对一个打开流允许的行宽度。 • 单元的可能设置是:
| "\!\(\*StyleBox[\"\\\"WindowWidth\\\"\", \"MR\"]\) " | 屏幕上窗口的宽度 | | "\!\(\*StyleBox[\"\\\"PaperWidth\\\"\", \"MR\"]\) " | 当输出时页的宽度 | | "\!\(\*StyleBox[\"\\\"n\\\"\", \"TI\"]\) " | 以打印机点给出的明确宽度 |
• PageWidth->WindowWidth 允许每行使用显示窗口的完全宽度,考虑CellMargins的设置。
Further Examples
This opens a stream, specifying that the page width is 20 characters.
In[1]:=
|
Out[1]=
|
This writes out an expression to the stream.
In[2]:=
|
This closes the stream.
In[3]:=
|
Out[3]=
|
The lines in the expression written out are all broken so as to be at most 20 characters.
In[4]:=
|
|