1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Latex conversion header
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
29 * We have a list of macro definitions which we must define
30 * in advance to enable the parsing to recognize macros.
35 #define FORBID_ABSOLUTELY 2
39 const int MAX_LINE_BUFFER_SIZE
= 600;
41 const int MAX_LINE_BUFFER_SIZE
= 11000;
44 class TexMacroDef
: public wxObject
53 TexMacroDef(int the_id
, char *the_name
, int n
, bool ig
, bool forbidLevel
= FORBID_OK
);
57 #define CHUNK_TYPE_MACRO 1
58 #define CHUNK_TYPE_ARG 2
59 #define CHUNK_TYPE_STRING 3
62 We have nested lists to represent the Tex document.
63 Each element of a list of chunks can be one of:
65 - a macro with/without arguments. Arguments are lists of TexChunks.
67 Example (\toplevel is implicit but made explicit here):
69 AddMacroDef(ltMYMAT, "mymat", 2);
71 \toplevel{The cat sat on the \mymat{very coarse and {\it cheap}}{mat}}.
75 TexChunk: type = macro, name = toplevel, no_args = 1
78 TexChunk: type = argument
81 TexChunk: type = string, value = "The cat sat on the "
82 TexChunk: type = macro, name = mymat, no_args = 2
85 TexChunk: type = argument
88 TexChunk: type = string, value = "very coarse and "
89 TexChunk: type = macro, name = it, no_args = 1
92 TexChunk: type = argument
95 TexChunk: type = string, value = "cheap"
97 TexChunk: type = argument
100 TexChunk: type = string, value = mat
113 bool optional
; // Is an optional argument
116 TexChunk(int the_type
, TexMacroDef
*the_def
= NULL
);
117 TexChunk(TexChunk
& toCopy
);
118 virtual ~TexChunk(void);
121 // Represents a topic, used for generating a table of contents file (.cnt).
122 // Also for storing keywords found in a topic, a list of which is then inserted
123 // into the topic in the next pass.
124 class TexTopic
: public wxObject
127 // This flag is set to indicate that the topic has children.
128 // If this is the case, we know to insert a 'book' icon at this level,
129 // not just a 'page' icon. We don't want to have to open a book only
130 // to find there's only one page in it. We might force a book to be used if
131 // a top-level topic has no children (?)
134 wxStringList
*keywords
;
135 TexTopic(char *f
= NULL
);
138 extern wxHashTable TopicTable
;
139 void AddKeyWordForTopic(char *topic
, char *entry
, char *filename
= NULL
);
140 void ClearKeyWordTable(void);
142 extern TexChunk
*TopLevel
;
143 extern wxHashTable MacroDefs
;
144 extern wxStringList IgnorableInputFiles
; // Ignorable \input files, e.g. psbox.tex
146 bool read_a_line(char *buf
);
147 bool TexLoadFile(char *filename
);
148 int ParseArg(TexChunk
*thisArg
, wxList
& children
, char *buffer
, int pos
,
149 char *environment
= NULL
, bool parseArgToBrace
= TRUE
, TexChunk
*customMacroArgs
= NULL
);
150 int ParseMacroBody(char *macro_name
, TexChunk
*parent
, int no_args
,
151 char *buffer
, int pos
, char *environment
= NULL
, bool parseArgToBrace
= TRUE
, TexChunk
*customMacroArgs
= NULL
);
152 void TraverseDocument(void);
153 void TraverseFromChunk(TexChunk
*chunk
, wxNode
*thisNode
= NULL
, bool childrenOnly
= FALSE
);
154 #define TraverseChildrenFromChunk(arg) TraverseFromChunk(arg, NULL, TRUE)
155 void SetCurrentOutput(FILE *fd
);
156 void SetCurrentOutputs(FILE *fd1
, FILE *fd2
);
157 extern FILE *CurrentOutput1
;
158 extern FILE *CurrentOutput2
;
159 void AddMacroDef(int the_id
, char *name
, int n
, bool ignore
= FALSE
, bool forbidden
= FALSE
);
160 void TexInitialize(int bufSize
);
161 void TexCleanUp(void);
162 void TexOutput(char *s
, bool ordinaryText
= FALSE
);
163 char *GetArgData(TexChunk
*chunk
);
164 char *GetArgData(void); // Get the string for the current argument
165 int GetNoArgs(void); // Get the number of arguments for the current macro
166 TexChunk
*GetArgChunk(void); // Get the chunk for the current argument
167 TexChunk
*GetTopLevelChunk(void); // Get the chunk for the top level
168 TexChunk
*GetNextChunk(void); // Look ahead to the next chunk
169 bool IsArgOptional(void); // Is this argument an optional argument?
170 void DefineDefaultMacros(void); // Optional set of default macros
171 int GetCurrentColumn(void); // number of characters on current line
172 char *ConvertCase(char *s
); // Convert case, according to upperCaseNames setting.
173 extern wxPathList TexPathList
; // Path list, can be used for file searching.
175 // Define a variable value from the .ini file
176 char *RegisterSetting(char *settingName
, char *settingValue
, bool interactive
= TRUE
);
178 // Major document styles
179 #define LATEX_REPORT 1
180 #define LATEX_ARTICLE 2
181 #define LATEX_LETTER 3
183 #define LATEX_SLIDES 5
185 extern TexChunk
*DocumentTitle
;
186 extern TexChunk
*DocumentAuthor
;
187 extern TexChunk
*DocumentDate
;
188 extern int DocumentStyle
;
189 extern int MinorDocumentStyle
;
190 extern char *BibliographyStyleString
;
191 extern char *DocumentStyleString
;
192 extern char *MinorDocumentStyleString
;
194 extern int normalFont
;
195 extern int smallFont
;
197 extern int largeFont1
;
198 extern int LargeFont2
;
199 extern int LARGEFont3
;
200 extern int hugeFont1
;
201 extern int HugeFont2
;
202 extern int HUGEFont3
;
205 * USER-ADJUSTABLE SETTINGS
209 // Section font sizes
210 extern int chapterFont
;
211 extern int sectionFont
;
212 extern int subsectionFont
;
213 extern int titleFont
;
214 extern int authorFont
;
215 extern bool winHelp
; // Output in Windows Help format if TRUE, linear otherwise
216 extern bool isInteractive
;
217 extern bool runTwice
;
218 extern int convertMode
;
219 extern bool checkCurleyBraces
;
220 extern bool checkSyntax
;
221 extern bool stopRunning
;
222 extern int mirrorMargins
;
223 extern bool headerRule
;
224 extern bool footerRule
;
225 extern int labelIndentTab
; // From left indent to item label (points)
226 extern int itemIndentTab
; // From left indent to item (points)
227 extern bool useUpButton
;
228 extern int htmlBrowseButtons
;
229 extern bool useHeadingStyles
; // Insert \s1, s2 etc.
230 extern bool useWord
; // Insert Word table of contents, etc. etc.
231 extern bool indexSubsections
; // put subsections in index
232 extern bool compatibilityMode
;
233 extern bool generateHPJ
; // Generate WinHelp HPJ file
234 extern char *winHelpTitle
; // Title for Windows Help file
235 extern int defaultTableColumnWidth
;
236 extern char *bitmapMethod
;
237 extern bool truncateFilenames
; // Truncate for DOS
238 extern int winHelpVersion
; // Version e.g. 4 for Win95
239 extern bool winHelpContents
; // Generate .cnt file
240 extern bool htmlIndex
; // Generate .htx HTML index file
241 extern bool htmlFrameContents
; // Use frames for HTML contents page
242 extern int contentsDepth
; // Depth of contents for linear RTF files
243 extern bool upperCaseNames
; // Filenames; default is lower case
244 extern char *backgroundImageString
; // HTML background image
245 extern char *backgroundColourString
; // HTML background colour
246 extern char *textColourString
; // HTML text colour
247 extern char *linkColourString
; // HTML link colour
248 extern char *followedLinkColourString
; // HTML followed link colour
249 extern bool combineSubSections
; // Stop splitting files below section
250 extern bool htmlWorkshopFiles
; // generate HTML Help Workshop project files
252 // Names to help with internationalisation
253 extern char *ContentsNameString
;
254 extern char *AbstractNameString
;
255 extern char *GlossaryNameString
;
256 extern char *ReferencesNameString
;
257 extern char *FiguresNameString
;
258 extern char *TablesNameString
;
259 extern char *FigureNameString
;
260 extern char *TableNameString
;
261 extern char *IndexNameString
;
262 extern char *ChapterNameString
;
263 extern char *SectionNameString
;
264 extern char *SubsectionNameString
;
265 extern char *SubsubsectionNameString
;
266 extern char *UpNameString
;
269 * HTML button identifiers: what kind of browse buttons
270 * are placed in HTML files, if any.
274 #define HTML_BUTTONS_NONE 0
275 #define HTML_BUTTONS_BITMAP 1
276 #define HTML_BUTTONS_TEXT 2
283 extern int chapterNo
;
284 extern int sectionNo
;
285 extern int subsectionNo
;
286 extern int subsubsectionNo
;
291 extern int ParIndent
;
295 // Set by client and by Tex2Any
296 extern TexChunk
*currentSection
;
298 // Header/footers/pagestyle
299 extern TexChunk
* LeftHeaderOdd
;
300 extern TexChunk
* LeftFooterOdd
;
301 extern TexChunk
* CentreHeaderOdd
;
302 extern TexChunk
* CentreFooterOdd
;
303 extern TexChunk
* RightHeaderOdd
;
304 extern TexChunk
* RightFooterOdd
;
305 extern TexChunk
* LeftHeaderEven
;
306 extern TexChunk
* LeftFooterEven
;
307 extern TexChunk
* CentreHeaderEven
;
308 extern TexChunk
* CentreFooterEven
;
309 extern TexChunk
* RightHeaderEven
;
310 extern TexChunk
* RightFooterEven
;
311 extern char * PageStyle
;
313 // Repeat the currentSection, either real (Chapter) or simulated (References)
314 extern void OutputCurrentSection(void);
315 extern void OutputCurrentSectionToString(char *buf
);
316 extern void OutputChunkToString(TexChunk
*chunk
, char *buf
);
318 extern char *fakeCurrentSection
;
320 // Called by Tex2Any to simulate a section
321 extern void FakeCurrentSection(char *fakeSection
, bool addToContents
= TRUE
);
324 * Local to Tex2Any library
328 extern char *currentArgData
;
329 extern bool haveArgData
; // If TRUE, we're simulating the data.
330 void StartSimulateArgument(char *data
);
331 void EndSimulateArgument(void);
338 // Called on start/end of macro examination
339 void OnMacro(int macroId
, int no_args
, bool start
);
341 // Called on start/end of argument examination.
342 // Return TRUE at the start of an argument to traverse
343 // (output) the argument.
344 bool OnArgument(int macroId
, int arg_no
, bool start
);
346 // Default: library-defined
347 void DefaultOnMacro(int macroId
, int no_args
, bool start
);
349 // Default: library-defined
350 bool DefaultOnArgument(int macroId
, int arg_no
, bool start
);
353 void OnError(char *msg
);
355 // Called for information
356 void OnInform(char *msg
);
358 // Special yield wrapper
359 void Tex2RTFYield(bool force
= FALSE
);
366 // Look for \label macro, use this ref name if found or
367 // make up a topic name otherwise.
368 char *FindTopicName(TexChunk
*chunk
);
369 // Force the current topic to be this (e.g. force 'references' label).
370 void ForceTopicName(char *name
);
371 void ResetTopicCounter(void);
373 // Parse unit eg. 14, 12pt, 34cm and return value in points.
374 int ParseUnitArgument(char *unitArg
);
376 // Set small, large, normal etc. point sizes for reference size
377 void SetFontSizes(int pointSize
);
380 * Strip off any extension (dot something) from end of file,
381 * IF one exists. Inserts zero into buffer.
385 void StripExtension(char *buffer
);
388 * Reference structure
392 class TexRef
: public wxObject
395 char *refLabel
; // Reference label
396 char *refFile
; // Reference filename (can be NULL)
397 char *sectionNumber
; // Section or figure number (as a string)
398 char *sectionName
; // name e.g. 'section'
399 TexRef(char *label
, char *file
, char *section
, char *sectionN
= NULL
);
408 void AddTexRef(char *name
, char *file
= NULL
, char *sectionName
= NULL
,
409 int chapter
= 0, int section
= 0, int subsection
= 0, int subsubsection
= 0);
412 * Read and write reference file (.ref), to resolve refs for second pass.
415 void WriteTexReferences(char *filename
);
416 void ReadTexReferences(char *filename
);
423 class BibEntry
: public wxObject
429 * book, inbook, article, phdthesis, inproceedings, techreport
454 inline BibEntry(void)
477 extern wxList BibList
;
478 extern wxStringList CitationList
;
480 bool ReadBib(char *filename
);
481 void OutputBib(void);
482 void ResolveBibReferences(void);
483 void AddCitation(char *citeKey
);
484 TexRef
*FindReference(char *key
);
487 * Ability to customize, or at least suppress unknown macro errors
491 extern wxList CustomMacroList
;
493 #define CUSTOM_MACRO_IGNORE 0
494 #define CUSTOM_MACRO_OUTPUT 1
495 #define CUSTOM_MACRO_MARK 2
497 class CustomMacro
: public wxObject
503 inline CustomMacro(char *name
, int args
, char *body
)
506 macroName
= copystring(name
);
508 macroBody
= copystring(body
);
515 bool ReadCustomMacros(char *filename
);
516 void ShowCustomMacros(void);
517 CustomMacro
*FindCustomMacro(char *name
);
518 char *ParseMultifieldString(char *s
, int *pos
);
525 class ColourTableEntry
: public wxObject
533 ColourTableEntry(char *theName
, unsigned int r
, unsigned int g
, unsigned int b
);
534 ~ColourTableEntry(void);
537 extern wxList ColourTable
;
538 extern void AddColour(char *theName
, unsigned int r
, unsigned int g
, unsigned int b
);
539 extern int FindColourPosition(char *theName
);
540 // Converts e.g. "red" -> "#FF0000"
541 extern bool FindColourHTMLString(char *theName
, char *buf
);
542 extern void InitialiseColourTable(void);
545 #define ltADDCONTENTSLINE 2
546 #define ltADDTOCOUNTER 3
554 #define ltBACKSLASH 30
555 #define ltBASELINESKIP 31
558 #define ltBIBLIOGRAPHYSTYLE 34
559 #define ltBIBLIOGRAPHY 35
561 #define ltBACKSLASHRAW 37
562 #define ltBACKGROUND 38
563 #define ltBACKGROUNDCOLOUR 39
564 #define ltBACKGROUNDIMAGE 40
567 #define ltCAPTIONSTAR 50
570 #define ltCENTERLINE 53
571 #define ltCENTERING 54
573 #define ltCEXTRACT 56
574 #define ltCHAPTERHEADING 57
575 #define ltCHAPTERSTAR 58
580 #define ltCLEARDOUBLEPAGE 63
581 #define ltCLEARPAGE 64
583 #define ltCLIPSFUNC 66
584 #define ltCOLUMNSEP 67
586 #define ltCOPYRIGHT 69
592 #define ltCHAPTERHEADINGSTAR 73
595 #define ltDESCRIPTION 91
596 #define ltDESTRUCT 92
597 #define ltDOCUMENTSTYLE 93
598 #define ltDOCUMENT 94
599 #define ltDOUBLESPACE 95
600 #define ltDEFINECOLOUR 96
601 #define ltDEFINECOLOR 97
604 #define ltENUMERATE 121
605 #define ltEQUATION 122
606 #define ltEVENSIDEMARGIN 123
610 #define ltFLUSHLEFT 152
611 #define ltFLUSHRIGHT 153
612 #define ltFOOTHEIGHT 154
613 #define ltFOOTNOTE 155
614 #define ltFOOTSKIP 156
615 #define ltFRAMEBOX 157
616 #define ltFUNCTIONSECTION 158
618 #define ltFIGURESTAR 160
619 #define ltFOOTNOTESIZE 161
620 #define ltFOOTNOTEPOPUP 162
621 #define ltFANCYPLAIN 163
624 #define ltFOLLOWEDLINKCOLOUR 166
626 #define ltGLOSSARY 180
629 #define ltHEADHEIGHT 200
630 #define ltHELPGLOSSARY 201
631 #define ltHELPIGNORE 202
632 #define ltHELPONLY 203
633 #define ltHELPINPUT 204
634 #define ltHELPFONTFAMILY 205
635 #define ltHELPFONTSIZE 206
636 #define ltHELPREFN 207
637 #define ltHELPREF 208
641 #define ltHSPACESTAR 212
643 #define ltHSKIPSTAR 214
648 #define ltHTMLIGNORE 219
649 #define ltHTMLONLY 220
651 #define ltINCLUDEONLY 240
652 #define ltINCLUDE 241
655 #define ltITEMIZE 244
659 #define ltITEMSEP 248
660 #define ltINDENTED 249
661 #define ltIMAGEMAP 250
664 #define ltINSERTATLEVEL 253
675 #define ltLINEBREAK 287
676 #define ltLISTOFFIGURES 288
677 #define ltLISTOFTABLES 289
680 #define ltLATEXIGNORE 292
681 #define ltLATEXONLY 293
682 #define ltLOWERCASE 294
683 #define ltLBRACERAW 295
684 #define ltLINKCOLOUR 296
686 #define ltMAKEGLOSSARY 300
687 #define ltMAKEINDEX 301
688 #define ltMAKETITLE 302
689 #define ltMARKRIGHT 303
690 #define ltMARKBOTH 304
691 #define ltMARGINPARWIDTH 305
692 #define ltMARGINPAR 306
693 #define ltMARGINPARODD 307
694 #define ltMARGINPAREVEN 308
696 #define ltMEMBERSECTION 310
698 #define ltMULTICOLUMN 312
699 #define ltMARGINPARSEP 313
701 #define ltNEWCOUNTER 330
702 #define ltNEWLINE 331
703 #define ltNEWPAGE 332
705 #define ltNOINDENT 334
706 #define ltNOLINEBREAK 335
707 #define ltNOPAGEBREAK 336
708 #define ltNORMALSIZE 337
709 #define ltNORMALBOX 338
710 #define ltNORMALBOXD 339
711 #define ltNUMBEREDBIBITEM 340
713 #define ltONECOLUMN 360
714 #define ltODDSIDEMARGIN 361
716 #define ltPAGEBREAK 380
717 #define ltPAGEREF 381
718 #define ltPAGESTYLE 382
719 #define ltPAGENUMBERING 383
720 #define ltPARAGRAPHSTAR 384
721 #define ltPARAGRAPH 385
723 #define ltPARINDENT 387
724 #define ltPARSKIP 388
725 #define ltPARTSTAR 389
729 #define ltPICTURE 393
732 #define ltPRINTINDEX 396
733 #define ltPSBOXTO 397
735 #define ltPOPREFONLY 399
738 #define ltQUOTATION 421
740 #define ltRAGGEDBOTTOM 440
741 #define ltRAGGEDLEFT 441
742 #define ltRAGGEDRIGHT 442
749 #define ltRULEDROW 449
754 #define ltRTFIGNORE 454
755 #define ltRTFONLY 455
756 #define ltRBRACERAW 456
757 #define ltREGISTERED 457
760 #define ltSECTIONHEADING 471
761 #define ltSECTIONSTAR 472
762 #define ltSECTION 473
763 #define ltSETCOUNTER 474
765 #define ltSHORTCITE 476
766 #define ltSINGLESPACE 477
767 #define ltSLOPPYPAR 478
771 #define ltSUBITEM 482
772 #define ltSUBPARAGRAPHSTAR 483
773 #define ltSUBPARAGRAPH 484
774 #define ltSPECIAL 485
775 #define ltSUBSECTIONSTAR 486
776 #define ltSUBSECTION 487
777 #define ltSUBSUBSECTIONSTAR 488
778 #define ltSUBSUBSECTION 489
779 #define ltSCRIPTSIZE 490
780 #define ltSETHEADER 491
781 #define ltSETFOOTER 492
782 #define ltSIZEDBOX 493
783 #define ltSIZEDBOXD 494
784 #define ltSECTIONHEADINGSTAR 495
786 #define ltSETHOTSPOTCOLOUR 497
787 #define ltSETHOTSPOTCOLOR 498
788 #define ltSETHOTSPOTUNDERLINE 499
789 #define ltSETTRANSPARENCY 500
791 #define ltTABBING 510
792 #define ltTABLEOFCONTENTS 511
794 #define ltTABULAR 513
797 #define ltTEXTWIDTH 516
798 #define ltTEXTHEIGHT 517
799 #define ltTHEBIBLIOGRAPHY 518
800 #define ltTITLEPAGE 519
804 #define ltTOPMARGIN 523
805 #define ltTOPSKIP 524
808 #define ltTYPEOUT 527
809 #define ltTWOCOLUMN 528
810 #define ltTHEPAGE 529
811 #define ltTHECHAPTER 530
812 #define ltTHESECTION 531
813 #define ltTHISPAGESTYLE 532
815 #define ltTWOCOLWIDTHA 533
816 #define ltTWOCOLWIDTHB 534
817 #define ltTWOCOLSPACING 535
818 #define ltTWOCOLITEM 536
819 #define ltTWOCOLITEMRULED 537
820 #define ltTWOCOLLIST 538
821 #define ltTEXTCOLOUR 539
823 #define ltUNDERLINE 550
825 #define ltUPPERCASE 552
826 #define ltUSEPACKAGE 553
829 #define ltVERBATIMINPUT 571
830 #define ltVERBATIM 572
837 #define ltVSPACESTAR 579
838 #define ltVSKIPSTAR 580
841 #define ltVERBSTAR 583
843 #define ltWXCLIPS 600
844 #define ltWINHELPIGNORE 601
845 #define ltWINHELPONLY 602
847 #define ltXLPIGNORE 603
848 #define ltXLPONLY 604
851 #define ltBACKSLASHCHAR 621
853 #define ltFORWARDSLASH 623
854 #define ltUNDERSCORE 624
855 #define ltAMPERSAND 625
856 #define ltPERCENT 626
859 #define ltLPARENTH 629
860 #define ltRPARENTH 630
864 #define ltRANGLEBRA 634
865 #define ltLANGLEBRA 635
868 #define ltSINGLEQUOTE 638
869 #define ltBACKQUOTE 639
871 #define ltAT_SYMBOL 641
873 // Characters, not macros but with special Latex significance
874 #define ltSPECIALDOLLAR 660
875 #define ltSPECIALDOUBLEDOLLAR 661
876 #define ltSPECIALTILDE 662
877 #define ltSPECIALHASH 663
878 #define ltSPECIALAMPERSAND 664
879 #define ltSUPERTABULAR 665
882 #define ltACCENT_GRAVE 700
883 #define ltACCENT_ACUTE 701
884 #define ltACCENT_CARET 702
885 #define ltACCENT_UMLAUT 703
886 #define ltACCENT_TILDE 704
887 #define ltACCENT_DOT 705
888 #define ltACCENT_CADILLA 706
895 #define ltEPSILON 804
896 #define ltVAREPSILON 805
900 #define ltVARTHETA 809
912 #define ltVARSIGMA 821
914 #define ltUPSILON 823
921 #define ltCAP_GAMMA 830
922 #define ltCAP_DELTA 831
923 #define ltCAP_THETA 832
924 #define ltCAP_LAMBDA 833
927 #define ltCAP_SIGMA 836
928 #define ltCAP_UPSILON 837
929 #define ltCAP_PHI 838
930 #define ltCAP_PSI 839
931 #define ltCAP_OMEGA 840
933 // Binary operation symbols
938 #define ltSUBSETEQ 854
939 #define ltSQSUBSET 855
940 #define ltSQSUBSETEQ 856
948 #define ltSUPSETEQ 864
949 #define ltSQSUPSET 865
950 #define ltSQSUPSETEQ 866
962 #define ltPARALLEL 878
973 // Negated relation symbols (selected)
976 #define ltNOTSUBSET 892
979 #define ltLEFTARROW 900
980 #define ltLEFTARROW2 901
981 #define ltRIGHTARROW 902
982 #define ltRIGHTARROW2 903
983 #define ltLEFTRIGHTARROW 904
984 #define ltLEFTRIGHTARROW2 905
985 #define ltUPARROW 906
986 #define ltUPARROW2 907
987 #define ltDOWNARROW 908
988 #define ltDOWNARROW2 909
990 // Miscellaneous symbols
995 #define ltEMPTYSET 1004
998 #define ltPARTIAL 1007
1000 #define ltFORALL 1009
1001 #define ltEXISTS 1010
1003 #define ltSHARP 1012
1004 #define ltANGLE 1013
1005 #define ltTRIANGLE 1014
1006 #define ltCLUBSUIT 1015
1007 #define ltDIAMONDSUIT 1016
1008 #define ltHEARTSUIT 1017
1009 #define ltSPADESUIT 1018
1010 #define ltINFTY 1019
1012 // Binary operation symbols
1015 #define ltTIMES 1032
1023 #define ltWEDGE 1040
1025 #define ltBULLET 1042
1026 #define ltDIAMOND 1043
1027 #define ltOSLASH 1044
1029 #define ltDIAMOND2 1046
1030 #define ltBIGTRIANGLEDOWN 1047
1031 #define ltOPLUS 1048
1032 #define ltOTIMES 1049
1035 #define ltRMFAMILY 1200
1036 #define ltSFFAMILY 1201
1037 #define ltTTFAMILY 1202
1038 #define ltBFSERIES 1203
1039 #define ltITSHAPE 1204
1040 #define ltSLSHAPE 1205
1041 #define ltSCSHAPE 1206
1043 #define ltMDSERIES 1207
1044 #define ltUPSHAPE 1208
1046 #define ltTEXTRM 1209
1047 #define ltTEXTSF 1210
1048 #define ltTEXTTT 1211
1049 #define ltTEXTBF 1212
1050 #define ltTEXTIT 1213
1051 #define ltTEXTSL 1214
1052 #define ltTEXTSC 1215
1055 #define ltDOCUMENTCLASS 1217
1058 #define ltSMALLSPACE1 1250
1059 #define ltSMALLSPACE2 1251
1062 #define ltTOPLEVEL 15000
1063 #define ltCUSTOM_MACRO 15001
1064 #define ltSOLO_BLOCK 15002