Getting Started

Copying Elements

You can cut, copy, and paste elements and reuse them in your topics. Depending on which option you choose, you can add a copy that is:

  • Separate to the original. It has the same content, but a different ID. So you can make changes to the copy without affecting the original.

  • The original content, but reused. In this case, the "copy" and the original are the same content and have the same ID. So any changes that you make will affect both the original and the "copy" simultaneously.

Copy and paste as reuse

This is a very powerful reuse feature, and the easiest way is to do it with the keyboard shortcuts.

You should always consider what is the best strategy for the content that you are copying and cutting. In some situations, it can be beneficial to create a copy that is not connected to the original, for example, if you know that you will need to change the copy so that it is different to the original. If you know the content is always going to be the same, you may want to reuse so that it is consistent and can be updated in one place.

See also Reusing Text Fragments.

To cut or copy an element and then paste or insert it into a topic:

  1. Place your cursor inside the element you want to cut or copy.

  2. Select the element in the Element Structure Menu.

  3. Select Copy or Cut.

    copycut.png
  4. Place the cursor in the position where you want to add the copied/cut element. It is important that you position the cursor at a position where the element is valid. For example, if you have cut or copied a listitem, you can place the cursor in an itemizedlist.

  5. Select the element in the Element Structure Menu. (The element for the position in the structure that you selected in the previous step).

  6. Select one of the following options:

    • Insert - Adds a new copy at the selected position in the topic structure. This new copy is separate to the original version, so any changes you make to it do not affect the original.

    • Insert as reuse - Adds the original version at the selected position in the topic structure. The "copy" and the original are the same content (have the same ID) and so if you change one, the other changes too. This option is only available if you made a copy (it is unavailable if you used Cut).

    insertasreuse.png

    Note

    If the Insert options are not shown, it is because you have selected a position that is invalid for the copied/cut element. With an invalid position, you get the option to Paste before or Paste after instead. These options add the original version of the copied/cut content before or after the selected position. The pasted "copy" and the original are the same content (have the same ID) and so if you change one, the other changes too.