Document 360

Message: \begin{subequations} ended by \end{environment}

Version: 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific Word

Problem

Using the subequation feature to number equations with both letters and numbers (as in 1a, 1b. 1c, ...) sometimes results in LaTeX compilation errors similar to this:

\begin{subequations} ended by \end{environment}

where environment is the name of a different environment.

Explanation

The program occasionally places the end of the subequations environment in the wrong position when you set the numbering of a displayed equation by checking the Enable Subequation Numbering box in the advanced Display Properties dialog.

Solution

Remove the specification in the Display Properties dialog and instead place encapsulated TeX commands around the equation:

  1. Select the equation and choose Properties.

  2. Make sure the Auto numbering option is checked for each line of the display for which you want an equation number to appear.

  3. In the Display Properties dialog, choose Advanced.

  4. If you are using a Key for Whole Display, delete the key.

  5. Uncheck Enable Subequation Numbering, and choose OK.

  6. Place the insertion point immediately before the display and enter an encapsulated TeX field:

    1. From the Insert menu, choose Typeset Object and then choose TeX Field.

    2. Check Encapsulated.

  7. In the entry area, type \begin{subequations} and choose OK.

  8. If you are using a Key for Whole Display, from the Insert menu, choose Marker and enter the key that was deleted above, then choose OK.

  9. Place the insertion point immediately after the last line in the display and enter another encapsulated TeX field.

  10. In the entry area, type \end{subequations} and choose OK.

Last revised 05/22/06

This document was created with Scientific WorkPlace.