![]() |
Customizing Macros |
Macros are shortcuts available from menus to insert some pre formatted TeX code. You can customize a macro set editing a file.
You can customize built in macros sets choosing the "Edit Macros" item at the end of the corresponding macro menu. |
To customize other macro files, such as those for your customized projects, just open them the standard way, selecting the appropriate item in the pop up button. Macro files have extension "mTeXMac".
This brings to front a macro editor. The left part presents the menu hierarchy in an outline view, where you can add/remove/drag/copy/paste items, menus, separators. When you select an item, the right part of the editor shows the content/action for this item when appropriate.
A bullet column is meant to show the change status of a macro menu item.
Caution: Those two parts have their own undo managers, which implementation is not fully satisfying, it definitely needs a little more work...
Macro specials:
Final
Selection:
You
can control what text will be selected or the location of the
insertion point once the macro has been inserted. The insertion
point shows in the macro text view as an I beam over a light gray
carret. If two such carrets are shown, the text between will be
selected once the macro is inserted.
To fix the range of text that will be selected once the macro is inserted, select some text in the right view then press the record button just below. |
You should see the grey carrets at the right location now.
Macros tooltips: Once the macro is inserted, iTeXMac will show the tooltip in the status field at the bottom of the source window. Use them to briefly recall the meaning of the arguments.
Validate
Changes:
iTeXMac
does not take changes in macros menu and templates into account
immediatly.
Choose Reload in the Source menu to have iTeXMac reload all the macros and templates. |