| Libgretl Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
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);
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. |
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. |
int tex_coeff_table_start (const char **cols,
gretlopt opt,
PRN *prn);
cols : |
|
opt : |
|
prn : |
|
| Returns : |
void make_tex_coeff_name (const MODEL *pmod, const DATAINFO *pdinfo, int i, char *name);
pmod : |
|
pdinfo : |
|
i : |
|
name : |
void tex_print_VECM_omega (GRETL_VAR *vecm, const DATAINFO *pdinfo, PRN *prn);
vecm : |
|
pdinfo : |
|
prn : |
void tex_print_VECM_coint_eqns (GRETL_VAR *vecm, const DATAINFO *pdinfo, PRN *prn);
vecm : |
|
pdinfo : |
|
prn : |
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. |
int rtfprint (MODEL *pmod, const DATAINFO *pdinfo, char *fname, gretlopt opt);
pmod : |
|
pdinfo : |
|
fname : |
|
opt : |
|
| Returns : |
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 |
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. |
char * tex_sprint_double_digits (double x,
char *s,
int dig);
x : |
|
s : |
|
dig : |
|
| Returns : |
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. |
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. |