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

Bug#295205: metapost figures in xdvi with tex text



Package: tetex-bin
Version:  2.0.2-26

If you put tex text in a metapost figure, and preview with xdvi, then
not only does the text not display, but subsequent pictures don't
either.

What seems to happen is that the figure is passed directly to
ghostscript, which then can't interpret the picture. 

The figure prints out perfectly fine if dvips followed by ghostview is
used.

Ideal solution would be to display the text - but, failing that, not
crashing the underlying ghostscript would be nice.




Here is a simple example of the effect:

mpost withtex.mp
latex xdvibug.tex
xdvi xdvibug

will show the problem (recompile and when you refresh the xdvi window,
the picture disappears) if you use the files below. 



withtex.mp contains the following:

    beginfig(1);
    numeric u ; u=2cm;
    
    drawarrow (-u,0)--(u,0);
    drawarrow (0,-u)--(0,u);
    
    %comment out line below and it runs fine.
    label.bot(btex $Si(1\bar11)$ etex, (u,0));
    endfig;
    end
    

And you can include it in the following basic latex article:
    
    \documentclass{article}
    \usepackage{graphicx}
    \begin{document}
    \begin{figure}
    %\thispagestyle{empty}
    \includegraphics{withtex.1}
    \end{figure}
    \end{document}



Thanks, 

Chris    
    



Reply to: