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)  

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

Go to the source code of this file.

Macros

#define THANKS   2
 
#define CMD_BEGIN   1
 
#define CMD_END   2
 
#define PAR_CENTER   1
 
#define PAR_RIGHT   2
 
#define PAR_LEFT   3
 
#define PAR_CENTERLINE   4
 
#define PAR_VCENTER   5
 
#define PAR_RAGGEDRIGHT   6
 
#define BOX_HBOX   1
 
#define BOX_VBOX   2
 
#define BOX_MBOX   3
 
#define BOX_FBOX   4
 
#define BOX_PARBOX   5
 
#define FIRST_PAR   1
 
#define ANY_PAR   2
 
#define TITLE_PAR   3
 
#define INDENT_NONE   1
 
#define INDENT_INHIBIT   2
 
#define INDENT_USUAL   3
 
#define VERBATIM_1   1
 
#define VERBATIM_2   2
 
#define VERBATIM_3   3
 
#define VERBATIM_4   4
 
#define VERB_VERB   1
 
#define VERB_STAR   2
 
#define VERB_URL   3
 
#define VSPACE_VSPACE   -1
 
#define VSPACE_VSKIP   0
 
#define VSPACE_SMALL_SKIP   1
 
#define VSPACE_MEDIUM_SKIP   2
 
#define VSPACE_BIG_SKIP   3
 
#define DEF_NEW   1
 
#define DEF_RENEW   2
 
#define DEF_DEF   3
 
#define SECT_PART   1
 
#define SECT_CHAPTER   2
 
#define SECT_NORM   3
 
#define SECT_SUB   4
 
#define SECT_SUBSUB   5
 
#define SECT_SUBSUBSUB   6
 
#define SECT_SUBSUBSUBSUB   7
 
#define SECT_PART_STAR   11
 
#define SECT_CHAPTER_STAR   12
 
#define SECT_NORM_STAR   13
 
#define SECT_SUB_STAR   14
 
#define SECT_SUBSUB_STAR   15
 
#define SECT_SUBSUBSUB_STAR   16
 
#define SECT_SUBSUBSUBSUB_STAR   17
 
#define SECT_CAPTION   8
 
#define QUOTE   1
 
#define QUOTATION   2
 
#define RESET_ITEM_COUNTER   0
 
#define COUNTER_NEW   1
 
#define COUNTER_SET   2
 
#define COUNTER_ADD   3
 
#define COUNTER_VALUE   4
 
#define LENGTH_NEW   1
 
#define LENGTH_SET   2
 
#define LENGTH_ADD   3
 
#define GP_CK   1
 
#define GP_LDBL   2
 
#define GP_L   3
 
#define GP_R   4
 
#define GP_RDBL   5
 
#define FIGURE   1
 
#define FIGURE_1   5
 
#define IGNORE_HTMLONLY   1
 
#define IGNORE_PICTURE   2
 
#define IGNORE_MINIPAGE   3
 
#define IGNORE_RAWHTML   4
 
#define No_Opt_One_NormParam   01
 
#define No_Opt_Two_NormParam   02
 
#define No_Opt_Three_NormParam   03
 
#define One_Opt_No_NormParam   10
 
#define One_Opt_One_NormParam   11
 
#define One_Opt_Two_NormParam   12
 
#define One_Opt_Three_NormParam   13
 
#define Two_Opt_No_NormParam   20
 
#define Two_Opt_One_NormParam   21
 
#define Two_Opt_Two_NormParam   22
 
#define Two_Opt_Three_NormParam   23
 
#define One_Column   1
 
#define Two_Column   2
 
#define NewPage   1
 
#define NewColumn   2
 

Functions

void CmdBeginEnd (int code)
 
void CmdStartParagraph (int code)
 
void CmdEndParagraph (int code)
 
void CmdIndent (int code)
 
void CmdVspace (int code)
 
void CmdSlashSlash (int code)
 
void CmdNewDef (int code)
 
void CmdNewEnvironment (int code)
 
void CmdAlign (int code)
 
void CmdToday (int code)
 
void CmdIgnore (int code)
 
void CmdLdots (int code)
 
void Environment (int code)
 
void CmdSection (int code)
 
void CmdQuote (int code)
 
void CmdList (int code)
 
void CmdCounter (int code)
 
