亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? unx25.htm

?? Unix Unleashed, Third Edition is written with the power user and system administrator in mind. This
?? HTM
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<HTML>

<HEAD>

<TITLE>UNIX Unleashed unx25.htm</TITLE>

<LINK REL="ToC" HREF="index.htm">

<LINK REL="Next" HREF="unx26.htm">

<LINK REL="Previous" HREF="unx24.htm"></HEAD>

<BODY TEXT="#000000" LINK="#0000FF" VLINK="#800080" bgcolor=white>

<P><A HREF="unx24.htm"><IMG SRC="bluprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Previous Page"></A>

<A HREF="index.htm"><IMG SRC="blutoc.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="TOC"></A>

<A HREF="unx26.htm"><IMG SRC="blunext.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Next Page"></A>

<A HREF="index.htm"><IMG SRC="bluprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Home"></A>

</P><UL>

<UL>

<LI>

<A HREF="#I1">25 &#151; Drawing Pictures with pic</A></LI>

<UL>

<UL>

<UL>

<LI>

<A HREF="#I3">By Susan Peppard</A></LI></UL></UL>

<LI>

<A HREF="#I4">The Basics</A></LI>

<UL>

<LI>

<A HREF="#I5">Required Macros and Primitives</A></LI>

<LI>

<A HREF="#I6">Forbidden Macros and Primitives</A></LI></UL>

<LI>

<A HREF="#I7">Adding Text</A></LI>

<LI>

<A HREF="#I8">Default Placement of Objects</A></LI>

<LI>

<A HREF="#I9">Connecting Objects</A></LI>

<LI>

<A HREF="#I10">More about Placement</A></LI>

<LI>

<A HREF="#I11">Additional Shapes and Functions</A></LI>

<LI>

<A HREF="#I12">Controlling Size</A></LI>

<LI>

<A HREF="#I13">Object Blocks</A></LI>

<LI>

<A HREF="#I14">Macros and Variables</A></LI>

<LI>

<A HREF="#I15">Debugging</A></LI>

<LI>

<A HREF="#I16">pic Tips and Tricks</A></LI>

<LI>

<A HREF="#I17">Summary</A></LI></UL></UL></UL>



<H2 ALIGN="CENTER">

<CENTER><A ID="I1" NAME="I1">

<FONT SIZE=5><A ID="I2" NAME="I2"></A><B>25 &#151; Drawing Pictures with </B><B><I>pic</I></B>

<BR></FONT></A></CENTER></H2>

<H5 ALIGN="CENTER">

<CENTER><A ID="I3" NAME="I3">

<FONT SIZE=3><B>By Susan Peppard</B>

<BR></FONT></A></CENTER></H5>

<P>pic is rarely your first choice as a drawing tool. With pic you can draw lines and a limited variety of shapes&#151;no color, no shading&#151;but you can create a complex and detailed picture, if you're willing to work at it. pic was developed before 
everyone had personal computers with sophisticated, mouse-based drawing packages. Today, troff users with graphics terminals can use mouse-based programs such as xcip. These programs provide many of the capabilities&#151;except for color&#151;of the 
sophisticated packages, and they don't require a knowledge of pic. xcip produces pic code, which&#151;and here's the point&#151;you can edit if you know pic.

<BR></P>

<P>pic is no substitute for a sophisticated drawing tool. It doesn't have color. It provides shading only inside boxes, circles, and ellipses. It doesn't even let you draw a randomly wiggly line.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I4" NAME="I4">

<FONT SIZE=4><B>The Basics</B>

<BR></FONT></A></CENTER></H3>

<P>To draw a box, type

<BR></P>

<PRE>.PS

box ht 1 wid 1.25

.PE</PRE>

<P>The result is

<BR></P>

<P><B><IMG SRC="25unx01.gif"></B></P>

<P>This example specifies a height and a width. If you don't specify them&#151;you're not required to&#151;the box will be three-quarters inch high and one-half inch wide.

<BR></P>

<P>You can draw circles. For example,

<BR></P>

<PRE>.PS

circle rad .5

.PE</PRE>

<P>produces

<BR></P>

<P><B><IMG SRC="25unx02.gif"></B></P>

<P>You can draw ellipses, too. For example,

<BR></P>

<PRE>.PS

ellipse ht .5 wid 1.25

.PE</PRE>

<P>produces

<BR></P>

<P><B><IMG SRC="25unx03.gif"></B></P>

<P>The default pic unit is inches. pic has default sizes for boxes, circles, and ellipses. The pic default sizes are listed in the &quot;Controlling Size&quot; section later in this chapter.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I5" NAME="I5">

