Adding LaTeX Menu items

The LaTeX Menu includes many different categorized submenus that include most of the common markup tags. For example, if you select

TeX Menu > Text Commands > textcircled

then the following text is inserted into the window:

    \textcircled{|}•

where "|" indicates the cursor position. If there is a selection (such as the text "word") highlighted, then the above menu item would surround it with the markup tags, as in

    \textcircled{word}

If you use the AMS package, you can select the menu item

TeX Menu > LaTeX Menu > AMS-LaTeX

to add several of these commands to the relevant submenus.



Adding New Template Items


You might find that some of your favorite command are missing, especially if they are defined by more obscure LaTeX packages. You can easily add your own items to the submenus by selecting the command

TeX Menu > LaTeX Menu > Add Menu Template Item

After you choose the submenu in which the new item should be placed, you will be presented with a dialog containing two text fields, for the opening and closing delimiters. As with the "textcircled" example above, the cursor will be left between these delimiters when the item is selected, or the tags will surround any current selection.

Once you have added a template item, you can select

TeX Menu > LaTeX Menu > Assign Menu Bindings

to assign your own keyboard shortcut to the item.



Limitations

Unfortunately, as of AlphaTcl 8.0 it is not possible to enter new-line characters to these templates. We hope to address that in a future release.


Category FAQ