alignmentstyle.hlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 108 行

HLP
108
字号
{smcl}
{* 01mar2005}{...}
{cmd:help alignmentstyle}
{hline}
{* index alignmentstyle it}{...}
{* index baseline tt}{...}
{* index bottom tt}{...}
{* index middle tt}{...}
{* index top tt}{...}

{title:Title}

{p2colset 5 27 29 2}{...}
{p2col :{hi:[G] {it:alignmentstyle}} {hline 2}}Choices for vertical alignment of text{p_end}
{p2colreset}{...}


{title:Syntax}

	{it:alignmentstyle}      description
	{hline 59}
	{cmd:baseline}            bottom of textbox = baseline of letters
	{cmd:bottom}              bottom of textbox = bottom of letters
	{cmd:middle}              middle of textbox = middle of letters
	{cmd:top}                 top of textbox    = top of letters
	{hline 59}

{pin}
Other {it:alignmentstyles} may be available; type

	    {cmd:.} {bf:{stata graph query alignmentstyle}}

{pin}
to obtain the full list installed on your computer.


{title:Description}

{pstd}
See {it:{help textbox_options}} for a description of textboxes.
{it:alignmentstyle} specifies how the text is vertically aligned in a
textbox.  Think of the textbox as being horizontal, even if it is vertical when
specifying this option.

{pstd}
{it:alignmentstyle} is specified inside options such as the
{cmd:alignment()} suboption of {cmd:title()}
(see {it:{help title_options}}):

{pin}
	{cmd:. graph} ...{cmd:, title("My title", alignment(}{it:alignmentstyle}{cmd:))} ...

{pstd}
In some cases, an {it:alignmentstylelist} is allowed.  An
{it:alignmentstylelist} is a sequence of {it:alignmentstyles} separated by
spaces.  Shorthands are allowed to make specifying the list easier; see 
{it:{help stylelists}}.


{title:Remarks}

{pstd}
Think of the text as being horizontal, even if it is not, and think of
the textbox as containing one line, such as

	{cmd:Hpqgxyz}

{pstd}
{cmd:alignment()} specifies how the bottom of the textbox aligns with the
bottom of the text.

{pstd}
{cmd:alignment(baseline)} specifies that the bottom of the textbox
be the baseline of the letters in the box.  That would result in something
like

	{cmd:....Hpqgxyz....}

{pstd}
where dots represent the bottom of the textbox.  Periods in most fonts are
located on the baseline of letters.  Note how the letters {cmd:p}, {cmd:q},
{cmd:g}, and {cmd:y} extend below the baseline.

{pstd}
{cmd:alignment(bottom)} specifies that the bottom of the textbox be
the bottom of the letters, which would be below the dots in the above example,
lining up with the lowest part of the {cmd:p}, {cmd:q}, {cmd:g} and {cmd:y}.

{pstd}
{cmd:alignment(middle)} specifies that the middle of the textbox line
up with the middle of a capital {cmd:H}.  This is useful when you want to
align text with a line.

{pstd}
{cmd:alignment(top)} specifies that the top of the textbox line up
with the top of a capital {cmd:H}.


{title:Also see}

{psee}
Manual:  {bf:[G] {it:alignmentstyle}}

{psee}
Online:  {it:{help textbox_options}};
{it:{help justificationstyle}}
{p_end}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?