| | | 9 A Guide to Preparing 9 Documents with -ms _M. _E. _L_e_s_k 9 Bell Laboratories August 1978 9 ______________________________ This guide gives some simple examples of document prepara- tion on Bell Labs computers, emphasizing the use of the -_m_s macro package. It enormously abbreviates information in 1. _T_y_p_i_n_g _D_o_c_u_m_e_n_t_s _o_n _U_N_I_X _a_n_d _G_C_O_S, by M. E. Lesk; 2. _T_y_p_e_s_e_t_t_i_n_g _M_a_t_h_e_m_a_t_i_c_s - _U_s_e_r'_s _G_u_i_d_e, by B. W. Kernighan and L. L. Cher- ry; and 3. _T_b_l - _A _P_r_o_g_r_a_m _t_o _F_o_r_m_a_t _T_a_b_l_e_s, by M. E. Lesk. These memos are all included in the _U_N_I_X _P_r_o_g_r_a_m_m_e_r'_s _M_a_n_u_- _a_l, _V_o_l_u_m_e _2. The new user should also have _A _T_u_t_o_r_i_a_l _I_n_t_r_o_d_u_c_t_i_o_n _t_o _t_h_e _U_N_I_X _T_e_x_t _E_d_i_t_o_r, by B. W. Kernighan. 9 For more detailed information, read _A_d_v_a_n_c_e_d _E_d_i_t_i_n_g _o_n _U_N_I_X and _A _T_r_o_f_f _T_u_t_o_r_i_a_l, by B. W. Kernighan, and (for experts) _N_r_o_f_f/_T_r_o_f_f _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l by J. F. Ossanna. Information on related commands is found (for UNIX users) in _U_N_I_X _f_o_r _B_e_g_i_n_n_e_r_s by B. W. Kernighan and the _U_N_I_X _P_r_o_g_r_a_m_m_e_r'_s _M_a_n_u_a_l by K. Thompson and D. M. Ritchie. 9 Contents 9 A TM ................... 2 A released paper ....... 3 An internal memo, and headings 4 Lists, displays, and footnotes 5 Indents, keeps, and double column 6 Equations and registers 7 9 9 | | | | | | Tables and usage .................... 8 Throughout the examples, input is shown in this Helvetica sans serif font while the resulting output is shown in this Times Roman font. UNIX Document no. 1111 777777777777 2 Commands for a TM .TM 1978-5b3 99999 99999-11 .ND April 1, 1976 .TL The Role of the Allen Wrench in Modern Electronics .AU "MH 2G-111" 2345 J. Q. Pencilpusher .AU "MH 1K-222" 5432 X. Y. Hardwired .AI .MH .OK Tools Design .AB This abstract should be short enough to fit on a single page cover sheet. It must attract the reader into sending for the complete memorandum. .AE .CS 10 2 12 5 6 7 .NH Introduction. .PP Now the first paragraph of actual text ... ... Last line of text. .SG MH-1234-JQP/XYH-unix .NH References ... Commands not needed in a par- ticular format are ignored. 8 Bell LaboratoriesBell Laboratories Cover Sheet for TM 98 ______________________________ 8 _T_h_i_s _i_n_f_o_r_m_a_t_i_o_n _i_s _f_o_r _e_m_- 8 _p_l_o_y_e_e_s _o_f _B_e_l_l _L_a_b_o_r_a_t_o_r_i_e_s. 8 (_G_E_I _1_3._9-_3) 8 ______________________________ 98 Title- 88 The Role of the Allen Wrench 8 in Modern Electronics 78 Date- 88 April 1, 1976 98 TM- 88 1978-5b3 898 Other Keywords- 88 Tools 8 Design 8 Author Location Ext.Charging Case- 9999999999 8 J. Q. Pencilpusher MH 2G-1112345 88 Filing Case- 99999a99999a 8 X. Y. Hardwired MH 1K-2225432 8 _A_B_S_T_R_A_C_T 98 This abstract should 8 be short enough to fit 8 on a single page cover 8 sheet. It must attract 8 the reader into sending 8 for the complete 8 memorandum. 98 ______________________________ 98 Pages Text 10 Other 2Total 12 98 ______________________________ 9 9 8 | | | 8 | | | 8 E-1932-U (6-73)SEE REVERSE SIDE FOR DISTRIBUTION LIST 8899 |99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|________________________________|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7__________________________________ 9 8 | | | 8 | | | 8 3 A Released Paper with Mathematics .EQ delim $$ .EN .RP ... (as for a TM) .CS 10 2 12 5 6 7 .NH Introduction .PP The solution to the torque handle equation .EQ (1) sum from 0 to inf F ( x sub i ) = G ( x ) .EN is found with the transformation $ x = rho over theta $ where $ rho = G prime (x) $ and $theta$ is derived ... 9 The Role of the Allen Wrench in Modern Electronics 98 _J. _Q. _P_e_n_c_i_l_p_u_s_h_e_r 98 _X. _Y. _H_a_r_d_w_i_r_e_d 98 Bell Laboratories 8 Murray Hill, New Jersey 07974 8 _A_B_S_T_R_A_C_T 98 This abstract should be 8 short enough to fit on a 8 single page cover sheet. 8 It must attract the 8 reader into sending for 8 the complete memorandum. 98 April 1, 1976 88 |7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7________________________________99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|__________________________________ 9 9 The Role of the Allen Wrench in Modern Electronics 8 _J. _Q. _P_e_n_c_i_l_p_u_s_h_e_r 98 _X. _Y. _H_a_r_d_w_i_r_e_d 98 Bell Laboratories 8 Murray Hill, New Jersey 07974 998 1. Introduction 8 The solution to the torque 8 handle equation 8 (1) 8 is found with the transforma- 9 tion _x=9999_O7778_K99_99 where _K=_G'(_x) and _O is derived from well-known 8 principles. 988 |8|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7________________________________99|9|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|__________________________________ 77777777777777777777777777777777777777777777777777777777788 4 An Internal Memorandum .IM .ND January 24, 1956 .TL The 1956 Consent Decree .AU Able, Baker & Charley, Attys. .PP Plaintiff, United States of America, having filed its complaint herein on January 14, 1949; the defendants having appeared and filed their answer to such complaint denying the substantive allegations thereof; and the parties, by their attorneys, ... Bell Laboratories 98 Subject: 88 The 1956 8 Consent Decree 78 date: 88 January 24, 8 1956 98 from: 88 Able, Baker & 8 Charley, Attys. 998 Plaintiff, United States of 8 America, having filed its com- 8 plaint herein on January 14, 8 1949; the defendants having 8 appeared and filed their 8 answer to such complaint deny- 8 ing the substantive allega- 8 tions thereof; and the par- 8 ties, by their attorneys, hav- 8 ing severally consented to the 8 entry of this Final Judgment 8 without trial or adjudication 8 of any issues of fact or law 8 herein and without this Final 8 Judgment constituting any evi- 8 dence or admission by any 8 party in respect of any such 8 issues; 8 Now, therefore before any 8 testimony has been taken 8 herein, and without trial or 8 adjudication of any issue of 8 fact or law herein, and upon 8 the consent of all parties 8 hereto, it is hereby 8 Ordered, adjudged and 8 decreed as follows: 8 I. [Sherman Act] 8 This Court has jurisdiction 8 of the subject matter herein 8 and of all the parties hereto. 8 The complaint states a claim 8 upon which relief may be 8 granted against each of the 8 defendants under Sections 1, 2 8 and 3 of the Act of Congress 8 of July 2, 1890, entitled ``An 8 act to protect trade and com- 8 merce against unlawful res- 8 traints and monopolies,'' com- 8 monly known as the Sherman 8 Act, as amended. 8 II. [Definitions] 8 For the purposes of this 8 Final Judgment: 8 (a) ``Western'' shall mean 8 the defendant Western Electric 8 Company, Incorporated. 988 |8|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7|7________________________________99|9|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|99|__________________________________ 99 Other formats possible (specify before .TL) are: .MR (``memo for record''), .MF (``memo for file''), .EG (``engineer's notes'') and .TR (Computing Science Tech. Report). 9 9 | | | | | | Headings 9 .NH .SH Introduction. Appendix I .PP .PP text text text text text text 1. Introduction Appendix I 9 text text text text text text 9 | | | | | | 5 A Simple List .IP 1. J. Pencilpusher and X. Hardwired, .I A New Kind of Set Screw, .R Proc. IEEE .B 75 (1976), 23-255. .IP 2. H. Nails and R. Irons, .I Fasteners for Printed Circuit Boards, .R Proc. ASME .B 23 (1974), 23-24. .LP (terminates list) 9 1. J. Pencilpusher and X. Hardwired, _A _N_e_w _K_i_n_d _o_f _S_e_t _S_c_r_e_w, Proc. IEEE 7575 (1976), 23-255. 2. H. Nails and R. Irons, _F_a_s_t_e_n_e_r_s _f_o_r _P_r_i_n_t_e_d _C_i_r_- _c_u_i_t _B_o_a_r_d_s, Proc. ASME 2323 (1974), 23-24. Displays text text text text text text .DS and now for something completely different .DE text text text text text text hoboken harrison newark rose- ville avenue grove street east orange brick church orange highland avenue mountain sta- tion south orange maplewood millburn short hills summit new providence 9 and now for something completely different 9 murray hill berkeley heights gillette stirling millington lyons basking ridge bernards- ville far hills peapack glad- stone 9 9 | | | | | | Options: .DS L: left-adjust; .DS C: line-by-line center; .DS B: make block, then center. Footnotes Among the most important occupants of the workbench are the long-nosed pliers. Without these basic tools* .FS * As first shown by Tiger & Leopard (1975). .FE few assemblies could be completed. They may lack the popular appeal of the sledgehammer 9 Among the most important occu- pants of the workbench are the long-nosed pliers. Without these basic tools* few assem- blies could be completed. They may lack the popular appeal of the sledgehammer __________ * As first shown by Tiger & Leopard (1975). 77777777777777777777777777778 6 Multiple Indents This is ordinary text to point out the margins of the page. .IP 1. First level item .RS .IP a) Second level. .IP b) Continued here with another second level item, but somewhat longer. .RE .IP 2. Return to previous value of the indenting at this point. .IP 3. Another line. 9 This is ordinary text to point out the margins of the page. 1. First level item a) Second level. b) Continued here with another second level item, but somewhat longer. 2. Return to previous value of the indenting at this point. 3. Another line. Keeps Lines bracketed by the follow- ing commands are kept together, and will appear entirely on one page: .KS not moved .KF may float .KE through text .KE in text Double Column .TL The Declaration of Independence .2C .PP When in the course of human events, it becomes necessary for one people to dissolve the political bonds which have 9 9connected | | | | | | them with another, and to assume among the powers of the earth the separate and equal station to which the laws of Nature and of Nature's God entitle them, a decent respect to the opinions of 9 The Declaration of Independence 9 When in the course of hu- man events, it becomes neces- sary for one people to dis- solve the pol- itical bonds which have connected them with another, and to assume among the powers of the earth the separate and equal station to which the laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind re- quires that they should declare the causes which impel them to the separa- tion. We hold these truths to be self- evident, that all men are created equal, that they are endowed by their creator with certain unalienable rights, that among these are life, li- 77777777777777777777777777777777777777777777777777 9berty, | | | | | | and the pur- suit of happi- ness. That to secure these rights, governments are instituted among men, 9 | | | | | | 7 Equations A displayed equation is marked with an equation number at the right margin by adding an argument to the EQ line: .EQ (1.3) x sup 2 over a sup 2 ~=~ sqrt {p z sup 2 +qz+r} .EN A displayed equation is marked with an equation number at the right margin by adding an ar- gument to the EQ line: 9