interesting:
'xdvi' shows black text while 'dvips' produces a postscript
file with white text.
'set term epslatex ... colortext' produces black text - so let's
see if there's a difference between 'traj2.tex' produces with
'blacktext' vs. 'colortext':
the main difference between 'blacktext' and 'colortext' is a
sequence of '\color{black}%' and '\color{white}%' lines within
the '\gplgaddtomacro\gplfronttext{%' section which is not
existing in the 'colortext' case.
after deleting those lines in 'traj2.tex' (produced with 'blacktext')
the text is black.
the bug is in pslatex.trm, the '\color{...}%.' commands shouldn't
be written into the output file directly but into the variable
'tex_current_color' like all other color changing commands.
--- pslatex.trm.orig 2009-04-10 10:36:25.000000000 +0200
+++ pslatex.trm 2009-04-10 10:46:39.000000000 +0200
@@ -858,10 +858,10 @@
if (ps_params->blacktext) {
if (gray <= 0)
- fputs(" \\color{black}%\n",gpoutfile);
+ sprintf(tex_current_color, " \\color{black}%\n");
else if (gray >= 1)
- fputs(" \\color{white}%\n",gpoutfile);
+ sprintf(tex_current_color, " \\color{white}%\n");
else
sprintf(tex_current_color, "
\\colorgray{%s}%%\n",save_space(gray));
} else {
rgb_color color;
i've submitted a patch.
Stepan Roucka wrote:
>
> Hello,
> I have problem with plotting data using epslatex terminal. All text
> is typeset in white color, which makes it unreadable on white backgroud.
> This happens even with blacktext option for the terminal.
>
> I use gnuplot 4.2 patchlevel 3 and 4. This problem never occured to me
> before, just with this special combination of pm3d, map view, xrange
> etc...
> My script with minimal failing example, input data and resulting
> pdf generated by pdflatex is available at
> http://www.roucka.eu/tmp/
> The only solution that I found was to search and replace s/white/black/
> in the traj2.tex file. Am I doing something wrong or is it a bug in
> gnuplot?
>
> Thanks for any help
> Stepan Roucka
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/white-labels-in-epslatex-terminal-tp22978301p22985913.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|