[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 1471] Problem with mgp2ps



Hi Yoshifumi,

(I tried this to your e-mail address first, but got no reply)

I'm having trouble with mgp2ps when I use the -c option.  Basically
everything works as expected (my background is black, images seem to
come out properly) except for inline equations.  I've attached an
example using latex equations.  Basically, the latex generated images
don't appear (they do in the mgp presentation).  If I flip the fore and
back colors (to black and white, respectively, I see everything and this
seems to be what mgp2ps does without the -c option.

Here is a simple test file.  Run it first with mgp -U and then
after with mgp2ps -c.

%deffont "standard" xfont "helvetica-medium-r"
%deffont "thick" xfont "helvetica-bold-r"
%deffont "symbol" xfont "-*-symbol-*-*-*-*-34-*-*-*-*-*-*-*"
%% Default settings per each line numbers.
%%
%%default 1 bgrad 0 0 256 0 1 "blue" "black"
%default 1 back "black", pcache 1 1 2 75
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Default settings that are applied to TAB-indented lines.
%%
%tab 1 size 4, vgap 40, prefix "      ", icon arc "red" 50
%tab 3 size 4, vgap 40, prefix "            ", icon delta3 "white" 40
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page
%prefix "    "
%size 6.5, font "standard"

%center, size 3, fore "red"
%size 3, fore "white"

%filter "latex2eps.sh MITeqn1"
\begin{eqnarray}
  n ( \mathbf{r} ,t ) &\equiv& 
  \Theta^+ ( \mathbf{r} ,t ) n^+ (  \mathbf{r} ,t ) +
  \Theta^- ( \mathbf{r} ,t ) n^- (  \mathbf{r} ,t ) 
  + \Delta n ( \mathbf{r} , t ) 
  \nonumber \\
  &=& \Theta^+ ( \mathbf{r} ,t ) n^+ (  \mathbf{r} ,t ) +
  \Theta^- ( \mathbf{r} ,t ) n^- (  \mathbf{r} ,t ) \nonumber \\
  && + \sum_{j=0}^\infty \frac{( -1)^j}{j!}  \delta^{(j)} ( \mathbf{r} ) 
  n^{(j)} ( \mathbf{r}_\parallel , t ) \nonumber
\end{eqnarray}
%endfilter

%center, image "MITeqn1.eps" 0 300 300 1

%leftfill
An equation should appear above.  On my machine it doesn't.



Thanks in advance

David