void CmdLength (int code)
 
void CmdCaption (int code)
 
void CmdBox (int code)
 
void CmdVerb (int code)
 
void CmdVerbatim (int code)
 
void CmdVerse (int code)
 
void TranslateGerman (void)
 
void GermanPrint (int code)
 
void CmdIgnoreLet (int code)
 
void CmdIgnoreDef (int code)
 
void CmdItem (int code)
 
void CmdMinipage (int code)
 
void CmdIgnoreEnviron (int code)
 
void CmdFigure (int code)
 
void Cmd_OptParam_Without_braces (int code)
 
void CmdColumn (int code)
 
void CmdNewPage (int code)
 
void GetInputParam (char *, int)
 
void CmdBottom (int code)
 
void CmdAbstract (int code)
 
void CmdTitlepage (int code)
 
void CmdAnnotation (int code)
 
void CmdLink (int code)
 
void CmdTextColor (int code)
 
void GetRequiredParam (char *string, int size)
 
void CmdQuad (int kk)
 
void CmdColsep (int code)
 
void CmdSpace (float kk)
 
void CmdVerbosityLevel (int code)
 
void CmdNonBreakSpace (int code)
 
char * FormatUnitNumber (char *name)
 
void CmdNewTheorem (int code)
 
void CmdInclude (int code)
 
void CmdEndInput (int code)
 
void CmdIf (int code)
 

Variables

bool g_processing_list_environment
 

Macro Definition Documentation

◆ ANY_PAR

#define ANY_PAR   2

Definition at line 41 of file funct1.h.

◆ BOX_FBOX

#define BOX_FBOX   4

Definition at line 37 of file funct1.h.

◆ BOX_HBOX

#define BOX_HBOX   1

Definition at line 34 of file funct1.h.

◆ BOX_MBOX

#define BOX_MBOX   3

Definition at line 36 of file funct1.h.

◆ BOX_PARBOX

#define BOX_PARBOX   5

Definition at line 38 of file funct1.h.

◆ BOX_VBOX

#define BOX_VBOX   2

Definition at line 35 of file funct1.h.

◆ CMD_BEGIN

#define CMD_BEGIN   1

Definition at line 24 of file funct1.h.

◆ CMD_END

#define CMD_END   2

Definition at line 25 of file funct1.h.

◆ COUNTER_ADD

#define COUNTER_ADD   3

Definition at line 112 of file funct1.h.

◆ COUNTER_NEW

#define COUNTER_NEW   1

Definition at line 110 of file funct1.h.

◆ COUNTER_SET

#define COUNTER_SET   2

Definition at line 111 of file funct1.h.

◆ COUNTER_VALUE

#define COUNTER_VALUE   4

Definition at line 113 of file funct1.h.

◆ DEF_DEF

#define DEF_DEF   3

Definition at line 72 of file funct1.h.

◆ DEF_NEW

#define DEF_NEW   1

Definition at line 70 of file funct1.h.

◆ DEF_RENEW

#define DEF_RENEW   2

Definition at line 71 of file funct1.h.

◆ FIGURE

#define FIGURE   1

Definition at line 141 of file funct1.h.

◆ FIGURE_1

#define FIGURE_1   5

Definition at line 142 of file funct1.h.

◆ FIRST_PAR

#define FIRST_PAR   1

Definition at line 40 of file funct1.h.

◆ GP_CK

#define GP_CK   1

Definition at line 130 of file funct1.h.

◆ GP_L

#define GP_L   3

Definition at line 132 of file funct1.h.

◆ GP_LDBL

#define GP_LDBL   2

Definition at line 131 of file funct1.h.

◆ GP_R

#define GP_R   4

Definition at line 133 of file funct1.h.

◆ GP_RDBL

#define GP_RDBL   5

Definition at line 134 of file funct1.h.

◆ IGNORE_HTMLONLY

#define IGNORE_HTMLONLY   1

Definition at line 144 of file funct1.h.

◆ IGNORE_MINIPAGE

#define IGNORE_MINIPAGE   3

Definition at line 146 of file funct1.h.

◆ IGNORE_PICTURE

#define IGNORE_PICTURE   2

Definition at line 145 of file funct1.h.

◆ IGNORE_RAWHTML

#define IGNORE_RAWHTML   4

