|
Document 598
Using mathematics in a caption or other TeX field
Version: 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific
Word
To avoid typesetting difficulties, you must use correct LaTeX commands to
enter any mathematics that appears in the caption for a floating object or in
any other TeX field.
The instructions below explain a method for creating correct LaTeX commands
that can be copied into a caption for a table that floats, but you can apply
the process to include mathematics in any TeX field. Tables that float are
created in SWP and SW with the fragment Table - (4x3, floating) or, in Version
3.0, with the fragment table4_3.
Create mathematics in the caption for a table that floats
-
Create a table that floats:
-
In your SWP or SW document, place the insertion point where you want the table
to appear and apply the Table - (4x3, floating)
fragment or, in Version 3.0, the table 4_3 fragment.
-
Edit the number of rows and columns as necessary and replace the predefined
cell contents with the information you want.
-
Save your document.
-
Create the caption:
-
Open a new document using the Blank - Standard LaTeX Article shell.
-
In the body of the new document, enter the caption for the table in a single
paragraph.
-
Apply a Section tag to the caption paragraph.
Applying the tag adds the required LaTeX \protect
statements.
-
Save the new document using the same document type as you used for the
document containing the table.
-
Open the document containing the caption in an ASCII editor, such as Notepad,
and scroll to the caption.
The caption begins with \section, as in this
example:
\section{According to the rule $\sin ^{2}\protect\theta
+\cos ^{2}\protect\theta =1$.}
-
Change the word section to
caption.
-
Select both lines of the caption and copy them to the clipboard.
-
Place the caption in the table:
-
In the document containing the table, place the insertion point to the right
of the Caption field in the Table - (4x3, floating) fragment.
-
Choose Properties.
-
Select the entire contents of the Caption field.
-
From the Edit menu, choose
Paste to replace the existing caption with the
caption you created.
-
Choose OK.
-
Save and typeset your document to see the mathematics appear correctly in the
table caption.
NoteVersions
of the Table - (4x3, floating) fragment prior to Version 5.0 include a
\label as part of the caption TeX field. The
fragment included with Version 5.0 and later instead uses a marker immediately
following the caption TeX field. The instructions above remove the \label
command that is inside the caption TeX field. Therefore, if you are using a
version prior to Version 5.0 and you want to create a cross-reference the
table, you must add a marker immediately following the caption TeX field.
Last revised 03/14/06
The information in this frame was created with Scientific WorkPlace.
|