LCFG ROLLING DOC CLEAR YSW DOC CLEAR Y|765| CUT AND PASTE EDITING|515||515||752||759||754||754||752||737||159||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||151||754||753||149||754||753||158||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||152||754||752||149||737||541| |^F|9|Cut and Paste Editing is one of the names given to the functions which enable you to move, copy or delete areas of text. |^Z|9|The procedure is initially the same whether a block of text is to be moved, copied or deleted, in that you must set two markers, one at the start of the block of text and the other at the end. It does not matter which is set first, as PROTEXT automatically adjusts the markers so they are the correct way round. |^Z|9|We shall move the cursor to the start of the first line of the preceding paragraph and press CTRL-Z.|^Z|730||730||^M|538||^M|541| You will see that the block marker is represented on the screen as an inverse video square bracket. The first one set will always be an opening square bracket. We shall now move the cursor to the start of the first line of this paragraph and press CTRL-Z a second time.|^Z|730||^M|538||^M|541| This time an inverse video closing square bracket will mark the text. We have now marked a block of text consisting of all the text between the two block markers. |^Z|9|You will see that on the Status line which previously said 'No markers set', there will now be two square brackets to indicate that both block markers are set. |^Z|9|If you find that you have positioned a marker in the wrong place it can easily be removed by positioning the cursor over it and pressing CTRL-Z yet again, or by using the appropriate DEL key. Alternatively any block markers which are set can be cancelled by pressing CTRL-K. |^Z|9|If both markers are already set when you try to set a marker, a beep will sound and a message appear on the status line to inform you. You must press the ESC key to return to edit mode.|^Z|538||^P|764||^Z If you know you do not want the old markers then CTRL-K can be used to delete them before setting the new ones. On the other hand, you might want to have a look at them before removing them and PROTEXT provides a command to enable you to quickly find them, without having to look through the text. |^Z|9|Earlier in the demonstration you saw how to set place markers in the text and how to find them by pressing CTRL-@ and then the place marker number. In a similar way, we can use CTRL-@ with either the opening or closing bracket to jump straight to whichever bracket was chosen. We shall now jump to the opening block marker.|^Z|512|[|^P|541| |^Z|9|Having selected the block you can then decide whether to move, copy or delete it. We shall describe the copy command first. |^Z|9|We shall move the cursor to the start of this paragraph and press f10.|^Z|730||^K|746||^P|541| |9|You will see that the block of text has been copied down. You will also see that the block markers have moved with the block. If you look back in the text, you will find that the original piece of text is still there.|^Z|760||760||^P|761||761| |^Z|9|We could have moved the block of text instead of copying it and to show how this works we shall now move the block down from where we copied it, to immediately before this paragraph. We shall move the cursor to the start of this paragraph and this time press CTRL-M to move the text.|^Z|730||^K|525||^P|541| If you look this time, the block of text will be at the start of this paragraph, complete with markers, but if you look at the position where the paragraph was, the text will no longer be there. It has been moved, rather than copied. |^Z|9|As the block markers are still set it is a good time to look at the third of the block commands, the 'delete block' command. We shall just press CTRL-DEL. If the block of text is too large to be 'undeleted' with the CTRL-U, undelete command, a beep will sound and a message at the top of the screen will request confirmation that we want to delete the block, before doing so.|^Z|756||756||^K|744||^P|^K|541| |^Z|9|Blocks of text may be any size and anywhere in the document. In the examples shown above, complete lines were moved. This was done deliberately, as this is one of the most common uses of the block commands, but a block can start and end anywhere and could be as short as one letter, though this would be rather pointless. Moving a few words around a sentence or paragraph is a fairly common use as well. |^Z|9|One thing which should be noted is that the cursor must not be inside the marked block when the move or copy commands are used, as it is not possible to copy a block or move it into itself. If you do attempt to do so, PROTEXT will beep and display an error message on the status line. |^ZBOX MODE EDITING|515||515||752||759||754||754||752||737||159||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||151||754||753||149||754||753||158||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||152||754||752||149||737||541| |^Z|9|In addition to the normal block mode, PROTEXT also has a 'BOX' or 'column' mode. The difference between block and box mode is that when a block is marked, all text between the opening and closing block markers is included in the block. |^Z|9|When box mode is in operation, only text that is positioned within an imaginary box marked by the opening block marker at the top left of the box and the closing marker at the bottom right, is included in the box. |^Z|9|The same 'Move', 'Copy' and 'Delete' commands that are used in block mode may be used to manipulate the box. The setting of 'Insert/Overwrite' has an effect on how the box reacts and may be used to determine whether a box is inserted into existing text, or overwrites it and whether the space created when 'Delete' is used closes up the gap or leaves it as a blank space. |^Z|9|There are many uses for Box mode, from changing the order of columns of figures and text, to moving whole areas of text alongside other text to create a multi-column layout before printing. |^Z|9|As a brief demonstration, we shall now create a few columns of text, mark a box and move/copy it about, before deleting it. |^Z----------------!----------------!-----------------!--------------R|762|>|748||^KLine 1 Col 1|9|Line 1 Col 2|9|Line 1 Col 3|9|Line 1 Col 4|13|Line 2 Col 1|9|Line 2 Col 2|9|Line 2 Col 3 |9|Line 2 Col 4 Line 3 Col 1|9|Line 3 Col 2|9|Line 3 Col 3|9|Line 3 Col 4|13|Line 4 Col 1|9|Line 4 Col 2|9|Line 4 Col 3|9|Line 4 Col 4|13|Line 5 Col 1|9|Line 5 Col 2|9|Line 5 Col 3|9|Line 5 Col 4|13| |^Z|730||730||730||730||759||759||759||759||754||514||538||753||753||753||759||759||759||759||759||754||538||752||752||752||759||759||759||759||755||^Z|525||^K|534|V|^Z|534|V|762||759||759||759||759||754||737||746||^Zy|^K|534|V|^Z|534|V|744||^My|514||^Z|541||737| |^ZTWO FILE EDITING|515||515||752||759||754||754||752||737||159||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||156||151||754||753||149||754||753||158||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||156||754||754||152||754||752||149||737||541| |^Z|9|CTRL-Y is a command which, though not solely connected with the process of cut and paste editing, is frequently used with it. CTRL-Y is used to switch between two documents in memory. Full details of 'Two file' editing are provided in the manual, but just to give you an idea of the possibilities, we shall mark this paragraph with block markers, but this time, instead of using one of the copy, move or delete commands, press CTRL-Y, followed by CTRL-O (letter O, not zero).|^Z|538||730||538||^K|537| |^K|527||541| |^Z|9|You should now find that you are in a new document containing only the marked block of text. Look at the status line and you will see that it is a new document. If we now press CTRL-Y again, PROTEXT will switch back to the original document, which will still contain the original block of text.|^Z|537||^K|541| |^Z|9|CTRL-Y toggles between the two documents.|^Z|537||^Z|537||^Z|537||^Z |^Z|9|CTRL-O is the command used to copy over the contents of a block into the other document. The block of text is always copied over to the position of the cursor in the second document. The original block of text will still have the block/box markers round it, so it is easy to press CTRL-DEL to remove the original text if required.|^Z|537||^Z|744||^Z|541| |^Z|9|The above operations, as you have now seen, provide a most convenient way to transfer sections of one document to another and this is much quicker than saving blocks of text and merging them into the other document. The second document is an entirely normal document and any of the command mode and editing commands can be used. You will also have noticed that when you switch between documents, the cursor position is remembered, together with all the settings of the various block and place markers, justification etc. |^Z|^Z|^Z|766|EXEC ROLLFORM