If your team doesn’t need to use all of the menu items and toolbar buttons in XMetaL, you can safely hide the ones that writers don’t need. For example, if you are using XMetaL to edit DITA topics but there are DITA element types that you never use, you can remove their corresponding menu items from the Insert menu. Doing this will generally give you a simpler user interface for writers, without needing to specialize DITA or modify the DITA DTDs at all.
All menu and toolbar settings for a particular document type are stored in a single file with a .TBR extension. When you open a document, XMetaL looks at the .TBR file for that document type in order to determine which menus, menu items, and toolbar buttons to display.
Purpose: In this tutorial, you will remove the “Programming Elements” items from the Insert menu for all DITA topic types.
Prerequisites:
- XMetaL Author Enterprise 5.0 or higher
Procedure 1: Remove the “Programming Elements” menu items for one DITA topic type1) Make a backup of your
C:\Program Files\XMetaL x.x\Author\DITA\XACs folder.
2) Start XMetaL.
3) Click
File >
New.
4) Click the
DITA Topic tab, select the
Concept icon, and then click
OK.
5) Right-click anywhere in the toolbar, and choose
Customize.

6) In the Toolbar and Menu Customization dialog, click the
Menu tab.
7) Expand the tree view by clicking the
+ button next to the
&Insert option.
8) Scroll down until you can see the
&Programming Element option, and then click it to select it. The dialog should now look like this:

9) Click the
Remove button.
10) Click
Close.
11) Click the
Insert menu. You should no longer see the “Programming Elements” submenu.
12) Right-click in the document. In the right-click menu, you should no longer see "Programming Elements" within the Insert submenu.
Procedure 2: Remove the “Programming Elements” menu items for all other DITA topic typesDo steps 3 to 11 in Procedure 1 for each of the following document types that are in the File > New dialog:
- Composite
- Concept
- Generic Topic
- Reference
- Task
- Glossary-Multiple
- Glossary-Single
Procedure 3 (optional): Copy .TBR files to the Program Files directoryIf you are using XMetaL Author Enterprise 5.0 or 5.1, skip this procedure.
If you are using XMetaL Author Enterprise 5.5 or 6.0 and have changed your
XMetaL55.ini or XMetaL 6.0.ini file to make it run in “default” mode, skip this procedure.
If you are using XMetaL Author Enterprise 5.5 or 6.0 and have never changed your
XMetaL55.ini or
XMetaL 6.0.ini file, then your machine will have two copies of the .TBR file for each document type. For example, there will be two copies of the .TBR file used for Concept topics:
C:\Documents and Settings\<username>\Application Data\SoftQuad\XMetaL\6.0\gen\C\Program Files\XMetaL x.x\Author\DITA\XACs\concept\concept_ditabase.tbrand
C:\Program Files\XMetaL x.x\Author\DITA\XACs\concept\concept_ditabase.tbr
The changes that you made in Procedure 1 are recorded in the copy of the
concept_ditabase.tbr file that is in the Documents and Settings folder. XMetaL looks at this copy when you open a Concept topic.
The copy of the
concept_ditabase.tbr file that is in the Program Files folder is used only in fairly rare cases, such as if you were to configure XMetaL to use a new DITA specialization that is based on the Concept topic type. If you want to be sure that the correct copy of a customized .TBR file is always used, you can copy the .TBR file from the Documents and Settings folder to the Program Files folder.
Procedure 4 (optional): Copy configuration files to another machineAfter configuring XMetaL on one machine, you can copy configuration files to the machines used by other team members so that their user interface looks and behaves the same as yours.
For XMetaL Author Enterprise 5.0 and 5.1:
1) Copy the contents of the following folder to the other machine:
C:\Program Files\XMetaL x.x\Author\DITA\XACs
For XMetaL 5.5 and 6.0:
1) Copy the contents of the following folder to the other machine:
C:\Documents and Settings\<username>\Application Data\SoftQuad\XMetaL\6.0\gen\C\Program Files\XMetaL x.x\Author\DITA\XACs\ .
If you do not see this folder, it means you you have changed your
XMetaL55.ini or
XMetaL 6.0.ini file to make it run in “default” mode. In this case, copy the
C:\Program Files\XMetaL x.x\Author\DITA\XACs folder instead.
Procedure 5: Reconfigure XMetaL whenever you upgradeBefore installing a new version of XMetaL, always uninstall the old version first. After running the installer, you will need to redo all of the above procedures, as .TBR files that have been customized for one version of XMetaL might not work properly with another version.