<FONT SIZE=3><B>Required Macros and Primitives</B>

<BR></FONT></A></CENTER></H4>

<P>troff recognizes pic code by its opening and closing macros: .PS and .PE. ms includes a .PF macro for picture flyback. This macro restores you to your last position on the page (vertically and horizontally) before the picture&#151;where you were before 

you invoked pic. This feature is rarely used; some pic users surround their pic code with display macros and specify no-fill mode. For example,

<BR></P>

<PRE>.DS

.nf

.PS

.box ht 1 wid 1.25

.

.

.PE

.DE</PRE>

<P>This might look like overkill, but mm likes it.

<BR></P>

<P>The .PS macro also can be used to do the following:

<BR></P>

<TABLE>

<TR>

<TD>

<P>.PS &lt; filename</P>

<TD>

<P>Sources in a pic file; imports an external file called filename and allows it to be processed as if filename were part of your text file.</P>

<TR>

<TD>

<P>.PS wid ht</P>

<TD>

<P>Enables you to specify the width or the height&#151;or both&#151;of the final picture</P></TABLE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="caution.gif" WIDTH = 37 HEIGHT = 35><B>CAUTION: </B>If you have a space after the .PS and no measurements, your figure will be enlarged proportionally so that its width is the current width (line length) of your pages.

<BR></NOTE>

<HR ALIGN=CENTER>

<P>To insert comments in pic code, begin a line with #.

<BR></P>

<H4 ALIGN="CENTER">

<CENTER><A ID="I6" NAME="I6">

<FONT SIZE=3><B>Forbidden Macros and Primitives</B>

<BR></FONT></A></CENTER></H4>

<P>Whatever you do, don't include any spacing requests&#151;.sp, .ls, .vs, .SP, and .P&#151;inside your pic code. pic does its own spacing, and it gets really annoyed if you interfere. Use the move command instead.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I7" NAME="I7">

<FONT SIZE=4><B>Adding Text</B>

<BR></FONT></A></CENTER></H3>

<P>You can put labels in these basic pic shapes. Consider the following code:

<BR></P>

<PRE>.PS

box ht .75 wid .75 &quot;A Square&quot;

move

box ht .75 wid .75 &quot;Another&quot; &quot;Square&quot;

.PE</PRE>

<P>It produces

<BR></P>

<P><B><IMG SRC="25unx04.gif"></B></P>

<P>Each line of text is enclosed in its own set of quotation marks.

<BR></P>

<P>pic attempts to center your text, both vertically and horizontally, which isn't helpful if you want to label a line. For example,

<BR></P>

<PRE>.PS

line right 1i &quot;line&quot;

.PE</PRE>

<P>comes out looking like

<BR></P>

<P><B><IMG SRC="25unx05.gif"></B></P>

<P>Fortunately, pic recognizes the words above and below, so you can position your text so that it is more readable. If you have two lines of text, pic puts one above the line and one below it. For example,

<BR></P>

<PRE>.PS

line right 1i &quot;over&quot; &quot;under&quot;

.PE</PRE>

<P>produces

<BR></P>

<P><B><IMG SRC="25unx06.gif"></B></P>

<P>pic doesn't object if you want to specify the font and point size for your text, so long as you keep the specifications inside the quotation marks. For example,

<BR></P>

<PRE>.PS

