?? pubuse
字號:
Thus, if after extracting an item and modifying it, you decidethat you'd rather leave things as they were, delete the``bibxxx'' file, and your change request will disappear..PP.IDeletions..RTo delete an entry from the data base,type the command.DSpub.del key1 key2 key3 ....DEwhere the items key1, key2, etc. are a setof keys that will find the paper, as with the.I lookbibcommand.That is, if.DSlookbib aho hirschberg ullman.DEwill find a paper,.DSpub.del aho hirschberg ullman.DEdeletes it.Upper and lower case are equivalent in keys;the command.DSpub.del Aho Hirschberg Ullman.DEis an equivalent.I pub.delcommand.The.I pub.delcommand will print the entry being deleted.It also gives the name of a ``bibxxx'' file on which the deletioncommand is stored.The actual deletion is not done until the changes, additions, etc.are processed, as with the.I pub.chgcommand.If, after seeing the item to be deleted, you change yourmind about throwing it away, delete the ``bibxxx'' fileand the delete request disappears.Again, if the list of keys does not uniquely identify one paper,an error message is given..PPRemember that the default versions of the commands described hereedit a public data base.Do not deleteitems unless you are sure deletion is proper; usually thismeans that there are duplicate entries for the same paper.Otherwise, view requests for deletion with skepticism; evenif one person has no need for a particular item in the data base,someone else may want it there..PPIf an item is correct, but should not appear in the ``List of Publications''as normally produced, add the line.DS%K DNL.DEto the item.This preserves the item intact, but implies ``Do Not List'' to theto the commands that print publication lists.The DNL line is normally used for some technical reports,minor memoranda, or otherlow-grade publications..PP.IUpdate and reindex..RWhen you have completed a session of changes, you shouldtype the command.DSpub.run file1 file2 ....DEwhere the names ``file1'', ... are the new files of additions youhave prepared.You need not list the ``bibxxx'' files representing changes anddeletions; they are processed automatically.All of the new items are edited into the standardpublic data base, and then a new index is made. This processtakes about one minute of processor time.The index is not made by re-analyzing and re-sorting theentire data base; the new or changed items are indexedin the usual way and then merged with the previous data files.A complete re-index would be much slower for small changes..PPNormally, you should execute.I pub.runjust before you logoff after performingsome edit requests.However, if you don't, the various change request files remainin your directoryuntil you finally do execute.I pub.run.When the changes are processed, the ``bibxxx'' files are deleted.It is not desirable to wait too long before processing changes,however, to avoid conflicts with someone else who wishes to changethe same file.If executing.I pub.runproduces the message ``File bibxxx too old''it means that someone else has been editing the same filebetween the time you prepared your changes, and the time you typed.I pub.run.You must delete such old change files andre-enter them..PPNote that although.I pub.rundiscards the ``bibxxx'' files afterprocessing them, your files of additions are left aroundeven after.I pub.runis finished.If they were typed in only for purposes ofupdating the data base, you may delete themafter they have been processed by.I pub.run..PP.IExample..RSuppose, for example, that you wish to.IP (1)Add to the data base the memos ``The Dilogarithm Function of a Real Argument''by R. Morris, and``UNIX Software Distribution by Communication Link,''by M. E. Lesk and A. S. Cohen;.IP (2)Delete from the data base the item``Cheap Typesetters'', by M. E. Lesk,SIGLASH Newsletter, 1973;and.IP (3)Change ``J. Assoc. Comp. Mach.'' to ``Jour. ACM'' in the citationfor Aho, Hirschberg, and Ullman shown above..LPThe procedure would be as follows.First, you would make a filecontaining the additions,here called ``new.1'', in the normal way using the UNIX editor.In the script shown below, the computer prompts are.if n underlined..if t in italics..DS.if n _$ ed new.1.if t \f2$\f1 ed new.1.if n _?.if t \f2?\f1a%T The Dilogarithm Function of a Real Argument%A Robert Morris.if \nP=0 %M TM 78-1271-1.if \nP>0 %M abcd%D 1978%T UNIX Software Distribution by Communication Link%A M. E. Lesk%A A. S. Cohen.if \nP=0 %M TM 78-1274-1, 78-8234-1.if \nP>0 %M abcd%D 1978.w new.1.if n _1_9_9.if t \f2199\f1q.DENext you would specify the deletion, which would be done with the.I pub.delcommand:.DS.if n _$ pub.del lesk cheap typesetters siglash.if t \f2$\f1 pub.del lesk cheap typesetters siglash.ti 0to which the computer responds:.if n W_i_l_l_ d_e_l_e_t_e_:_ (_f_i_l_e_ b_i_b_1_7_6_)_.if t \f2Will delete: (file bib176)\f1.if n %_T_ C_h_e_a_p_ T_y_p_e_s_e_t_t_e_r_s_.if t \f2%T Cheap Typesetters\f1.if n %_A_ M_._ E_._ L_e_s_k_.if t \f2%A M. E. Lesk\f1.if n %_J_ A_C_M_ S_I_G_L_A_S_H_ N_e_w_s_l_e_t_t_e_r_.if t \f2%J ACM SIGLASH Newsletter\f1.if n %_V_ 6_.if t \f2%V 6\f1.if n %_N_ 4_.if t \f2%N 4\f1.if n %_P_ 1_4_-_1_6_.if t \f2%P 14-16\f1.if n %_D_ O_c_t_o_b_e_r_ 1_9_7_3_.if t \f2%D October 1973\f1.DEAnd then you would extract the Aho, Hirschberg and Ullman paper.The dialogue involved is shown below.First run.I pub.chgto extract the paper; it responds by printingthe citation and informing you that it was placed on file \f2bib123\f1.That file is then edited..DS.if n _$ pub.chg aho hirschberg ullman.if t \f2$\f1 pub.chg aho hirschberg ullman.if n _E_x_t_r_a_c_t_i_n_g _a_s _f_i_l_e _b_i_b_1_2_3.if t \f2Extracting as file bib123\f1.if n _%_T _B_o_u_n_d_s _o_n _t_h_e _C_o_m_p_l_e_x_i_t_y _o_f _t_h_e _M_a_x_i_m_a_l.if t \f2%T Bounds on the Complexity of the Maximal\f1.if n _C_o_m_m_o_n _S_u_b_s_e_q_u_e_n_c_e _P_r_o_b_l_e_m.if t \f2Common Subsequence Problem\f1.if n _%_A _A_. _V_. _A_h_o.if t \f2%A A. V. Aho\f1.if n _%_A _D_. _S_. _H_i_r_s_c_h_b_e_r_g.if t \f2%A D. S. Hirschberg\f1.if n _%_A _J_. _D_. _U_l_l_m_a_n.if t \f2%A J. D. Ullman\f1.if n _%_J _J_. _A_s_s_o_c_. _C_o_m_p_. _M_a_c_h_..if t \f2%J J. Assoc. Comp. Mach.\f1.if n _%_V _2_3.if t \f2%V 23\f1.if n _%_N _1.if t \f2%N 1\f1.if n _%_P _1_-_1_2.if t \f2%P 1-12\f1.if \nP=0 .if n _%_M _T_M _7_5_-_1_2_7_1_-_7.if \nP>0 .if n %_M_ M_e_m_o_ n_u_m_b_e_r_.if \nP=0 .if t \f2%M TM 75-1271-7\f1.if \nP>0 .if t \f2%M abcd\f1.if n _%_D _J_a_n_. _1_9_7_6.if t \f2%D Jan. 1976\f1.if n _$ ed bib123.if t \f2$\f1 ed bib123.if n _3_1_2.if t \f2312\f1/Assoc/s/ J/ Jour/p.if n _%_J _J_o_u_r_. _A_s_s_o_c_. _C_o_m_p_. _M_a_c_h_..if t \f2%J Jour. Assoc. Comp. Mach.\f1s/Assoc.*/ACM/p.if n _%_J _J_o_u_r_. _A_C_M.if t \f2%J Jour. ACM\f11,$p.if n _%_# _/_u_s_r_/_d_i_c_t_/_p_a_p_e_r_s_/_p_7_6 _2_3_3 _2_4_5 _c_h_a_n_g_e.if t \f2%# /usr/dict/papers/p76 233 245 change\f1.if n _%_T _B_o_u_n_d_s _o_n _t_h_e _C_o_m_p_l_e_x_i_t_y _o_f _t_h_e _M_a_x_i_m_a_l.if t \f2%T Bounds on the Complexity of the Maximal\f1.if n _C_o_m_m_o_n _S_u_b_s_e_q_u_e_n_c_e _P_r_o_b_l_e_m.if t \f2Common Subsequence Problem\f1.if n _%_A _A_. _V_. _A_h_o.if t \f2%A A. V. Aho\f1.if n _%_A _D_. _S_. _H_i_r_s_c_h_b_e_r_g.if t \f2%A D. S. Hirschberg\f1.if n _%_A _J_. _D_. _U_l_l_m_a_n.if t \f2%A J. D. Ullman\f1.if n _%_J _J_o_u_r_. _A_C_M.if t \f2%J Jour. ACM\f1.if n _%_V _2_3.if t \f2%V 23\f1.if n _%_N _1.if t \f2%N 1\f1.if n _%_P _1_-_1_2.if t \f2%P 1-12\f1.if \nP=0 .if n _%_M _T_M _7_5_-_1_2_7_1_-_7.if \nP>0 .if n _%_M _M_e_m_o _n_u_m_b_e_r.if \nP=0 .if t \f2%M TM 75-1271-7\f1.if \nP>0 .if t \f2%M abcd\f1.if n _%_D _J_a_n_. _1_9_7_6.if t \f2%D Jan. 1976\f1w.if n _2_9_2.if t \f2292\f1q.if n _$.if t \f2$\f1.DEFinally, execute.I pub.run ,making sure to remember that youhave prepared a new file ``new.1'':.DS\f2$\f1 pub.run new.1.DECurrently, this takes about 1 minute of 11/70 processor time..NHPrinting a Publication List.PPThere are two commands for printing a publication list,depending on whether you want to print one person's list,or the list of many people.To print a list for one person, use the.I pub.indivcommand:.DSpub.indiv M Lesk.DEThis runs off the list for M. Lesk and puts it in file ``output''.Note that no `.' is given after the initial.In case of ambiguity two initials can be used.Similarly, to get the list for group of people, say.DSpub.org xxx.DEwhich prints all the publications of the members of organization.I xxx ,taking the names for the list in the file.I /usr/dict/papers/centlist/xxx .This command should normally be run in the background; it takesperhaps 15 minutes.Two options are available with these commands:.DSpub.indiv \-p M Lesk.DEprints only the papers, leaving out unpublished notes, patents, etc.Also.DSpub.indiv \-t M Lesk | gcat.DEprints a typeset copy, instead of a computer printer copy.In this case it has been directed to an alternate typesetter with the`gcat' command.These options may be used together, and may be used with the.I pub.orgcommand as well.For example, to printonly the papers for all of organization zzz and typeset them,you could type.DSpub.center \-t \-p zzz | gcat &.DEThese publication lists are printed double column with a citation styletaken from a set of publication list macros; the macros, of course, can bechanged easily to adjust the format of the lists.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -