> <\body> You can start searching text by pressing or . Doing this, a new special ``search toolbar'' will appear below the main text, just above the footer. When typing text in the search field of the toolbar, all occurrences of this text will be highlighted in the main document. Moreover, one ``principal'' occurrence will be highlighted in red and you may navigate through all occurrences using and (or and , or ). Using and , you may jump to the first and last occurrences respectively. As soon as you press the escape key , the search toolbar will be closed, searching stops and focus returns to the main document. During a search, only text in the same mode and the same language will be found, as those which are active at the position where you started your search. In other words, when searching an in math-mode, you will not find any x's in the ordinary text. As a current limitation, the search string can only contain ordinary text and no math-symbols or more complicated structured text. In order to replace text, you should use or press . This will cause a special ``replace toolbar'' to appear below the main text, just above the footer. You are prompted for a string which is to be replaced and the string by which to replace. Again, you may use the and keys in order to navigate through the occurrences of the search string. When pressing or in the search field, focus will be moved to the replace field. You may still use the and keys in order to navigate through the occurrences of the search string. In addition, pressing will replace the principal occurrence of the search string by the replace string. Using , you may undo the last replacement. You may replace all remaining occurrences by pressing . Like in the case of searching, the query-replace command is mode and language sensitive. The search and replace toolbars are quite rudimentary in the sense that they only allow for searching and replacing plain text. By pressing the icon on either of these toolbars, you may expand the toolbar into a full blown widget with larger search and replace fields which may contain arbitrary markup. Searching and replacing can be done using more or less the same keyboard shortcuts as in the case of the toolbars, but you may now search and replace arbitrary content. When searching non textual content, the conditions for having a hit are somewhat released. For instance, assume that you are just starting a new search with an empty search field. Then typing inserts the tag with no text inside yet. Instead of looking only for ``strong empty strings'', will rather look for all strong markup in your document. If you next enter the letter ``a'', then will look for all strong text which contains the letter ``a''. In asimilar way, when searching for the formula >, will highlight all fractions in which the numerator contains the variable . Yet another example: a search for >> will highlight all formulas in which the denominator contains a square root which contains the variable . For instance, the fraction >> will be highlighted, but not |a+>>. When using the structured text and replace widgets, also implements a few additional special tags for enhancing structured searching. First of all, it can happen that you would like to search for certain content a special context. For instance, you might want to search for all occurrences of the letter ``a'' inside a tag. When searching for , as above, will highlight all tags which contain the letter ``a''. In order to highlight the letters ``a'' themselves, you should first enter the tag inside an empty search field using . You next enter a special tag using , and finally insert the letter ``a'' inside this tag. Other special markup which can be used inside search fields are the ``wildcards'' , and which are entered using , and . As soon as you start using the structured text and replace widgets instead of the toolbars, this will be remembered as a user preference: any subsequent searches or replacements will again use the widgets. In order to switch back to the less intrusive toolbar methods for searching and replacing, you should press the icon.