Hi. xfig like export combined LaTeX postscript/ transparency ps export
Xfig has got one possibility to set a special flag on text which means that this text doesn't get exported on combined LaTeX ps but is written to the LaTeX file which means that you're able to also use LaTeX possibilies of typsetting mathematics and so on.
Do you think it would be much effort to add this to inkscape, too? Because I *really* prefer inkscape over xfig :) inkscape could became the tool of choice making figures for LaTeX.. xfig is nice but lacks some functionality.
The other thing is when exporting to ps inkscape currently just ignores transparency.. All you would have to do having two rectangles
------ -- : rect1 without ++ ---+++||| ++ : overlapping area ---+++||| || : rect2 without ++ |||||| rect2 is above rect1
would be splitting this rectangles into 3 and calculate the color of the + rectangle depending on the transparency of rect2 and color of rect1.. Then all 3 reactangles can be exported as it's done right now. And because the function Stroke to path is already provided (although I'm not sure how well it works using some advanced stroke style) it shouldn't be that hard to implement. What do you think?
Marc
On 7/31/05, Marc Weber <marco-oweber@...173...> wrote:
Do you think it would be much effort to add this to inkscape, too? Because I *really* prefer inkscape over xfig :) inkscape could became the tool of choice making figures for LaTeX.. xfig is nice but lacks some functionality.
We now have a "LaTeX with pstricks" export format. Have you tried it?
The other thing is when exporting to ps inkscape currently just ignores transparency.. All you would have to do having two rectangles
That would only work for flat transparency, not gradient transparency or masking. So it would mean a lot of coding and still not really solving the problem. I will not of course object to someone implementing it, but my personal opinion is that it's not worth it. If you need PS, don't use transparency. If you need transparency, use a more modern format, not PS.
We now have a "LaTeX with pstricks" export format. Have you tried it?
Wow! I've now installed the new cvs version.. great. There is only one thing still missing --export-LaTeXwithpstricks .. :) Then you can use inkscape with tools like rubber having the best workflow you can think of. So it's even possible to use pdflatex and latex at the same time..! Works great!
The other thing is when exporting to ps inkscape currently just ignores transparency.. All you would have to do having two rectangles
That would only work for flat transparency, not gradient transparency
You're right. Haven't thought of that.
Thanks! Will tell all people at university to replace xfig by inkscape :) I think nobody will regret having done so.
Marc
We now have a "LaTeX with pstricks" export format. Have you tried it?
The second thing which is missing is the special text fromx xfig.. All which have to be done is render text in LaTeX style (not necessary to do this in inkscape, too, but is usefule to write text like $\frac{1}{2}$ or $\alpha$)
Perhaps I find some time to try adding this feature myself.. but I have to pass my exam first.. ;(
Marc
On Tue, Aug 02, 2005 at 12:52:14AM +0200, Marc Weber wrote:
We now have a "LaTeX with pstricks" export format. Have you tried it?
The second thing which is missing is the special text fromx xfig.. All which have to be done is render text in LaTeX style (not necessary to do this in inkscape, too, but is usefule to write text like $\frac{1}{2}$ or $\alpha$)
Perhaps I find some time to try adding this feature myself.. but I have to pass my exam first.. ;(
Wow, these would be really interesting features to add. It's funny, you're the third xfig convert I've heard of so far this week. :-)
Bryce
Wow, these would be really interesting features to add. It's funny, you're the third xfig convert I've heard of so far this week. :-)
Everyone who knows will convert because xfig is fast but very limited and old fashioned as long as his hardware admits running inkscape..
If you don't know it, yet: Here is a small description:
Create the xfig figure: Start xfig: $xfig -specialtext Add a box by pressing "b" and creating the rectangle while pressing left mouse buttong Add a text (switch to text mode by pressing "t") and insert the text $\frac{1}{\alpha}$ save as test.fig export as test (filter combined PS/LaTeX (both parts) That will create test.pstex (<- ps content) and test.pstex_t (<- LaTeX content containing the by LaTeX typsetted string).
create a LaTeX document:
\documentclass{article} \usepackage{color} \usepackage{graphics} \begin{document} \input{test.pstex_t} \end{document}
and run LaTeX (latex test.tex; xdvi test.dvi) Hopefully you see 1/alpha instead of \frac..
Marc
participants (3)
-
Bryce Harrington
-
bulia byak
-
Marc Weber