version 1.1, 2000/01/09 17:01:14 |
version 1.1.1.3, 2003/09/15 07:09:37 |
Line 104 TERM_PUBLIC void EMTEX_reset __PROTO((void)); |
|
Line 104 TERM_PUBLIC void EMTEX_reset __PROTO((void)); |
|
TERM_PUBLIC void EMTEX_text __PROTO((void)); |
TERM_PUBLIC void EMTEX_text __PROTO((void)); |
#endif |
#endif |
|
|
|
#ifdef EEPIC |
|
TERM_PUBLIC void EEPIC_move __PROTO((unsigned int x, unsigned int y)); |
|
TERM_PUBLIC void EEPIC_vector __PROTO((unsigned int ux, unsigned int uy)); |
|
#endif |
|
|
#define TINY_STEP 0.5 /* tiny steps for high quality lines */ |
#define TINY_STEP 0.5 /* tiny steps for high quality lines */ |
|
|
#define LATEX_PTS_PER_INCH (72.27) |
#define LATEX_PTS_PER_INCH (72.27) |
Line 220 TERM_PUBLIC void LATEX_options() |
|
Line 225 TERM_PUBLIC void LATEX_options() |
|
strcpy(LATEX_font, "cmr"); |
strcpy(LATEX_font, "cmr"); |
c_token++; |
c_token++; |
} else if (almost_equals(c_token, "d$efault")) { |
} else if (almost_equals(c_token, "d$efault")) { |
strcpy(LATEX_font, "cmr"); |
strcpy(LATEX_font, "doc"); |
LATEX_fontsize = 10; |
|
c_token++; |
c_token++; |
} |
} |
} |
} |
Line 235 TERM_PUBLIC void LATEX_options() |
|
Line 239 TERM_PUBLIC void LATEX_options() |
|
term->v_char = (unsigned int) (LATEX_fontsize * DOTS_PER_INCH / 72); |
term->v_char = (unsigned int) (LATEX_fontsize * DOTS_PER_INCH / 72); |
term->h_char = (unsigned int) (LATEX_fontsize * DOTS_PER_INCH / 144); |
term->h_char = (unsigned int) (LATEX_fontsize * DOTS_PER_INCH / 144); |
|
|
sprintf(term_options, "%s %d", LATEX_font[2] == 't' ? "courier" : "roman", |
if (strcmp(LATEX_font, "doc")==0) |
LATEX_fontsize); |
strncpy(term_options, "(document specific font)",MAX_LINE_LEN); |
|
else |
|
sprintf(term_options, "%s %d", |
|
LATEX_font[2] == 't' ? "courier" : "roman", LATEX_fontsize); |
} |
} |
|
|
|
|
Line 265 TERM_PUBLIC void LATEX_graphics() |
|
Line 272 TERM_PUBLIC void LATEX_graphics() |
|
int xscale = xsize * t->xmax; |
int xscale = xsize * t->xmax; |
int yscale = ysize * t->ymax; |
int yscale = ysize * t->ymax; |
|
|
fprintf(gpoutfile, "\ |
fprintf(gpoutfile, "\\begin{picture}(%d,%d)(0,0)\n", xscale, yscale); |
\\begin{picture}(%d,%d)(0,0)\n\ |
if (strcmp(LATEX_font, "doc") != 0) { |
|
fprintf(gpoutfile, "\ |
\\font\\gnuplot=%s10 at %dpt\n\ |
\\font\\gnuplot=%s10 at %dpt\n\ |
\\gnuplot\n", |
\\gnuplot\n", |
xscale, yscale, |
LATEX_font, LATEX_fontsize); |
LATEX_font, LATEX_fontsize); |
} |
} |
} |
|
|
|
|
Line 831 START_HELP(latex) |
|
Line 839 START_HELP(latex) |
|
" The `latex` and `emtex` drivers allow two options.", |
" The `latex` and `emtex` drivers allow two options.", |
"", |
"", |
" Syntax:", |
" Syntax:", |
" set terminal latex | emtex {courier | roman} {<fontsize>}", |
" set terminal latex | emtex {courier | roman | default} {<fontsize>}", |
"", |
"", |
" `fontsize` may be any size you specify. The default is 10-point Roman.", |
" `fontsize` may be any size you specify. The default is for the plot to", |
|
" inherit its font setting from the embedding document.", |
"", |
"", |
" Unless your driver is capable of building fonts at any size (e.g. dvips),", |
" Unless your driver is capable of building fonts at any size (e.g. dvips),", |
" stick to the standard 10, 11 and 12 point sizes.", |
" stick to the standard 10, 11 and 12 point sizes.", |
Line 842 START_HELP(latex) |
|
Line 851 START_HELP(latex) |
|
"", |
"", |
" All drivers for LaTeX offer a special way of controlling text positioning:", |
" All drivers for LaTeX offer a special way of controlling text positioning:", |
" If any text string begins with '{', you also need to include a '}' at the", |
" If any text string begins with '{', you also need to include a '}' at the", |
" end of the text, and the whole text will be centered both horizontally", |
" end of the text, and the whole text will be centered both horizontally and", |
" and vertically by LaTeX. --- If the text string begins with '[', you need", |
" vertically. If the text string begins with '[', you need to follow this with", |
" to continue it with: a position specification (up to two out of t,b,l,r),", |
" a position specification (up to two out of t,b,l,r), ']{', the text itself,", |
" ']{', the text itself, and finally, '}'. The text itself may be anything", |
" and finally '}'. The text itself may be anything LaTeX can typeset as an", |
" LaTeX can typeset as an LR-box. \\rule{}{}'s may help for best positioning.", |
" LR-box. '\\rule{}{}'s may help for best positioning.", |
"", |
"", |
|
" Points, among other things, are drawn using the LaTeX commands \"\\Diamond\" and", |
|
" \"\\Box\". These commands no longer belong to the LaTeX2e core; they are included", |
|
" in the latexsym package, which is part of the base distribution and thus part", |
|
" of any LaTeX implementation. Please do not forget to use this package.", |
|
"", |
" Examples:", |
" Examples:", |
" About label positioning:", |
" About label positioning:", |
" Use gnuplot defaults (mostly sensible, but sometimes not really best):", |
" Use gnuplot defaults (mostly sensible, but sometimes not really best):", |
Line 857 START_HELP(latex) |
|
Line 871 START_HELP(latex) |
|
" Specify own positioning (top here):", |
" Specify own positioning (top here):", |
" set xlabel '[t]{\\LaTeX\\ -- $ \\gamma $}'", |
" set xlabel '[t]{\\LaTeX\\ -- $ \\gamma $}'", |
" The other label -- account for long ticlabels:", |
" The other label -- account for long ticlabels:", |
" set ylabel '[r]{\\LaTeX\\ -- $ \\gamma $\\rule{7mm}{0pt}'" |
" set ylabel '[r]{\\LaTeX\\ -- $ \\gamma $\\rule{7mm}{0pt}}'" |
END_HELP(latex) |
END_HELP(latex) |
#endif /* TERM_TABLE */ |
#endif /* TERM_TABLE */ |