/[csv2latex]/csv2latex.c
ViewVC logotype

Diff of /csv2latex.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 55 by ben, Sun Jul 1 01:46:58 2018 UTC revision 56 by ben, Sun Jul 1 19:37:21 2018 UTC
# Line 36  Line 36 
36    
37  #define PTOMM(p) (0.3528 * (p)) /* pt to mm */  #define PTOMM(p) (0.3528 * (p)) /* pt to mm */
38  #define HEIGHT PTOMM(592) /* \textheight default in pt */  #define HEIGHT PTOMM(592) /* \textheight default in pt */
39  #define INTER 1.0 /* default interline FIXME */  #define SKIPR 1.2 /* default \baselineskip ratio (to multiply with font) */
40    
41  typedef struct {  typedef struct {
42          char* tab;      /* actual escapes */          char* tab;      /* actual escapes */
# Line 338  void getMaximums(config* conf, FILE* in) Line 338  void getMaximums(config* conf, FILE* in)
338  }  }
339    
340  unsigned int guessLinesPerPage(unsigned int font, double height) {  unsigned int guessLinesPerPage(unsigned int font, double height) {
341          return  height / (PTOMM(font) + INTER);          return  height / (PTOMM(SKIPR * font));
342  }  }
343    
344    
# Line 630  int main (int argc, char **argv) { Line 630  int main (int argc, char **argv) {
630          conf->vlines = 1;      /* default; draw lines between columns */          conf->vlines = 1;      /* default; draw lines between columns */
631          conf->hlines = 1;      /* default; draw lines between rows */          conf->hlines = 1;      /* default; draw lines between rows */
632          conf->font = 0;        /* default to LaTeX defaults */          conf->font = 0;        /* default to LaTeX defaults */
633          conf->land = 0;   /* default to LaTeX defaults */          conf->land = 0;        /* default to LaTeX defaults */
634    
635          /* TeX charaters to escape */          /* TeX charaters to escape */
636          conf->tex = (texcape*)malloc(sizeof(texcape));          conf->tex = (texcape*)malloc(sizeof(texcape));

Legend:
Removed from v.55  
changed lines
  Added in v.56

  ViewVC Help
Powered by ViewVC 1.1.26