ۥ- 1@   -             K  K\                             J                       P  Z P  ZZU   ^U   xU    xU    xU   U   U    U    U    U    U  
 U  
 U    U  M U    U    U    U    U    U    U    U    U  ngW   X  [    [    [    [    [  4 \  , [    fU         [    [      & '                                                             

  MAIN
 4 
\section{} 9 + 
  MAIN
 4 \footnote{}  9 , 
  MAIN
 4 \begin{itemize}$ 5 0 4 \item A 5 M 4 \item ^ 5 j 4 \item { 5  4 \end{itemize} 5  ;  > 
  MAIN
 4 \begin{quote}" 5 . 5 : 4  D \end{quote}S 5 _ ; i 
  MAIN
 4 \begin{enumerate}( 5 8 4 \item K 5 [ 4 \item n 5 ~ 4 \item  5  4 \end{enumerate} 5  ;  > 
  MAIN
 4 {\bf } 9 ' 
  MAIN
 4 {\it \/} 9 ) 
  MAIN
 4   $ $ 9 ' 
  MAIN

 4 $_{}$ 9 & 
  MAIN
 4   \section*{}# 9 / 
  MAIN
     ? =    This block prompts for name of existing WinWord file, and,] *    dumps its contents into SOCK2DE.DOC.     ,-*Nofile a$dName der zu konvertierenden WinWord-Datei eingeben.  Wenn neue Datei erzeugt werden soll, Abbrechen.Konversion/Neue LaTeX-Datei.DOCBq  a$\Gl*DoneFile	{Nofile8Errf 	%error trap for pressing Cancel button	*
DoneNofile 
	-Err
DoneNofile
Err  :e Neue LaTeX-Datei erstellen?WW2TOLTX! 3e  *byeK*NewFileYDoneFile d7f[ $ \$           7[ & \&          R 7f[ % \%           7[ # \#          R 7f[ _ \_           7[ { \{          R 7f[ } \}            
NewFile SQ   This block inserts STARTING AND ENDING MATTER for TeX file, new or converted. ?I=   If the settings here are not to your taste, change them.   G5 E|  Standard,4 '\documentstyle[a4,german,11pt]{article}5 -4 \begin{document}J5 ZHh5 x|  Standard5 5 4 \end{document};  DB    This block changes Word-style SECTION HEADINGS into TeX format8 A;e "Kapitelberschriften konvertieren?WW2TOLTX! }e  	*EndSectionHeadings,-*EndSectionHeadingsG	Fixheads3	  Gliederung 32@	Z            +	!   Until end of doc encountered		9  		V 
	 
	5 	+
	9 :
	4 \subsubsection{W
	X 	l
	4 }{
	>
	|  Standard
	5 
*	Fixheads3
"
	Fixheads2
G
  Gliederung 227Z            +!   Until end of doc encountered	9  	V 	 	5 	"	9 1	4 \subsection{K	X 	`	4 }o	>{	|  Standard	5 *	Fixheads2"	Fixheads1G  Gliederung 12+Z            +!   Until end of doc encountered	9  	V 	 	5 		9 %	4 	\section{<	X 	Q	4 }`	|  Standard	>	5 *	Fixheads1"EndSectionHeadings XV    The following puts the text from Word styles "title" and "author" into TeX TITLE. 6 K9t ,Titel und Autor aus WinWord-Text bernehmen?WW2TOLTX! t  	*EndTitleAuthorG  TitelZ    ;V S5 c; p4 \title{X 9 4 }|  StandardG  Autor)Z    U<a=nF  V 5 ; 4 \author{X 9 4 }|  Standard+>65 F4 \date{}Z5 j4 
\maketitle5 5 EndTitleAuthor GE    This block changes Word-style "quote" into LaTeX quotation format > d Druckformat Zitat konvertieren?WW2TOLTX! ?d  N	*EndQuotationsckG{	Fixquotes,-*EndQuotations  Zitat2Z            +T!   Until end of doc encountered	V 	5 	4 \begin{quote}	5 	4 {\small 	X 		4 }		9 +	 ?	:M	5 ^	4 \end{quote}w	5 	5 *	Fixquotes"EndQuotations GE    This block changes Word-style "reference" into a simple home-made
    LaTeX REFERENCE format.  * A-c "Literatur-Referenzen konvertieren?WW2TOLTX! oc  ~	*EndReferencesH; 5 4 \end{description}5 4 \end{flushleft}G) Z Literatur^a     f QiO   Note in the above line that the cue here is a heading "Literatur".  Could be97   changed to "Bibliography" or whatever if you like.      	referenceHCF				important that references are in a WinWord style named "reference"Z      V 5 4 \section*{References}5 !5 14 \begin{flushleft}O5 '_4 "\begin{description}\itemsep -0.1cm5 4 \item[X EPZ  1     	+It is crucial to this routine that year of -;+						publication follows the author's name8i6						directly.  If, instead, the title of the book or42						article come next, you'll have to change the20						" 1" in the above Find field, perhaps to a5
3						quote mark or unspecified italic character.  @V X4 ]1g
Changerefst  	referenceZ      +!   Until end of doc encountered	V 8	4 \item[L	X a	E#n	Z  1     	V 
	4 ]1*
Changerefs"G  	reference4^ Standard4m[              EndReferences PN    This block reformats FOOTNOTES, which I found quite tricky.  Others may beNNL    able to find a more elegant solution.  NOTE THAT THIS WILL WORK ONLY FOR     ONE-PARAGRAPH FOOTNOTES.   5g Funoten konvertieren?WW2TOLTX! g  	*EndFootnotes"G2StartFootnotes%C\  f	Go to footnote marker"xf  			Open footnotes window2: 			%Step over the current footnote symbol F9     A$r. N A$E; N# 			1ANSI 13 is carriage return. Show's it's last note 	*EndFootnotes  W  f      4 
\footnote{ X !4 }!*StartFootnotes%!EndFootnotes4!f   G! .J!,    This block changes ITALICS to TeX codes.y! :|!a Format Kursiv konvertieren?WW2TOLTX! !a  !	*
EndItalics!!G!StartItalics
!   8." !  "  $  %  2  ="'  &  3 (  #   "+  -  #,-*
EndItalics26#Z            +#!   Until end of doc encountered#*   #V 
#4 {\it $X $4 \/})$*StartItalics<$"B$
EndItalicsO$ /R$-    This block changes BOLDFACE to TeX codes.$ 8$a Format Fett konvertieren?WW2TOLTX! $a  $	*EndBold$$G$	StartBold
 %   8/% !  "  $  %  2  =%'  &  3 (  #    &+  -  &,-*EndBold24&Z            +&!   Until end of doc encountered&)   &V 
&4 {\bf 'X '4 }#'*	StartBold3'"
9'EndBoldC' IF'G    This block replaces QUOTATION marks and dashes with TeX versions.  ' R'b 3Anfhrungszeichen und Gedankenstriche konvertieren?WW2TOLTX! 'b  '	*EndPunctuation((G#(6<([  `          ( 6([  '          &) 7:)[  ``          ) 1)[  ''         *    <;*[  j"          *    0*[  ,         %+    8F+[  ---          + :+[    ---          6, 7J,[  --          , ,EndPunctuation, G,E   This section searches for and replaces selected special characters&- F)-p 'Umlaute und Sonderzeichen konvertieren?WW2TOLTX! p-p  -	*EndSpecialChars--G-9-[  \ae           5. 5I.[  \j" {a}    .      5.[  \j" {o}    2/      5m/[  \j" {u}    /      5/[  \j" {A}    V0      50[  \j" {O}    0      5#1[  \j" {U}    z1      &1[  \ss{}    1       682[  \j" {\i}    2       :2[  \'{e}          :3 :N3[  \`{a}          3 23[  \pounds       54    7V4[  \S          4 34[  $\ldots$       ;5    3\5[ j  -       (5    	protected hyphen 25[ j          'U6    	syllable hyphen 6EndSpecialChars6 J6H    This block replaces WinWord (3-point) SUBSCRIPTS with LaTeX commands6 ;6m Tiefstellungen konvertieren?WW2TOLTX! '7m  67	*EndSubscriptsK7S7Gc7StartSubscripts:u7 !  "  $  %  2  B7'  &  3 (  #  +  R8-3 pt-  2j8Z            +8!   Until end of doc encountered9 9V -94 $_{=9X Q94 }$`9*StartSubscriptsv9"|9EndSubscripts9 L9J    This block replaces WinWord (3-point) SUPERSCRIPTS with LaTeX commands9 ;9m Hochstellungen konvertieren?WW2TOLTX! :m  *:	*EndSuperscriptsA:I:GY:StartSuperscripts:m: !  "  $  %  2  B:'  &  3 (  #  +  J;3 pt-  2a;Z            +;!   Until end of doc encountered; <V $<4 $^{4<X H<4 }$W<*StartSuperscriptso<"u<EndSuperscripts< .<,   Standardize font and paragraph formatting< !<|  Standard~   , = ! Courier New(>=     0 cm 0 cm 2= 0 cm 0 ze 0 ze 1 ze=G=
>|  StandardE>
_>w ! Courier New"  >G> A>?    The following ensures DOUBLE PARA BREAKS between paragraphs1>/    and also deletes some unwanted para markers? !?G1?<	 ??:X?[ ^a ^a^a          ? 6?[ ^a^a^a^a ^a^a       C@    4d@[ ^a^a^a ^a^a       @    4@[ ^a^a^a ^a^a       QA    HrA[ begin{quote}^a^a begin{quote}^a       A    >B[ ^a^a\end{qu 	^a\end{qu       }B    6B[ ^a\item \item       C    'CG>7C[ ^a^a\author 	^a\author       C    CEndLinebreaksC  C   End of substantive sectionsC Cbye(D Fertig und BeendetWW2TOLTX@ 2D
  MAINK
 b$(Dateiname der zu speichernden TEX-Datei?WW2TOLTX.TEX+Z / b$.  b$b$.TEX H  b$    * (    Search for and replace broken dashes  2 Msg$(Verstmmelte Bindestriche korrigieren?  ,Msg$Msg$Wenn 'OK', dann auch 'OK' 8AMsg$Msg$&bei Anfrage ob Konversion von Nur Text%yd Msg$
 WW2TOLTX ! d  	*EndFixDashes
 q  b$G8FixBrokenDashes1J[ -^a -%^a          H  b$  bSaveMsg$Datei b$D ist jetzt als LaTeX gespeichert. Nicht in WinWord-Format speichern!Z SaveMsg$WW2TOLTX@ {EndFixDashes
  MAIN
  R P   This block prompts for name of existing TeX file, and dumps it into BLANK.TEX`      h ,-*Nofile#~ Msg$Dateiname der TEX-Datei? L Msg$Msg$:Nach Anfrage, ob Konversion von 'Nur Text': OK besttigen.C a$Msg$#Existierende LaTeX-Datei bearbeiten .TEX4q  a$NG^*DoneFile	mNofilevErrf 	Err  	*
DoneNoFile 
	-Err
DoneNoFileDoneFile
  MAIN
 G  ? =	This macro replaces straight quotes (both single and double)A] ?	with left and right curly quotes.  It may be used on a WinWord- +	document prior to conversion into LaTeX.    8 [  '            = 6Q[ '            9[  j"          :    =[[ j"             :[ ^a ^a          N :b[ ^a ^a           :[ ^t ^t          T :h[ ^t ^t           8[ ( (          X 8l[ ( (           8[            Z 8n[              
  MAIN
 G /3 	FirstLoop	Loops around lists in document_   
BulletList$ 		This stylename must be applied9 		3to items in a bulleted list for the macro to work.  Z      (.! If end of doc not encounterede9 s5 4 \begin{itemize}5  .: 	#Selects bullet character and tab....4 \item 	and overwrites with LaTeX code5+
SecondLoop	#Loops around items in a single list-] 	%Look for next "BulletList" paragraph.2		,The first time round this will be the second6		0such -- I'm assuming any list will have at least		two elements.9 0: ?4 \item *RF	"Take a peek at the next paragraph:4		.Is it also in BulletList style? If so, it will.		(be part of the same list.  If not, we'll/		)look for the beginning of the next list. D   
BulletList5	*
SecondLoopG M	4 \end{itemize}h	5 y	5 	*	FirstLoop"
  MAIN
 G /4 	FirstLoop	Loops around lists in document`   NumList$ 		This stylename must be applied9 		3to items in a numbered list for the macro to work.  Z      (! If end of doc not encounteredD9 P5 \4 \begin{enumerate}x5  -: 	"Selects numeral, period and tab....4 \item 	and overwrites with LaTeX code5
SecondLoop	#Loops around items in a single list*) 	"Look for next "NumList" paragraph.2Y		,The first time round this will be the second6		0such -- I'm assuming any list will have at least		two elements.9 : 4 \item *
F	"Take a peek at the next paragraph:18		+Is it also in NumList style? If so, it will.h		(be part of the same list.  If not, we'll/		)look for the beginning of the next list. D   NumList	*
SecondLoop 	4 \end{enumerate}	5 &	5 3	*	FirstLoopDL"R [
  MAIN

 4 $^{}$ 9 * 
  MAIN
 G  ? =	This macro replaces straight quotes (both single and double)H] F	with left and right curly GERMAN quotes.  It may be used on a WinWord- +	document prior to conversion into LaTeX.    . [  '         7    ,X[ '            .[ ( (       7    .X[             0[ ^t ^t       ;    0\[ ^a ^a           9[  j"          I    3j[ j"             .[ ( (       N    .o[             0[ ^t ^t       R    0s[ ^a ^a            


		iten .TEX4q  a$NG^*DoneFile	mNofilevErrf                                   ,  .  Z  \      X5  Z5  w8  y8  d:  f:  >  >  B  B  G  G  =G  ?G  K  K  K  K                                                                                                                                                                                                                                                                                                                         D         (                    .  \    Z5  y8  f:  >  B  G  ?G  K  K  K                                                                                                                                                                                                                                                                                                                                                                                                              !                                    NumListLiteraturstelle
BulletListrefhead	referenceZitatTitelAutor                                                                         D              D        	  D        	     D        	       B        	)
            /p#
      /p#
      /p#
      u$       S2  <    p#
$       S  <    o#
&       S  x    o#
&       ST      o#
                     n       R       7       	       	                   p#           p#             r < <                                nx        nx        Sx        X         7       7       hx              v                  V	       h
       P        '        -         0          R                                                       
 
                                                        -                0 &J                          &J   K      &J  
       K  &   K  ' M  Times New Roman 	Symbol & Arial 	" System 1Terminal " Small Fonts  SectionFootnoteItemizeQuote	EnumerateBoldfaceItalicsMathmodeSubscripting
NonNumHeadWinWordToLaTeX
SaveAsTextOpenTexSuperscripting   NC           
          
      
   	                  	      
              
                 
      	         3   g     p    H  y        3  6  8  >=  hA  E  E  J  $J  1  1  1  1  2  2  &2  62  G2  \2  o2  2  2  2  2  2  2  2    $ Section,Fgt LaTeX-Code fr Abschnittberschrift einFootnote&Fgt leeren LaTeX-Code fr Funote einItemize8Fgt LaTeX-Code fr itemize-Liste ein (3 leere Elemente)Quote(Fgt LaTeX-Code fr zitierten Absatz ein	Enumerate;Fgt LaTeX-Code fr numerierte Liste ein (3 leere Elemente)BoldfaceFgt LaTeX-Code fr Fett einItalicsFgt LaTeX-Code fr kursiv einMathmode&Fgt LaTeX-Code fr Formelumgebung einSubscripting$Fgt LaTeX-Code fr Tiefstellung ein
NonNumHead9Fgt LaTeX-Code fr unnumerierte Abschnittberschrift einWinWordToLaTeX7Haupt-Makro zur Konvertierung von WinWord nach LaTeX.  
SaveAsTextSpeichert als NurTextOpenTex,ffnet existierende TEX-Datei zum Bearbeiten	WinQuotesGWandelt einfache Anfhrungszeichen in gekrmmte um (amerikanische Form)Bullets2LTX'Konvertiert punktierte Liste nach LaTeXEnum2LTX'Konvertiert numerierte Liste nach LaTeXSuperscripting$Fgt LaTeX-Code fr Hochstellung einWinQuotesDEBWandelt einfache Anfhrungszeichen in gekrmmte um (deutsche Form)"       h    8مtE    v	                ,       Allin CottrellW. Hennings         