Definition at line 147 of file funct1.h.

◆ INDENT_INHIBIT

#define INDENT_INHIBIT   2

Definition at line 45 of file funct1.h.

◆ INDENT_NONE

#define INDENT_NONE   1

Definition at line 44 of file funct1.h.

◆ INDENT_USUAL

#define INDENT_USUAL   3

Definition at line 46 of file funct1.h.

◆ LENGTH_ADD

#define LENGTH_ADD   3

Definition at line 119 of file funct1.h.

◆ LENGTH_NEW

#define LENGTH_NEW   1

Definition at line 117 of file funct1.h.

◆ LENGTH_SET

#define LENGTH_SET   2

Definition at line 118 of file funct1.h.

◆ NewColumn

#define NewColumn   2

Definition at line 165 of file funct1.h.

◆ NewPage

#define NewPage   1

Definition at line 164 of file funct1.h.

◆ No_Opt_One_NormParam

#define No_Opt_One_NormParam   01

Definition at line 149 of file funct1.h.

◆ No_Opt_Three_NormParam

#define No_Opt_Three_NormParam   03

Definition at line 151 of file funct1.h.

◆ No_Opt_Two_NormParam

#define No_Opt_Two_NormParam   02

Definition at line 150 of file funct1.h.

◆ One_Column

#define One_Column   1

Definition at line 161 of file funct1.h.

◆ One_Opt_No_NormParam

#define One_Opt_No_NormParam   10

Definition at line 152 of file funct1.h.

◆ One_Opt_One_NormParam

#define One_Opt_One_NormParam   11

Definition at line 153 of file funct1.h.

◆ One_Opt_Three_NormParam

#define One_Opt_Three_NormParam   13

Definition at line 155 of file funct1.h.

◆ One_Opt_Two_NormParam

#define One_Opt_Two_NormParam   12

Definition at line 154 of file funct1.h.

◆ PAR_CENTER

#define PAR_CENTER   1

Definition at line 27 of file funct1.h.

◆ PAR_CENTERLINE

#define PAR_CENTERLINE   4

Definition at line 30 of file funct1.h.

◆ PAR_LEFT

#define PAR_LEFT   3

Definition at line 29 of file funct1.h.

◆ PAR_RAGGEDRIGHT

#define PAR_RAGGEDRIGHT   6

Definition at line 32 of file funct1.h.

◆ PAR_RIGHT

#define PAR_RIGHT   2

Definition at line 28 of file funct1.h.

◆ PAR_VCENTER

#define PAR_VCENTER   5

Definition at line 31 of file funct1.h.

◆ QUOTATION

#define QUOTATION   2

Definition at line 103 of file funct1.h.

◆ QUOTE

#define QUOTE   1

Definition at line 102 of file funct1.h.

◆ RESET_ITEM_COUNTER

#define RESET_ITEM_COUNTER   0

Definition at line 106 of file funct1.h.

◆ SECT_CAPTION

#define SECT_CAPTION   8

Definition at line 99 of file funct1.h.

◆ SECT_CHAPTER

#define SECT_CHAPTER   2

Definition at line 84 of file funct1.h.

◆ SECT_CHAPTER_STAR

#define SECT_CHAPTER_STAR   12

Definition at line 92 of file funct1.h.

◆ SECT_NORM

#define SECT_NORM   3

Definition at line 85 of file funct1.h.

◆ SECT_NORM_STAR

#define SECT_NORM_STAR   13

Definition at line 93 of file funct1.h.

◆ SECT_PART

#define SECT_PART   1

Definition at line 83 of file funct1.h.

◆ SECT_PART_STAR

#define SECT_PART_STAR   11

Definition at line 91 of file funct1.h.

◆ SECT_SUB

#define SECT_SUB   4

Definition at line 86 of file funct1.h.

◆ SECT_SUB_STAR

#define SECT_SUB_STAR   14

Definition at line 94 of file funct1.h.

◆ SECT_SUBSUB

#define SECT_SUBSUB   5

Definition at line 87 of file funct1.h.

◆ SECT_SUBSUB_STAR

#define SECT_SUBSUB_STAR   15

Definition at line 95 of file funct1.h.

◆ SECT_SUBSUBSUB

#define SECT_SUBSUBSUB   6

Definition at line 88 of file funct1.h.

