As you have noted, we retyped the headword whenever we needed it in the card text of the previous section examples. There is a way to avoid such retyping, and that's the tilde use. If you type a tilde (~) in any card part (for example, in a subentry header), this tilde will be replaced with the entry headword when displaying the card text or subentry card. NB: If there is more than one headword in a card, the first one will be used to replace the tilde. See the following example: the card "binary" can be written as follows:
@ ~ search tree
бинарное дерево поиска
@ ~ search
You can use tilde in the text of a single card as many times as you want. You can even use multiple tildes in a single subentry headword (for example, you can have the following subentry - ~ in ~ - in the "all" card, equivalent to "all in all").
A tilde used in the subentry text is replaced with the card, not subentry header.
If a card headword contains an unsorted part (or parts), any tilde used in the card text will be replaced with the longest sorted part of the entry headword.
A ^ sign typed before a tilde changes the case of the first letter of the word the tilde is to be replaced with - if the first letter were capital, it'll become small, and vice versa. See the following example:
Гавана, столица Кубы