w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

equation.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EQN_DOLLAR   2 /* ('$') */
 
#define EQN_RND_OPEN   3 /* ('/(') */
 
#define EQN_BRACKET_OPEN   4 /* ('/[') */
 
#define EQN_RND_CLOSE   5 /* ('/)') */
 
#define EQN_BRACKET_CLOSE   6 /* ('/]') */
 
#define EQN_ARRAY   8 /* eqnarray environment */
 
#define EQN_ARRAY_STAR   9 /* eqnarray* environment */
 
#define EQN_EQUATION   10 /* equation environment */
 
#define EQN_EQUATION_STAR   11 /* equation* environment */
 
#define EQN_MATH   12 /* \begin{math} ... \end{math} */
 
#define EQN_DISPLAYMATH   13 /* \begin{displaymath} ... \end{displaymath} */
 
#define EQN_DOLLAR_DOLLAR   14 /* \begin{displaymath} ... \end{displaymath} */
 
#define EQN_NO_NUMBER   15 /* \nonumber */
 
#define LEFT_RIGHT   1
 
#define RIGHT_LEFT   2
 
#define LONG_LEFTRIGHT   3
 
#define LONG_RIGHTLEFT   4
 
#define LEFT_LEFT   5
 
#define RIGHT_RIGHT   6
 

Functions

void CmdEquation (int code)
 
void CmdFraction (int code)
 
void CmdRoot (int code)
 
void CmdLim (int code)
 
void CmdIntegral (int code)
 
void CmdSuperscript (int code)
 
void CmdSubscript (int code)
 
void CmdNonumber (int code)
 
void CmdArray (int code)
 
void CmdLeftRight (int code)
 
void CmdMatrix (int code)
 
void CmdStackrel (int code)
 
void CmdArrows (int code)
 
void WriteLatexAsBitmap (char *pre, char *eq, char *post)
 

Macro Definition Documentation

◆ EQN_ARRAY

#define EQN_ARRAY   8 /* eqnarray environment */

Definition at line 6 of file equation.h.

◆ EQN_ARRAY_STAR

#define EQN_ARRAY_STAR   9 /* eqnarray* environment */

Definition at line 7 of file equation.h.

◆ EQN_BRACKET_CLOSE

#define EQN_BRACKET_CLOSE   6 /* ('/]') */

Definition at line 5 of file equation.h.

◆ EQN_BRACKET_OPEN

#define EQN_BRACKET_OPEN   4 /* ('/[') */

Definition at line 3 of file equation.h.

◆ EQN_DISPLAYMATH

#define EQN_DISPLAYMATH   13 /* \begin{displaymath} ... \end{displaymath} */

Definition at line 11 of file equation.h.

◆ EQN_DOLLAR

#define EQN_DOLLAR   2 /* ('$') */

Definition at line 1 of file equation.h.

◆ EQN_DOLLAR_DOLLAR

#define EQN_DOLLAR_DOLLAR   14 /* \begin{displaymath} ... \end{displaymath} */

Definition at line 12 of file equation.h.

◆ EQN_EQUATION

#define EQN_EQUATION   10 /* equation environment */

Definition at line 8 of file equation.h.

◆ EQN_EQUATION_STAR

#define EQN_EQUATION_STAR   11 /* equation* environment */

Definition at line 9 of file equation.h.

◆ EQN_MATH

#define EQN_MATH   12 /* \begin{math} ... \end{math} */

Definition at line 10 of file equation.h.

◆ EQN_NO_NUMBER

#define EQN_NO_NUMBER   15 /* \nonumber */

Definition at line 13 of file equation.h.

◆ EQN_RND_CLOSE

#define EQN_RND_CLOSE   5 /* ('/)') */

Definition at line 4 of file equation.h.

◆ EQN_RND_OPEN

#define EQN_RND_OPEN   3 /* ('/(') */

Definition at line 2 of file equation.h.

◆ LEFT_LEFT

#define LEFT_LEFT   5

Definition at line 19 of file equation.h.

◆ LEFT_RIGHT

#define LEFT_RIGHT   1

Definition at line 15 of file equation.h.

◆ LONG_LEFTRIGHT

#define LONG_LEFTRIGHT   3

Definition at line 17 of file equation.h.

◆ LONG_RIGHTLEFT

#define LONG_RIGHTLEFT   4

Definition at line 18 of file equation.h.

◆ RIGHT_LEFT

#define RIGHT_LEFT   2

Definition at line 16 of file equation.h.

◆ RIGHT_RIGHT

#define RIGHT_RIGHT   6

Definition at line 20 of file equation.h.

Function Documentation

◆ CmdArray()

void CmdArray ( int  code)