◆ SECT_SUBSUBSUB_STAR

#define SECT_SUBSUBSUB_STAR   16

Definition at line 96 of file funct1.h.

◆ SECT_SUBSUBSUBSUB

#define SECT_SUBSUBSUBSUB   7

Definition at line 89 of file funct1.h.

◆ SECT_SUBSUBSUBSUB_STAR

#define SECT_SUBSUBSUBSUB_STAR   17

Definition at line 97 of file funct1.h.

◆ THANKS

#define THANKS   2

Definition at line 22 of file funct1.h.

◆ TITLE_PAR

#define TITLE_PAR   3

Definition at line 42 of file funct1.h.

◆ Two_Column

#define Two_Column   2

Definition at line 162 of file funct1.h.

◆ Two_Opt_No_NormParam

#define Two_Opt_No_NormParam   20

Definition at line 156 of file funct1.h.

◆ Two_Opt_One_NormParam

#define Two_Opt_One_NormParam   21

Definition at line 157 of file funct1.h.

◆ Two_Opt_Three_NormParam

#define Two_Opt_Three_NormParam   23

Definition at line 159 of file funct1.h.

◆ Two_Opt_Two_NormParam

#define Two_Opt_Two_NormParam   22

Definition at line 158 of file funct1.h.

◆ VERB_STAR

#define VERB_STAR   2

Definition at line 54 of file funct1.h.

◆ VERB_URL

#define VERB_URL   3

Definition at line 55 of file funct1.h.

◆ VERB_VERB

#define VERB_VERB   1

Definition at line 53 of file funct1.h.

◆ VERBATIM_1

#define VERBATIM_1   1

Definition at line 48 of file funct1.h.

◆ VERBATIM_2

#define VERBATIM_2   2

Definition at line 49 of file funct1.h.

◆ VERBATIM_3

#define VERBATIM_3   3

Definition at line 50 of file funct1.h.

◆ VERBATIM_4

#define VERBATIM_4   4

Definition at line 51 of file funct1.h.

◆ VSPACE_BIG_SKIP

#define VSPACE_BIG_SKIP   3

Definition at line 61 of file funct1.h.

◆ VSPACE_MEDIUM_SKIP

#define VSPACE_MEDIUM_SKIP   2

Definition at line 60 of file funct1.h.

◆ VSPACE_SMALL_SKIP

#define VSPACE_SMALL_SKIP   1

Definition at line 59 of file funct1.h.

◆ VSPACE_VSKIP

#define VSPACE_VSKIP   0

Definition at line 58 of file funct1.h.

◆ VSPACE_VSPACE

#define VSPACE_VSPACE   -1

Definition at line 57 of file funct1.h.

Function Documentation

◆ Cmd_OptParam_Without_braces()

void Cmd_OptParam_Without_braces ( int  code)

purpose: gets an optional parameter which isn't surrounded by braces but by spaces

Definition at line 1765 of file funct1.c.

References getTexChar(), isdigit, and ungetTexChar().

◆ CmdAbstract()

void CmdAbstract ( int  code)

parameter: code: on/off-option globals : article and titlepage from the documentstyle

Definition at line 1807 of file funct1.c.

References alignment, CmdEndParagraph(), CmdStartParagraph(), CmdVspace(), ConvertBabelName(), FIRST_PAR, FORMAT_REPORT, fprintRTF(), g_document_type, g_left_margin_indent, g_right_margin_indent, JUSTIFIED, ON, titlepage, and VSPACE_MEDIUM_SKIP.

◆ CmdAlign()

void CmdAlign ( int  code)

purpose : sets the alignment for a paragraph parameter : code: alignment centered, justified, left or right globals: alignment: alignment of paragraphs

Definition at line 514 of file funct1.c.

References alignment, CENTERED, CmdEndParagraph(), CmdIndent(), Convert(), diagnostics(), fprintRTF(), free, getBraceParam(), INDENT_INHIBIT, INDENT_NONE, JUSTIFIED, LEFT, OFF, ON, PAR_CENTER, PAR_CENTERLINE, PAR_LEFT, PAR_RAGGEDRIGHT, PAR_RIGHT, PAR_VCENTER, RIGHT, and s.

◆ CmdAnnotation()

void CmdAnnotation ( int  code)

