Document 96

## Making Scientific Word 2.0 Emit 100 Percent LaTeX Articles

### Oliver Johns

#### Physics Department, San Francisco State University

Many journals will accept standard LaTeX but do not allow user macro files of any sort (other than their own). In particular, they do not allow a file like tcilatex.tex, even if you send it to them. Fortunately, SW already emits an almost 100% standard Latex. Follow these steps:

1. Begin your edit with the style choice File:New:Other Articles:Standard Latex Article.

2. Be sure that the Tools:User Setup:Panel File string is set to Standard Latex (preset). This keeps you from the temptation to use some AMS symbols that standard Latex does not support.

3. Avoid using encapsulated TexButtons. Unencapsulated TexButtons are safe. You can use them. Just be careful when you use the Insert:Field:Tex dialog box. Do not click the Encapsulated button.

4. Avoid other constructs defined only in tcilatex.tex. You can look at the file SW20\tex\macros\tcilatex.tex to get some idea of what they are. Among the forbidden ones are: tcitime, func, limfunc, EXPAND, NOEXPAND, LaTeXparent,ChildStyles, ChildDefault, anything beginning with Q, and almost all windows graphics commands. If in doubt, go ahead and use the command, and see step 9 below.

5. When you double click on an equation to enter a label or revise it, you will get a Revise Display dialog box. You can use everything on it safely. But be sure not to click the Enable AMS Options button in the Advanced panel. Standard Latex does not support the AMS options.

6. After you are totally finished with your editing, save your final document. You have to do a minimal amount of hand-editing on the final tex document, using as ascii editor like Notepad.

7. When you open your final tex document in Notepad, you will see a preamble something like:

-------------------------------------------------------------

%% This document created by Scientific Word (R) Version 2.0

%% Starting shell: article

\documentclass[12pt,thmsa]{article}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{sw20lart}

%TCIDATA{TCIstyle=Article/art4.lat,lart,article}

\input tcilatex

\begin{document}

-------------------------------------------------------------

8. You must edit it to look like:

-------------------------------------------------------------

%% This document created by Scientific Word (R) Version 2.0

%% Starting shell: article

\documentclass[12pt]{article}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\usepackage{sw20lart}

%TCIDATA{TCIstyle=Article/art4.lat,lart,article}

%\input tcilatex

\begin{document}

-------------------------------------------------------------

Notice that the option thmsa has been removed, and that \usepackage{sw20lart} and \input tcilatex have been commented out by preceding them with a % symbol.

9. If you did not using any theorem, lemma, etc. constructs in your document, you are now finished. But if you did, there is one last step. You must locate the file \SW20\tex\macros\thmsa.sty, open it in your text editor, and copy the whole of it into the Clipboard. Then you must go back to your document and paste the whole thing just above the \begin{document} line. Your document will then look like:

-------------------------------------------------------------

%% This document created by Scientific Word (R) Version 2.0

%% Starting shell: article

\documentclass[12pt]{article}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\usepackage{sw20lart}

%TCIDATA{TCIstyle=Article/art4.lat,lart,article}

%\input tcilatex

\newtheorem{theorem}{Theorem}

\newtheorem{corollary}[theorem]{Corollary}

\newtheorem{conjecture}[theorem]{Conjecture}

\newtheorem{lemma}[theorem]{Lemma}

\newtheorem{proposition}[theorem]{Proposition}

\newtheorem{definition}[theorem]{Definition}

\newtheorem{example}[theorem]{Example}

\newtheorem{axiom}{Axiom}

\newtheorem{remark}{Remark}

\newtheorem{exercise}{Exercise}[section]

\begin{document}

-------------------------------------------------------------

By the way, if you want any of corollary, conjecture, lemma, etc. not to be counted serially with theorem, you can simply remove its [theorem] parameter in the above.

10. Now you are finished. Your document should be acceptable to anyone. It is a good idea now to click on the Initex icon, and compile your newly clean document, just as a check. Do not do this from within SW. If you re-open your document in SW, it will try to put back the things you just took out! If your document compiles correctly in Initex, it should compile correctly in anybody's LaTeX2e anywhere. If you used some constructions that were defined only in tcilatex.tex, then TeX will tell you that such and such a command is undefined.

There no doubt are things I've overlooked in the above. But the final check in (10) should help you find them.