xref: /original-bsd/contrib/sc/tutorial.sc (revision b7cc7b86)
1# This data file was generated by the Spreadsheet Calculator.
2# You almost certainly shouldn't edit it.
3
4define "page4" A70
5define "page3" A49
6define "page2" A29
7define "page1" A9
8define "page5" A89
9leftstring A1 = "This is a brief sc tutorial."
10leftstring A3 = "Cells are named by their column and row number.  For example,"
11leftstring A4 = "Cell A4"
12leftstring B4 = "Cell B4"
13leftstring C4 = "Cell C4"
14leftstring A5 = "Cell A5"
15leftstring A6 = "Cell A6"
16leftstring C6 = "Cell C6"
17leftstring A7 = "Cells range from A0 to AN199."
18leftstring A8 = "Cells can also be named by the user.  See 'range names' in the manual."
19leftstring page1 = "You can move the cursor a couple of different ways:"
20leftstring A11 = "^n, j and the <DOWN> arrow key go down"
21leftstring A12 = "^p, k and the <UP> arrow key go up"
22leftstring A13 = "^b, h and the <LEFT> arrow key go left"
23leftstring A14 = "^f, l and the <RIGHT> arrow key go right"
24leftstring A15 = "You can go directly to a cell by typing 'g' and the cell name. "
25leftstring A16 = "'g c6' will take you to cell c6."
26leftstring A18 = "Cells can contain numbers, formulas, or text."
27leftstring A19 = "Most of the cells on this page contain text."
28leftstring C20 = "<Type 'g page2' to continue>"
29leftstring A22 = "Cell d22 contains text"
30leftstring D22 = "Text "
31leftstring A23 = "Cell d23 contains a number"
32let D23 = 123.34
33leftstring A24 = "Cell d24 contains a formula"
34let D24 = D23+88
35leftstring A26 = "To see what the cell contains, just move the cursor"
36leftstring A27 = "onto the cell.  The contents will show up on line 1 in the brackets."
37leftstring page2 = "You can enter data into cells like this:"
38leftstring B30 = "'<text' enters left justified text."
39leftstring B31 = "'>text' enters right justified text."
40leftstring B32 = "'=number' enters a number"
41leftstring B33 = "'=formula' enters a formula."
42leftstring A35 = "Try duplicating d22 through d24 in e22 though e24."
43leftstring A37 = "You erase a cell by typing 'x' with the cursor on the cell."
44leftstring C40 = "<Type 'g page3' to continue>"
45leftstring A42 = "Here is a typical use for numbers and formulas:"
46let A44 = 10.3
47let B44 = 1877.5
48let C44 = 234.7
49let E44 = @sum(A44:C44)
50let A45 = 44.56
51let B45 = 44.3
52let C45 = -3
53let E45 = @sum(A45:C45)
54let A46 = 88.74
55let B46 = 8000
56let C46 = -9
57let E46 = @sum(A46:C46)
58let A47 = 99.2
59let B47 = -88
60let C47 = -44.6
61let E47 = @sum(A47:C47)
62let page3 = @sum(A44:A47)
63let B49 = @sum(B44:B47)
64let C49 = @sum(C44:C47)
65let E49 = @sum(A44:C47)
66leftstring A51 = "The data is entered in a44 through c47."
67leftstring A52 = "Cells a49, b49 and c49 sum their respective columns."
68leftstring A53 = "Cells e44, e45, e46, and e47 sum their respective rows."
69leftstring A54 = "Cell E49 is a grand total."
70leftstring A55 = "Try changing some of the data cells and watch the sums change."
71leftstring A57 = "You can also edit cells by putting the cursor on the cell and typing:"
72leftstring B58 = "'e' to edit the numeric portion."
73leftstring B59 = "'E' to edit the string portion."
74leftstring C60 = "<Type 'g page4' to continue>"
75leftstring A62 = "Since you are reading this, you know that you can load "
76leftstring A63 = "a data base from a file by typing the file name as an"
77leftstring A64 = "argument to the program.  You can also load or save a "
78leftstring A65 = "data base using the file commands:"
79leftstring B67 = "'G file'"
80leftstring C67 = "Gets the data from an sc file."
81leftstring B68 = "'P file'"
82leftstring C68 = "Puts the data from the spreadsheet into a file."
83leftstring page4 = "Try 'P foo.sc' to write this to the file foo.sc"
84leftstring A71 = "The Get command erases the current spreadsheet.  "
85leftstring A72 = "To merge a spreadsheet with the one currently in"
86leftstring A73 = "the machine, use:"
87leftstring B75 = "'M file'"
88leftstring C75 = "Merge the data from a saved sc file."
89leftstring A77 = "You can also get human readable versions of the data"
90leftstring A78 = "by using the Write command:"
91leftstring C80 = "<Type 'g page5' to continue>"
92leftstring A82 = "Try 'W tut.txt' for a clear text version of the tutorial."
93leftstring A85 = "This is the end of the tutorial.  We have explored"
94leftstring A86 = "The basic commands.  Much more detail is available"
95leftstring A87 = "in the man page."
96leftstring D91 = "GOOD LUCK!"
97