◆ CmdBeginEnd()

void CmdBeginEnd ( int  code)

purpose: reads the parameter after the \begin or \end-command; ( see also getBraceParam ) after reading the parameter the CallParamFunc-function calls the handling-routine for that special environment parameter: code: CMD_BEGIN: start of environment CMD_END: end of environment

Definition at line 446 of file funct1.c.

References CallParamFunc(), CMD_BEGIN, CmdEndParagraph(), CmdIndent(), CmdStartParagraph(), CmdVspace(), ConvertString(), diagnostics(), existsEnvironment(), existsTheorem(), expandEnvironment(), expandTheorem(), FIRST_PAR, fprintRTF(), free, getBraceParam(), getBracketParam(), i, INDENT_INHIBIT, OFF, ON, option, PopBrace(), PushBrace(), s, str, strcmp(), void, and VSPACE_SMALL_SKIP.

◆ CmdBottom()

void CmdBottom ( int  code)

purpose: ignore raggedbottom command

Definition at line 1795 of file funct1.c.

◆ CmdBox()

void CmdBox ( int  code)

◆ CmdCaption()

◆ CmdColsep()

void CmdColsep ( int  code)

purpose: hyperlatex support, handles '&' as in Convert() in convert.c only called by \S

Definition at line 1875 of file funct1.c.

References actCol, colFmt, diagnostics(), fprintRTF(), g_processing_tabular, GetTexMode(), MODE_DISPLAYMATH, NULL, and WARNING__.

◆ CmdColumn()

void CmdColumn ( int  code)

purpose: chooses between one/two-columns parameter: number of columns globals: twocolumn: true if twocolumn-mode is set

Definition at line 1722 of file funct1.c.

References FALSE, fprintRTF(), One_Column, TRUE, Two_Column, and twocolumn.

◆ CmdCounter()

void CmdCounter ( int  code)

purpose: handles \newcounter, \setcounter, \addtocounter, \value

Definition at line 975 of file funct1.c.

References COUNTER_ADD, COUNTER_NEW, COUNTER_SET, diagnostics(), fprintf, free, getBraceParam(), getCounter(), num, s, s2, s3, s4, setCounter(), sscanf(), and strchr.

◆ CmdEndInput()

void CmdEndInput ( int  code)

purpose: handles \endinput

Definition at line 2010 of file funct1.c.

References PopSource().

◆ CmdEndParagraph()

◆ CmdFigure()

void CmdFigure ( int  code)

purpose: Process \begin{figure} ... \end{figure} environment This is only complicated because we need to know what to label the caption before the caption is processed. So we just slurp the figure environment, extract the tag, and then process the environment as usual.

Definition at line 1560 of file funct1.c.

References caption, CmdEndParagraph(), CmdStartParagraph(), CmdVspace(), ConvertString(), diagnostics(), ExtractAndRemoveTag(), ExtractLabelTag(), FALSE, FIGURE, FIRST_PAR, free, g_figure_label, g_latex_figures, g_processing_figure, getBracketParam(), getTexUntil(), label, loc, ON, TRUE, VSPACE_SMALL_SKIP, and WriteLatexAsBitmap().

◆ CmdIf()

void CmdIf ( int  code)

purpose: handles \ifx by skippint to next \fi

Definition at line 2000 of file funct1.c.

References FALSE, free, getTexUntil(), and s.

◆ CmdIgnore()

void CmdIgnore ( int  code)

purpose: allows handling of constructs that do not require changes to RTF

Definition at line 604 of file funct1.c.

Referenced by TranslateCommand().

◆ CmdIgnoreDef()

void CmdIgnoreDef ( int  code)

purpose: newenvironments or newcommands which are defined by the user aren't converted into Rtf and so they must be ignored

Definition at line 1431 of file funct1.c.

References getTexChar(), and parseBrace().

◆ CmdIgnoreEnviron()

void CmdIgnoreEnviron ( int  code)

purpose: function to ignore \begin{environ} ... \end{environ}

Definition at line 1602 of file funct1.c.

References ConvertString(), free, getTexUntil(), IGNORE_HTMLONLY, IGNORE_MINIPAGE, IGNORE_RAWHTML, NULL, ON, s, and strdup.

◆ CmdIgnoreLet()

void CmdIgnoreLet ( int  code)

purpose : ignore \let Format: \let\XXXXX = \YYYYYY or \let\XXXXX\YYYYYY

Definition at line 1521 of file funct1.c.

References getTexChar(), and skipSpaces().

◆ CmdInclude()

void CmdInclude ( int  code)

purpose: handles \input file, \input{file},

Definition at line 1965 of file funct1.c.

References diagnostics(), free, getBraceParam(), getNonSpace(), getTexChar(), i, isspace, name, NULL, PushSource(), s, strdup, strdup_together(), strstr(), t, ungetTexChar(), and WARNING__.

◆ CmdIndent()

void CmdIndent ( int  code)

purpose : set flags so that CmdStartParagraph() does the right thing

       INDENT_INHIBIT allows the next paragraph to be indented if
       a paragraph break occurs before CmdStartParagraph() is called

      INDENT_NONE tells CmdStartParagraph() to not indent the next paragraph

      INDENT_USUAL has CmdStartParagraph() use the value of \parindent

Definition at line 339 of file funct1.c.

References diagnostics(), FALSE, g_paragraph_inhibit_indent, g_paragraph_no_indent, GetTexMode(), INDENT_INHIBIT, INDENT_NONE, INDENT_USUAL, and TRUE.

Referenced by CmdAlign(), CmdBeginEnd(), CmdBox(), CmdItem(), CmdList(), CmdMusic(), CmdQuote(), CmdSlashSlash(), CmdTabbing(), CmdTable(), CmdVerbatim(), CmdVerse(), FinishRtfEquation(), Ignore_Environment(), and TabularPreamble().

◆ CmdItem()

void CmdItem ( int  code)

purpose : handles \item command. Since the \item command is delimited by a later \item command or the ending of an environment (\end{itemize}) this routine will get called recursively.

Definition at line 1166 of file funct1.c.

References CmdEndParagraph(), CmdIndent(), CmdStartParagraph(), ConvertString(), DESCRIPTION, diagnostics(), DirectVspace(), ENUMERATE, FALSE, FIRST_PAR, fprintRTF(), free, FrenchMode, g_enumerate_depth, g_processing_list_environment, getBracketParam(), getLength(), getNonBlank(), INDENT_NONE, INDENT_USUAL, ITEMIZE, RESET_ITEM_COUNTER, roman_item(), TRUE, and ungetTexChar().

Referenced by CmdList().

◆ CmdLdots()

void CmdLdots ( int  code)

purpose: converts the LaTeX-\ldots-command into "..." in Rtf

Definition at line 612 of file funct1.c.

References fprintRTF(), GetTexMode(), MODE_DISPLAYMATH, MODE_HORIZONTAL, MODE_MATH, and SetTexMode().

◆ CmdLength()

void CmdLength ( int  code)

purpose: handles \newlength, \setlength, \addtolength purpose: handle \textwidth=0.8in or \moveright0.1\textwidth

Definition at line 1018 of file funct1.c.

References diagnostics(), fprintf, free, getBraceParam(), getDimension(), getLength(), getNonSpace(), getTexChar(), LENGTH_ADD, LENGTH_NEW, LENGTH_SET, num, s, s1, setLength(), skipSpaces(), strlen(), and ungetTexChar().

◆ CmdLink()

void CmdLink ( int  code)

purpose: hyperlatex support for anchor}[ltx]{label} and \xlink{anchor}[printed reference]{URL}

Definition at line 1697 of file funct1.c.

References ConvertString(), diagnostics(), FixTildes(), fprintRTF(), free, getBraceParam(), getBracketParam(), and latex.

◆ CmdList()

void CmdList ( int  code)

◆ CmdMinipage()

void CmdMinipage ( int  code)

purpose: recognize and parse Minipage parameters currently this does nothing

Definition at line 1855 of file funct1.c.

References free, getBraceParam(), getBracketParam(), OFF, ON, and width.

◆ CmdNewDef()

void CmdNewDef ( int  code)

◆ CmdNewEnvironment()

◆ CmdNewPage()

void CmdNewPage ( int  code)

purpose: starts a new page parameter: code: newpage or newcolumn-option globals: twocolumn: true if twocolumn-mode is set

Definition at line 1742 of file funct1.c.

References CmdEndParagraph(), fprintRTF(), NewColumn, NewPage, and twocolumn.

◆ CmdNewTheorem()

void CmdNewTheorem ( int  code)

◆ CmdNonBreakSpace()

void CmdNonBreakSpace ( int  code)

Definition at line 1957 of file funct1.c.

References fprintRTF(), getNonSpace(), and ungetTexChar().

◆ CmdQuad()

void CmdQuad ( int  kk)

purpose: inserts kk quad spaces (D. Taupin)

Definition at line 1539 of file funct1.c.

References fprintRTF(), and z.

◆ CmdQuote()

void CmdQuote ( int  code)

purpose: handles \begin{quote} ... \end{quote} \begin{quotation} ... \end{quotation} globals: indent which is the left-indent-position

Definition at line 1072 of file funct1.c.

References CmdEndParagraph(), CmdIndent(), CmdVspace(), diagnostics(), g_left_margin_indent, g_right_margin_indent, GENERIC_ENV, INDENT_INHIBIT, INDENT_USUAL, OFF, ON, PopEnvironment(), PushEnvironment(), QUOTATION, QUOTE, setLength(), and VSPACE_SMALL_SKIP.

◆ CmdSection()

◆ CmdSlashSlash()

◆ CmdSpace()

void CmdSpace ( float  kk)

purpose: inserts a space of width kk*space

Definition at line 1550 of file funct1.c.

References CurrentFontSize(), fprintRTF(), and size.

Referenced by TranslateCommand().

◆ CmdStartParagraph()

void CmdStartParagraph ( int  code)

purpose : RTF codes to create a new paragraph. If the paragraph should not be indented then emit \fi0 otherwise use the current value of \parindent as the indentation of the first line.

Sometimes it is necessary to know what the next paragraph will be before it has been parsed. For example, a section command should create a paragraph for the section title and then the next paragraph encountered should be handled like as a first paragraph. So status is set to 2 and decremented to 1 when the section title paragraph is started.

If the status is 1, then it is the first paragraph in a section. Usually the first paragraph is not indented. However, when the document is being typeset in french it should have normal indentation. Another special case occurs when the paragraph being typeset is in a list environment. In this case, we need to indent according to the current parindent to obtain the proper hanging indentation

If the status is 0, then use the default is to indent according to the current parindent. However, if the g_paragraph_inhibit_indent flag or the g_paragraph_no_indent flag is TRUE, then do not indent the next line. Typically these flags are set just after a figure or equation or table.

Note that when the code is ANY_PAR, the status flag is not touched.

Definition at line 65 of file funct1.c.

References alignment, diagnostics(), FALSE, FIRST_PAR, fprintRTF(), FrenchMode, g_left_margin_indent, g_paragraph_inhibit_indent, g_paragraph_no_indent, g_processing_list_environment, g_right_margin_indent, g_vertical_space_to_add, getLength(), GetTexMode(), MODE_HORIZONTAL, SetTexMode(), status, TexModeName, and TITLE_PAR.

Referenced by CmdAbstract(), CmdBeginEnd(), CmdBibitem(), CmdCaption(), CmdFigure(), CmdItem(), CmdMusic(), CmdSection(), CmdTabbing(), CmdThebibliography(), CmdVerbatim(), Ignore_Environment(), SetTexMode(), and TabularPreamble().

◆ CmdTextColor()

void CmdTextColor ( int  code)

purpose: hyperlatex support for \textcolor{color}{words to be in color}

Definition at line 1650 of file funct1.c.

References ConvertString(), diagnostics(), fprintRTF(), free, getBraceParam(), n, strcmp(), strdup_noendblanks(), and text.

◆ CmdTitlepage()

void CmdTitlepage ( int  code)

purpose: \begin{titlepage} ... \end{titlepage} add pagebreaks before and after this environment

Definition at line 1836 of file funct1.c.

References alignment, fprintRTF(), OFF, and ON.

◆ CmdToday()

void CmdToday ( int  code)

purpose: converts LaTeX \today into RTF \chdate

Definition at line 593 of file funct1.c.

References fprintRTF(), MODE_HORIZONTAL, and SetTexMode().

◆ CmdVerb()

void CmdVerb ( int  code)

purpose: converts the LaTeX-verb-environment to a similar Rtf-style \url probably does not handle line feeds properly

Definition at line 1289 of file funct1.c.

References diagnostics(), fprintRTF(), free, getDelimitedText(), getNonSpace(), getRawTexChar(), isalpha, MODE_HORIZONTAL, num, putRtfChar(), s, SetTexMode(), TexFontNumber(), text, TRUE, VERB_STAR, VERB_URL, and VERB_VERB.

◆ CmdVerbatim()

void CmdVerbatim ( int  code)

convert characters 1:1 until \end{verbatim} or \end{Verbatim} is reached VERBATIM_1 for \begin{verbatim} ... \end{verbatim} VERBATIM_2 for \begin{Verbatim} ... \end{Verbatim}

Definition at line 1339 of file funct1.c.

References CmdEndParagraph(), CmdIndent(), CmdStartParagraph(), ConvertAllttString(), ConvertString(), diagnostics(), FIRST_PAR, fprintRTF(), free, getTexUntil(), INDENT_NONE, num, ON, putRtfChar(), strdup, TexFontNumber(), UpdateLineNumber(), VERBATIM_1, VERBATIM_2, VERBATIM_3, and VERBATIM_4.

◆ CmdVerbosityLevel()

void CmdVerbosityLevel ( int  code)

purpose: insert \verbositylevel{5} in the tex file to set the verbosity in the LaTeX file!

Definition at line 1899 of file funct1.c.

References atoi(), free, g_verbosity_level, getBraceParam(), and s.

◆ CmdVerse()

void CmdVerse ( int  code)

purpose: converts the LaTeX-Verse-environment to a similar Rtf-style

Definition at line 1407 of file funct1.c.

References CmdEndParagraph(), CmdIndent(), CmdVspace(), diagnostics(), g_left_margin_indent, GENERIC_ENV, INDENT_INHIBIT, INDENT_USUAL, OFF, ON, PopEnvironment(), PushEnvironment(), setLength(), and VSPACE_SMALL_SKIP.

◆ CmdVspace()

void CmdVspace ( int  code)

purpose : vspace, vspace*, and vskip code == 0 if vspace or vspace* code == -1 if vskip code == 1 if \smallskip code == 2 if \medskip code == 3 if \bigskip

Definition at line 169 of file funct1.c.

References c, DirectVspace(), getDimension(), getLength(), getTexChar(), parseBrace(), VSPACE_BIG_SKIP, VSPACE_MEDIUM_SKIP, VSPACE_SMALL_SKIP, VSPACE_VSKIP, and VSPACE_VSPACE.

Referenced by CmdAbstract(), CmdBeginEnd(), CmdFigure(), CmdMusic(), CmdQuote(), CmdSection(), CmdThebibliography(), and CmdVerse().

◆ Environment()

void Environment ( int  code)

purpose: pushes/pops the new environment-commands on/from the stack parameter: code includes the type of the environment

Definition at line 624 of file funct1.c.

References CmdEndParagraph(), diagnostics(), ON, PopEnvironment(), and PushEnvironment().

◆ FormatUnitNumber()

char* FormatUnitNumber ( char *  name)

purpose: returns the x.x.x number for the specified sectional unit.

Definition at line 642 of file funct1.c.

References FORMAT_ARTICLE, free, g_document_type, getCounter(), label, name, roman_item(), s, snprintf, strcmp(), strdup, and TRUE.

Referenced by CmdSection(), and expandTheorem().

◆ GermanPrint()

void GermanPrint ( int  code)

Definition at line 1500 of file funct1.c.

References fprintRTF(), GP_CK, GP_L, GP_LDBL, GP_R, and GP_RDBL.

◆ GetInputParam()

void GetInputParam ( char *  ,
int   
)

◆ GetRequiredParam()

void GetRequiredParam ( char *  string,
int  size 
)

◆ TranslateGerman()

void TranslateGerman ( void  )

purpose: called on active german-mode and " character in input file to handle " as an active (meta-)character.

Definition at line 1446 of file funct1.c.

References fprintRTF(), and getTexChar().

Referenced by Convert().

Variable Documentation

◆ g_processing_list_environment

bool g_processing_list_environment
extern

Definition at line 62 of file funct1.c.

Referenced by CmdBibitem(), CmdItem(), CmdList(), CmdStartParagraph(), and CmdThebibliography().