line right 1i &quot;\f(HB\s12over&quot; &quot;under\fP\s0&quot;

.PE</PRE>

<P>produces

<BR></P>

<P><B><IMG SRC="25unx07.gif"></B></P>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="note.gif" WIDTH = 35 HEIGHT = 35><B>NOTE:</B> To right or left justify text, use rjust or ljust.

<BR></NOTE>

<HR ALIGN=CENTER>

<P>The preceding examples are troff escape sequences and are discussed further in Chapter 21, &quot;Basic Formatting with troff/nroff.&quot;

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I8" NAME="I8">

<FONT SIZE=4><B>Default Placement of Objects</B>

<BR></FONT></A></CENTER></H3>

<P>pic assumes that all objects it draws should touch one another. Therefore, if you specify

<BR></P>

<PRE>.PS

box ht .5 wid 1 &quot;Box 1&quot;

box ht .5 wid 1 &quot;Box 2&quot;

.PE</PRE>

<P>you will get

<BR></P>

<P><B><IMG SRC="25unx08.gif"></B></P>

<P>Fortunately, pic has a move command, which you can use to separate the boxes. For example,

<BR></P>

<PRE>.PS

box ht .5 wid 1 &quot;Box 1&quot;

move

box ht .5 wid 1 &quot;Box 2&quot;

.PE</PRE>

<P>produces

<BR></P>

<P><B><IMG SRC="25unx09.gif"></B></P>

<P>The move command's default direction is to the right. Its default distance is one-half inch. You can change these defaults by specifying a direction and a distance, as in

<BR></P>

<PRE>.PS

box ht .5 wid 1 &quot;Box 1&quot;

move left 2i

box ht .5 wid 1 &quot;Box 2&quot;

.PE</PRE>

<P>Now the boxes look like

<BR></P>

<P><B><IMG SRC="25unx10.gif"></B></P>

<P>Note that the distance between the two boxes is actually one inch, not the two inches you specified in the move command. The reason is that pic measures from center to center, not from edge to edge.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I9" NAME="I9">

<FONT SIZE=4><B>Connecting Objects</B>

<BR></FONT></A></CENTER></H3>

<P>pic is especially suited for charts and flow diagrams. Consider the following code:

<BR></P>

<PRE>.PS

box; line; box

move right li

box; arrow; box

.PE</PRE>

<P>It produces

<BR></P>

<P><B><IMG SRC="25unx11.gif"></B></P>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="note.gif" WIDTH = 35 HEIGHT = 35><B>NOTE:</B> When you write pic code, you specify one command per line, or you can separate commands with semicolons. Long lines require the continuation symbol (\).

<BR></NOTE>

<HR ALIGN=CENTER>

<P>As you can see from the code and the figure, arrow is a synonym for line.

<BR></P>

<P>The following commands are useful as well:

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>line -&gt;</P>

<TD>

<P>Draws an arrowhead at the end of the arrow. It doesn't necess-arily point to the right.</P>

<TR>

<TD>

<P>line &lt;-</P>

<TD>

<P>Draws an arrowhead at the beginning of the arrow. It doesn't necessarily point to the left.</P>

<TR>

<TD>

<P>line &lt;-&gt;</P>

<TD>

<P>Draws arrowheads on both ends of the arrow.</P></TABLE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="imp.gif" WIDTH = 68 HEIGHT = 35><B>TIP: </B>To draw a line with an arrow at both ends, use line &lt;-&gt; or arrow &lt;-&gt;. This might seem obvious, but for seven years I drew two-headed arrows using the arrow command twice&#151;drawing a 
right-pointing arrow over a left-pointing arrow&#151;because nobody told me about &lt;-&gt;.

<BR></NOTE>

<HR ALIGN=CENTER>

<P>Suppose that you want Box 2 directly under Box 1. Consider the following code:

<BR></P>

<PRE>.PS

box &quot;Box 1&quot;

move down

box &quot;Box 2&quot;

.PE</PRE>

<P>It produces

<BR></P>

<P><B><IMG SRC="25unx12.gif"></B></P>

<P>The problem with this code is that pic moves half an inch from wherever it left off drawing the first box, which in this case is the middle of the box top. To place Box 2 correctly, you have to move down another one-half inch and to the left:

<BR></P>

<PRE>.PS

box &quot;Box 1&quot;

move left .375i

move down .75i

box &quot;Box 2&quot;

.PE</PRE>

<P>Figure 25.1 shows you the result.

<BR></P>

<P>

<BR><B><A HREF="25unx13.gif">Figure 25.1. Two boxes positioned correctly.</A></B>

<BR></P>

<P>This is a nuisance, to say the least, because in a complicated drawing you quickly lose track of where pic begins and ends each element of the drawing. You can use reference points with pic so that you know where each element of your drawing will be 
placed. They are discussed in the next section.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I10" NAME="I10">

<FONT SIZE=4><B>More about Placement</B>

<BR></FONT></A></CENTER></H3>

<P>To avoid having to think like pic&#151;an exercise that can be dangerous to your mental health&#151;you can refer to parts of objects that you've drawn. pic recognizes all of the following:

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>.l left</P>

<TD>

<P>.ne northeast</P>

<TR>

<TD>

<P>.r right</P>

<TD>

<P>.nw northwest</P>

<TR>

<TD>

<P>upper</P>

<TD>

<P>bottom</P>

<TR>

<TD>

<P>lower</P>

<TD>

<P>start</P>

<TR>

<TD>

<P>.t top</P>

<TD>

<P>end</P>

<TR>

<TD>

<P>.n north</P>

<TD>

<P>1st</P>

<TR>

<TD>

<P>.e east</P>

<TD>

<P>2nd</P>

<TR>

<TD>

<P>.w west</P>

<TD>

<P>3rd (and so on)</P>

<TR>

<TD>

<P>.s south</P>

<TD>

<P>last</P>

<TR>

<TD>

<P>.nw northwest</P>

<TD>

<P>2nd last </P>

<TR>

<TD>

<P>.sw southwest</P>

<TD>

<P>3rd last (and so on)</P></TABLE>

<P>pic also understands compass points. Figure 25.2 shows the parts of a pic element to which you can refer.

<BR></P>

<P>

<BR><B><A HREF="25unx14.gif">Figure 25.2. </B><B>pic</B><B> reference points.</A></B>

<BR></P>

<P>The position notation words and the compass points enable you to specify positions like these:

<BR></P>

<PRE>line from upper right of 2nd last box to upper left of last box

arrow from 1st circle.e to 2nd circle.w

box at end of last line

move left 1i from start of last box

line from Box.c to Box.s

move down 1i from bottom of 2nd last ellipse</PRE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="note.gif" WIDTH = 35 HEIGHT = 35><B>NOTE:</B> You can use terms like upper left and lower right, but not top left and lower bottom.

<BR></NOTE>

<HR ALIGN=CENTER>

<P>Now you have several ways of specifying the two boxes shown in Figure 25.1. You could write

<BR></P>

<PRE>.PS

box &quot;Box 1&quot;

move to last box.s down .5

box &quot;Box 2&quot;

.PE</PRE>

<P>or you could write

<BR></P>

<PRE>.PS

box &quot;Box 1&quot;

move to bottom of last box down .5

box &quot;Box 2&quot;

.PE</PRE>

<P>If you want to avoid the wordiness of bottom of last box, you can label your construct

<BR></P>

<PRE>B1: box &quot;Box 1&quot;</PRE>

<P>Labels must begin with a capital letter.

<BR></P>

<P>Using labels enables you to specify the two boxes as follows:

<BR></P>

<PRE>.PS

B1:box &quot;Box 1&quot;

B2:box  with .c down 1i from B1.c &quot;Box 2&quot;

.PE</PRE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="imp.gif" WIDTH = 68 HEIGHT = 35><B>TIP: </B>If you reference objects by their centers, you don't have to worry about where pic starts a new object or in which direction the new object is drawn.

<BR></NOTE>

<HR ALIGN=CENTER>

<P>These notations&#151;left, right, .ne, .sw, and so on&#151;assume that you can tell left from right and east from west. If you are directionally challenged like me, you should allow extra debugging time for your pics. I've tried sticking scraps of paper 

labelled left/west and right/east on the sides of my monitor. It helps a little.

<BR></P>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文一区二区完整视频在线观看| 91在线观看地址| 精品日韩在线观看| 久久国产欧美日韩精品| 欧美电视剧免费全集观看| 国产在线不卡一卡二卡三卡四卡| 国产三级一区二区三区| av日韩在线网站| 亚洲综合成人网| 宅男在线国产精品| 国产精品66部| 亚洲黄色av一区| 精品少妇一区二区三区日产乱码 | 成人免费看片app下载| 国产精品久久久久久亚洲毛片 | 色悠悠久久综合| 午夜精品在线看| 久久久久9999亚洲精品| 91国内精品野花午夜精品| 奇米在线7777在线精品 | 欧美日韩一区二区在线观看| 免费观看成人鲁鲁鲁鲁鲁视频| 国产亚洲精品中文字幕| 色综合久久中文综合久久97| 日韩av中文在线观看| 中文字幕av不卡| 欧美日韩高清影院| 成人高清在线视频| 美女脱光内衣内裤视频久久影院| 国产精品嫩草影院com| 欧美老女人第四色| 不卡一区二区中文字幕| 日本成人中文字幕在线视频| 中文字幕在线观看一区| 精品久久久久久亚洲综合网 | 国产精品成人一区二区三区夜夜夜| 欧美亚洲国产bt| 懂色av中文字幕一区二区三区 | 欧美精品一区二区不卡 | a在线欧美一区| 精品中文字幕一区二区| 亚洲电影中文字幕在线观看| 日本一区二区动态图| 91精品久久久久久久99蜜桃| 97se亚洲国产综合自在线观| 国产一区二区成人久久免费影院| 婷婷综合另类小说色区| 亚洲乱码国产乱码精品精98午夜| 久久久精品国产免大香伊 | 欧美xxxx在线观看| 欧美日韩电影在线播放| 色婷婷综合视频在线观看| 成人av在线网| 国产精品亚洲专一区二区三区| 免费精品99久久国产综合精品| 一区二区三区精品在线| 国产精品成人午夜| 国产亚洲综合av| 国产精品久久久久久久久搜平片 | 国产白丝网站精品污在线入口| 日本免费在线视频不卡一不卡二| 亚洲五月六月丁香激情| 亚洲色图欧洲色图| 国产精品国产自产拍高清av | 亚洲午夜影视影院在线观看| 中文字幕一区二区三区在线不卡| 久久综合狠狠综合久久激情 | 91猫先生在线| 成人国产精品免费网站| 国产毛片精品国产一区二区三区| 久久精品国产精品亚洲综合| 免费在线视频一区| 日本伊人色综合网| 日本在线不卡视频| 免费在线观看成人| 精品一区免费av| 国产精品一色哟哟哟| 成人小视频免费在线观看| 成人晚上爱看视频| www.综合网.com| 欧美怡红院视频| 欧美日韩在线播放三区四区| 欧美日韩午夜在线| 欧美一区二区三区的| 精品久久久久久久久久久久久久久| 日韩精品专区在线影院重磅| 精品国产123| 国产精品私人影院| 亚洲一区欧美一区| 日韩电影在线看| 国产精品资源站在线| 成人手机在线视频| 99精品久久久久久| 在线观看91精品国产麻豆| 精品国内片67194| 国产精品人妖ts系列视频| 亚洲欧美中日韩| 亚洲成人免费看| 国产麻豆精品95视频| 9l国产精品久久久久麻豆| 欧美性大战久久久久久久| 日韩欧美国产综合在线一区二区三区| 337p粉嫩大胆色噜噜噜噜亚洲| 中文字幕一区二区三区蜜月| 亚洲香肠在线观看| 韩国av一区二区三区在线观看| www.性欧美| 日韩一区二区三区四区| 中文字幕二三区不卡| 亚洲电影在线免费观看| 精品亚洲欧美一区| 在线欧美日韩精品| 26uuu精品一区二区三区四区在线| 中文字幕一区日韩精品欧美| 日韩国产高清在线| 成人黄色av网站在线| 欧美精品久久99久久在免费线| 久久亚洲一区二区三区明星换脸| 综合亚洲深深色噜噜狠狠网站| 天使萌一区二区三区免费观看| 国产成人三级在线观看| 欧美亚洲综合在线| 欧美激情一区二区三区蜜桃视频 | 色系网站成人免费| 久久伊人中文字幕| 亚洲电影一区二区三区| 国产盗摄视频一区二区三区| 欧美精品久久久久久久久老牛影院 | 毛片av一区二区| 日本伦理一区二区| 国产欧美在线观看一区| 日本不卡在线视频| 91久久免费观看| 国产精品国模大尺度视频| 黄页视频在线91| 欧美精品成人一区二区三区四区| 国产精品久久久久久久第一福利| 精品一区二区精品| 在线播放91灌醉迷j高跟美女| 日韩码欧中文字| 国产999精品久久久久久| 精品久久国产97色综合| 亚洲成人av在线电影| 色综合久久中文综合久久97| 欧美激情在线一区二区| 极品少妇xxxx精品少妇偷拍| 欧美精品v国产精品v日韩精品| 亚洲精品成a人| 99久久久久久| 欧美国产日产图区| 国产精品一区二区免费不卡 | 国产成人aaa| 久久久久综合网| 国内精品在线播放| 日韩视频免费观看高清完整版在线观看| 亚洲男人天堂av| 91免费视频网址| 亚洲视频在线观看一区| 91在线观看一区二区| **欧美大码日韩| 97久久超碰国产精品电影| 成人欧美一区二区三区在线播放| 成人丝袜视频网| 亚洲视频免费在线| 99久久精品免费观看| 亚洲女人的天堂| 欧洲av在线精品| 日日骚欧美日韩| 日韩片之四级片| 开心九九激情九九欧美日韩精美视频电影 | 亚洲欧美日韩一区| 不卡的电视剧免费网站有什么| 国产精品网站在线播放| 成人国产一区二区三区精品| 亚洲少妇最新在线视频| 色婷婷亚洲综合| 午夜精品久久久久久久久久久| 欧美精品在线观看一区二区| 麻豆91在线播放| www亚洲一区| 顶级嫩模精品视频在线看| 国产精品高潮久久久久无| 色综合久久久久| 天堂一区二区在线免费观看| 欧美一级欧美三级在线观看| 国内外精品视频| 亚洲色图视频网| 欧美高清hd18日本| 精品中文av资源站在线观看| 国产精品系列在线| 91久久一区二区| 看电视剧不卡顿的网站| 国产精品电影院| 欧美精品九九99久久| 国产精品99久久久久久久女警| 亚洲日本免费电影| 91精品久久久久久蜜臀| 成人开心网精品视频| 亚洲二区在线观看| 国产日韩精品久久久|