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);
int                 tex_coeff_table_start               (const char **cols,
                                                         gretlopt opt,
                                                         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 *fname,
                                                         gretlopt opt);
int                 rtfprint                            (MODEL *pmod,
                                                         const DATAINFO *pdinfo,
                                                         char *fname,
                                                         gretlopt opt);
char *              tex_escape                          (char *targ,
                                                         const char *src);
char *              tex_escape_special                  (char *targ,
                                                         const char *src);
char *              tex_rl_float                        (double x,
                                                         char *s,
                                                         int dig);
char *              tex_rl_double                       (double x,
                                                         char *s);
void                tex_print_double                    (double x,
                                                         PRN *prn);
char *              tex_sprint_double                   (double x,
                                                         char *s);
char *              tex_sprint_double_digits            (double x,
                                                         char *s,
                                                         int dig);
char *              tex_modify_exponent                 (char *s);
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 ()

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

cols :
opt :
prn :
Returns :

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

pmod : pointer to model.
pdinfo : 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 DATAINFO *pdinfo,
                                                         char *fname,
                                                         gretlopt opt);

pmod :
pdinfo :
fname :
opt :
Returns :

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

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

x :
s :
dig :
Returns :

tex_rl_double ()

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

x :
s :
Returns :

tex_print_double ()

void                tex_print_double                    (double x,
                                                         PRN *prn);

x :
prn :

tex_sprint_double ()

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

x :
s :
Returns :

tex_sprint_double_digits ()

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

x :
s :
dig :
Returns :

tex_modify_exponent ()

char *              tex_modify_exponent                 (char *s);

s :
Returns :

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 :