texprint

texprint —

Synopsis




int         tex_print_equation              (const MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);
int         tex_print_model                 (MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);
void        tex_coeff_table_start           (const char *col1,
                                             const char *col2,
                                             int binary,
                                             PRN *prn);
void        tex_coeff_table_end             (PRN *prn);
void        tex_print_coeff                 (const model_coeff *mc,
                                             PRN *prn);
void        make_tex_coeff_name             (const MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             int i,
                                             char *name);
void        tex_print_VECM_omega            (GRETL_VAR *vecm,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);
void        tex_print_VECM_coint_eqns       (GRETL_VAR *vecm,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);
void        tex_print_VAR_ll_stats          (GRETL_VAR *var,
                                             PRN *prn);
int         texprint                        (MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             char *texfile,
                                             gretlopt opt);
char*       tex_escape                      (char *targ,
                                             const char *src);
void        tex_dcolumn_double              (double x,
                                             char *numstr);
char*       tex_float_string                (double x,
                                             int prec,
                                             char *targ);
void        set_gretl_tex_preamble          (void);
void        set_tex_use_utf                 (int s);
void        set_tex_use_pdf                 (const char *prog);
void        gretl_tex_preamble              (PRN *prn,
                                             int fmt);
void        tex_print_obs_marker            (int t,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);
void        set_tex_param_format            (const char *s);
int         tex_using_custom_tabular        (void);
const char* tex_column_format               (int i);

Description

Details

tex_print_equation ()

int         tex_print_equation              (const MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             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.

pmod : pointer to gretl MODEL struct.
pdinfo : 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 DATAINFO *pdinfo,
                                             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().

pmod : pointer to gretl MODEL struct.
pdinfo : 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 ()

void        tex_coeff_table_start           (const char *col1,
                                             const char *col2,
                                             int binary,
                                             PRN *prn);

col1 :
col2 :
binary :
prn :

tex_coeff_table_end ()

void        tex_coeff_table_end             (PRN *prn);

prn :

tex_print_coeff ()

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

mc :
prn :

make_tex_coeff_name ()

void        make_tex_coeff_name             (const MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             int i,
                                             char *name);

pmod :
pdinfo :
i :
name :

tex_print_VECM_omega ()

void        tex_print_VECM_omega            (GRETL_VAR *vecm,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);

vecm :
pdinfo :
prn :

tex_print_VECM_coint_eqns ()

void        tex_print_VECM_coint_eqns       (GRETL_VAR *vecm,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);

vecm :
pdinfo :
prn :

tex_print_VAR_ll_stats ()

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

var :
prn :

texprint ()

int         texprint                        (MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             char *texfile,
                                             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.

pmod : pointer to model.
pdinfo : information regarding the data set.
texfile : 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.

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).

targ : target string (must be pre-allocated)
src : source string.
Returns : the transformed copy of the string

tex_dcolumn_double ()

void        tex_dcolumn_double              (double x,
                                             char *numstr);

x :
numstr :

tex_float_string ()

char*       tex_float_string                (double x,
                                             int prec,
                                             char *targ);

Prints the value x into targ with prec digits of precision. The result is intended for use in a non-math environment: if x is negative, the minus sign is put into math mode.

x : value to be printed.
prec :
targ : target string.
Returns : targ.

set_gretl_tex_preamble ()

void        set_gretl_tex_preamble          (void);


set_tex_use_utf ()

void        set_tex_use_utf                 (int s);

s :

set_tex_use_pdf ()

void        set_tex_use_pdf                 (const char *prog);

prog :

gretl_tex_preamble ()

void        gretl_tex_preamble              (PRN *prn,
                                             int fmt);

prn :
fmt :

tex_print_obs_marker ()

void        tex_print_obs_marker            (int t,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);

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

t : observation number.
pdinfo : data information struct.
prn : gretl printing struct.

set_tex_param_format ()

void        set_tex_param_format            (const char *s);

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

s : stylized format string.

tex_using_custom_tabular ()

int         tex_using_custom_tabular        (void);

Returns :

tex_column_format ()

const char* tex_column_format               (int i);

i :
Returns :