purpose : Handles \begin{array}[c]{ccc} ... \end{array}

Definition at line 1169 of file equation.c.

References diagnostics(), fprintRTF(), free, g_processing_arrays, getBraceParam(), getBracketParam(), n, ON, and s.

◆ CmdArrows()

void CmdArrows ( int  code)

converts: amssymb \leftrightarrows and \rightleftarrows

Definition at line 787 of file equation.c.

References ConvertString(), CurrentFontSize(), fprintRTF(), g_field_separator, int(), LEFT_LEFT, LEFT_RIGHT, LONG_LEFTRIGHT, LONG_RIGHTLEFT, RIGHT_LEFT, RIGHT_RIGHT, and size.

◆ CmdEquation()

◆ CmdFraction()

void CmdFraction ( int  code)

◆ CmdIntegral()

void CmdIntegral ( int  code)

purpose: converts integral symbol and the "exponent" and "subscript" fields parameter: type of operand

Definition at line 884 of file equation.c.

References command, ConvertString(), diagnostics(), ERROR, FALSE, fprintRTF(), free, g_field_separator, g_fields_use_EQ, getBraceParam(), getNonBlank(), getSimpleCommand(), limits, no_limits, NULL, PushSource(), RtfFontNumber(), script_shift(), script_size(), strcmp(), TRUE, ungetTexChar(), and WARNING__.

◆ CmdLeftRight()

void CmdLeftRight ( int  code)

purpose : Handles \left \right to properly handle \left. or \right. would require prescanning the entire equation.

Definition at line 1095 of file equation.c.

References ConvertString(), diagnostics(), ERROR, fprintRTF(), g_fields_use_EQ, getLeftRightParam(), getNonSpace(), getTexChar(), putRtfChar(), SubSupWorker(), and TRUE.

◆ CmdLim()

void CmdLim ( int  code)

purpose: handles \lim parameter: 0=\lim, 1=\limsup, 2=\liminf

Definition at line 837 of file equation.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_fields_use_EQ, getBraceParam(), getNonBlank(), NULL, s, script_shift(), script_size(), strdup, and ungetTexChar().

◆ CmdMatrix()

void CmdMatrix ( int  code)

purpose : Does not handle plain tex \matrix command, but does not produce improper RTF either.

Definition at line 1201 of file equation.c.

References fprintRTF(), free, and getBraceParam().

◆ CmdNonumber()

void CmdNonumber ( int  code)

purpose : Handles \nonumber to suppress numbering in equations

Definition at line 59 of file equation.c.

References g_processing_eqnarray, g_processing_tabular, g_suppress_equation_number, and TRUE.

◆ CmdRoot()

void CmdRoot ( int  code)

purpose: converts \sqrt{x} or \root[\alpha]{x+y}

Definition at line 714 of file equation.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_fields_use_EQ, getBraceParam(), getBracketParam(), NULL, power, root, RtfFontNumber(), script_shift(), script_size(), and strlen().

◆ CmdStackrel()

void CmdStackrel ( int  code)

purpose : Handles \stackrel{a}{=}

Definition at line 1215 of file equation.c.

References ConvertString(), CurrentFontSize(), diagnostics(), fprintRTF(), free, g_field_separator, g_fields_use_EQ, getBraceParam(), size, and WARNING__.

◆ CmdSubscript()

void CmdSubscript ( int  code)

purpose : Handles subscripts _\alpha, _a, _{a}, code=0 \textsubscript{script} code=1

Definition at line 1072 of file equation.c.

References ConvertString(), FALSE, fprintRTF(), free, g_fields_use_EQ, getBraceParam(), NULL, s, script_shift(), script_size(), SubSupWorker(), and ungetTexChar().

Referenced by Convert().

◆ CmdSuperscript()

void CmdSuperscript ( int  code)

purpose : Handles superscripts ^\alpha, ^a, ^{a} code=0 \textsuperscript{a} code=1

Definition at line 1049 of file equation.c.

References ConvertString(), FALSE, fprintRTF(), free, g_fields_use_EQ, getBraceParam(), NULL, s, script_shift(), script_size(), SubSupWorker(), and ungetTexChar().

Referenced by Convert().

◆ WriteLatexAsBitmap()

void WriteLatexAsBitmap ( char *  pre,
char *  eq,
char *  post 
)

purpose : Convert LaTeX to Bitmap and write to RTF file

Definition at line 277 of file equation.c.

References diagnostics(), g_png_equation_scale, g_png_figure_scale, name, NULL, p, pre, PutLatexFile(), SaveEquationAsFile(), scale, strcmp(), strlen(), and strstr().

Referenced by CmdEquation(), CmdFigure(), CmdMusic(), and CmdPicture().