📄 textstyle.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help textstyle}
{hline}
{* index textstyle it}{...}
{title:Title}
{p2colset 5 22 24 2}{...}
{p2col :{hi:[G] {it:textstyle}} {hline 2}}Choices for the overall look of text{p_end}
{p2colreset}{...}
{title:Syntax}
{p2colset 8 25 28 8}{...}
{p2col:{it:textstyle}} description{p_end}
{p2line}
{p2col:{cmd:heading}}
large text suitable for headings; default used by {cmd:title()}{p_end}
{p2col:{cmd:subheading}}
medium text suitable for subheadings; default used by
{cmd:subtitle()}{p_end}
{p2col:{cmd:body}}
medium-sized text; default used by {cmd:caption()}{p_end}
{p2col:{cmd:small_body}}
small text; default used by {cmd:note()}{p_end}
{p2col:{cmd:axis_title}}
default for axis titles{p_end}
{p2col:{cmd:label}}
text suitable for labeling{p_end}
{p2col:{cmd:keylabel}}
default used to label keys in legends{p_end}
{p2col:{cmd:small_label}}
default used to label points{p_end}
{p2col:{cmd:ticklabel}}
default used to label major ticks{p_end}
{p2col:{cmd:minor_ticklabel}}
default used to label minor ticks{p_end}
{* p1-p15 intentionally not documented}{...}
{p2line}
{p2colreset}{...}
{pin}
Other {it:textstyles} may be available; type
{cmd:.} {bf:{stata graph query textboxstyle}} {it:(sic)}
{pin}
to obtain the complete list of {it:textstyles} installed on your computer.
The {it:textstyle} list is the same as the {it:textboxstyle} list.
{title:Description}
{pstd}
{it:textstyle} specifies the overall look of single lines of text.
{it:textstyle} is specified in options such as the marker-label option
{cmd:mltextstyle()} (see {it:{help marker_label_options}}):
{p 6 16 2}
{cmd:. twoway scatter}
...{cmd:, mlabel(...) mltextstyle(}{it:textstylelist}{cmd:)} ...
{pstd}
In the example above, a {it:textstylelist} is allowed. A {it:textstylelist}
is a sequence of {it:textstyles} separated by spaces. Shorthands are allowed
to make specifying the list easier; see {it:{help stylelists}}.
{pstd}
A {it:textstyle} is in fact a {it:textboxstyle}, but only a
subset of the attributes of the textbox matter; see
{it:{help textboxstyle}}.
{title:Remarks}
{pstd}
Remarks are presented under the headings
{help textstyle##remarks1:What is text?}
{help textstyle##remarks2:What is a textstyle?}
{help textstyle##remarks3:You do not need to specify a textstyle}
{help textstyle##remarks4:Relationship between textstyles and textboxstyles}
{marker remarks1}{...}
{title:What is text?}
{pstd}
Text is a single line of text.
{marker remarks2}{...}
{title:What is a textstyle?}
{pstd}
How text appears is defined by five attributes:
{phang2}
1. whether the text is vertical or horizontal;
see {it:{help orientationstyle}}
{phang2}
2. the size of the text;
see {it:{help textsizestyle}}
{phang2}
3. the color of the text;
see {it:{help colorstyle}}
{phang2}
4. whether the text is left-justified, centered, or right-justified;
see {it:{help justificationstyle}}
{phang2}
5. how the text aligns with the baseline;
see {it:{help alignmentstyle}}
{pstd}
The {it:textstyle} specifies these five attributes.
{marker remarks3}{...}
{title:You do not need to specify a textstyle}
{pstd}
The {it:textstyle} is specified in options such as
{cmd:mltextstyle(}{it:textstyle}{cmd:)}
{pstd}
Correspondingly, you will find other options are available for setting
each of the individual attributes above; see
{it:{help marker_label_options}}.
{pstd}
You specify the {it:textstyle} when a style exists that is exactly what
you desire or when another style would allow you to specify fewer
changes to obtain what you want.
{* index text and textboxes, relationship between}{...}
{marker remarks4}{...}
{title:Relationship between textstyles and textboxstyles}
{pstd}
{it:textstyles} are in fact a subset of the attributes of {it:textboxstyles};
see {it:{help textboxstyle}}. A textbox allows multiple lines, has
an optional border around it, has a background
color, and more. By comparison, text is just a line of
text, and {it:textstyle} is the overall style of that single line.
{pstd}
Most textual graphical elements are textboxes, but there are a few simple
graphical elements that are merely text, such as the marker labels mentioned
above. The {cmd:mltextstyle(}{it:textstyle}{cmd:)} option really should be
documented as {cmd:mltextstyle(}{it:textboxstyle}{cmd:)} because it is in fact
a {it:textboxstyle} that {cmd:mltextstyle()} accepts. When
{cmd:mltextstyle()} processes the {it:textboxstyle}, however, it looks only at
the five attributes listed above and ignores the other attributes
{it:textboxstyle} defines.
{title:Also see}
{psee}
Manual: {bf:[G] {it:textstyle}}
{psee}
Online:
{it:{help marker_label_options}},
{it:{help textboxstyle}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -