texprint

texprint

Functions

Description

Functions

tex_print_equation ()

int
tex_print_equation (const MODEL *pmod,
                    const DATASET *dset,
                    gretlopt opt,
                    PRN *prn);

Prints to prn a gretl model in the form of a LaTeX equation, either as a stand-alone document or as a fragment of LaTeX source for insertion into a document.

Parameters

pmod

pointer to gretl MODEL struct.

 

dset

information regarding the data set.

 

opt

can include OPT_S for a standalone document, and OPT_T to print t-ratios rather than standard errors.

 

prn

gretl printing struct.

 

Returns

0 on successful completion.


tex_print_model ()

int
tex_print_model (MODEL *pmod,
                 const DATASET *dset,
                 gretlopt opt,
                 PRN *prn);

Prints to prn a gretl model in the form of either a LaTeX table or an equation, and either as a stand-alone document or as a fragment of LaTeX source for insertion into a document.

The options are read from the format field of prn -- gretl_print_set_format().

Parameters

pmod

pointer to gretl MODEL struct.

 

dset

information regarding the data set.

 

opt

may include OPT_T in case of printing a model in equation format, to use t-ratios instead of standard errors.

 

prn

gretl printing struct.

 

Returns

0 on successful completion.


tex_coeff_table_start ()

int
tex_coeff_table_start (const char **cols,
                       gretlopt opt,
                       PRN *prn);

tex_coeff_table_end ()

void
tex_coeff_table_end (PRN *prn);

tex_print_coeff ()

void
tex_print_coeff (const model_coeff *mc,
                 PRN *prn);

make_tex_coeff_name ()

void
make_tex_coeff_name (const MODEL *pmod,
                     const DATASET *dset,
                     int i,
                     char *name);

tex_print_VECM_omega ()

void
tex_print_VECM_omega (GRETL_VAR *vecm,
                      const DATASET *dset,
                      PRN *prn);

tex_print_VECM_coint_eqns ()

void
tex_print_VECM_coint_eqns (GRETL_VAR *vecm,
                           const DATASET *dset,
                           PRN *prn);

tex_print_VAR_ll_stats ()

void
tex_print_VAR_ll_stats (GRETL_VAR *var,
                        PRN *prn);

texprint ()

int
texprint (MODEL *pmod,
          const DATASET *dset,
          const char *fname,
          gretlopt opt);

Prints to file a gretl model in the form of a LaTeX table or equation, either as a stand-alone document or as a fragment of LaTeX source for insertion into a document.

Parameters

pmod

pointer to model.

 

dset

information regarding the data set.

 

fname

name of file to save.

 

opt

if opt & OPT_O, complete doc, else fragment; if opt & OPT_E print as equation, otherwise use tabular format; if opt & OPT_T show t-ratios rather than standard errors when printing in equation format.

 

Returns

0 on successful completion, 1 on error.


rtfprint ()

int
rtfprint (MODEL *pmod,
          const DATASET *dset,
          const char *fname,
          gretlopt opt);

csvprint ()

int
csvprint (MODEL *pmod,
          const DATASET *dset,
          const char *fname,
          gretlopt opt);

tex_escape ()

char *
tex_escape (char *targ,
            const char *src);

Copies from src to targ , escaping any characters in src that are special to TeX (by inserting a leading backslash).

Parameters

targ

target string (must be pre-allocated)

 

src

source string.

 

Returns

the transformed copy of the string


tex_escape_new ()

char *
tex_escape_new (const char *src);

Parameters

src

source string.

 

Returns

a copy of src in which any characters that require escaping are preceded by a backslash.


tex_escape_special ()

char *
tex_escape_special (char *targ,
                    const char *src);

Copies from src to targ , escaping characters in src that are special to TeX (by inserting a leading backslash). Unlike tex_escape(), this function does not mess with '$' in the source string, and it attempts to handle greek letters correctly.

Parameters

targ

target string (must be pre-allocated)

 

src

source string.

 

Returns

the transformed copy of the string.


tex_rl_float ()

char *
tex_rl_float (double x,
              char *s,
              int dig);

tex_rl_double ()

char *
tex_rl_double (double x,
               char *s);

tex_print_double ()

void
tex_print_double (double x,
                  PRN *prn);

tex_sprint_double ()

char *
tex_sprint_double (double x,
                   char *s);

tex_sprint_double_digits ()

char *
tex_sprint_double_digits (double x,
                          char *s,
                          int dig);

tex_modify_exponent ()

char *
tex_modify_exponent (char *s);

set_gretl_tex_preamble ()

void
set_gretl_tex_preamble (void);

set_tex_use_pdf ()

void
set_tex_use_pdf (const char *prog);

get_tex_use_pdf ()

int
get_tex_use_pdf (void);

gretl_tex_preamble ()

void
gretl_tex_preamble (PRN *prn,
                    int fmt);

tex_print_obs_marker ()

void
tex_print_obs_marker (int t,
                      const DATASET *dset,
                      PRN *prn);

Print a string (label, date or obs number) representing the given t .

Parameters

t

observation number.

 

dset

data information struct.

 

prn

gretl printing struct.

 

set_tex_param_format ()

int
set_tex_param_format (const char *s);

Sets the format with which parameters will be printed, when producing TeX tabular output.

Parameters

s

stylized format string.

 

Returns

0 on success, non-zero code on error.


tex_using_custom_tabular ()

int
tex_using_custom_tabular (void);

tex_column_format ()

const char *
tex_column_format (int i);