inkscape with lyx/latex
I use Lyx to creat documents and use Xfig for the figures in the documents. Lyx works well with Xfig. In particular with Xfig I can insert mathematical expressions using latex notation. The way this works in Xfig/Lyx is clumsy and ugly but the final product looks good. You even get to have the fonts used match the fonts used in Latex.
I am wondering how well inkscape works with Lyx or Latex. In particular I would like to know if mathematical expressions can be added to a figure using latex notation and have latex ensure the proper display of the equation.
While I am here, is there any documentation describing the pros and cons of inkscape compared to Xfig?
Ralph
Hi Ralph,
On Wed, 2005-10-05 at 00:13 -0400, Ralph Boland wrote:
[snip]
I am wondering how well inkscape works with Lyx or Latex. In particular I would like to know if mathematical expressions can be added to a figure using latex notation and have latex ensure the proper display of the equation.
In my time reading this list this question has come up at least once before. You may wish to search the archives.
I made the same transition to Inkscape from Xfig, where I was using first PSFrag and then another solution to embed mathematics into diagrams.
I had to abandon PSFrag, because some of the working matter of the transformation started to appear in some PDF viewers. Furthermore, an Xfig bug, concerning grid positioning in Xfig, drives me nuts.
At a minimum, Inkscape gives you far greater control over curves than is possible in Xfig. Of course, it is also an efficient contemporary interface, and I can recommend it.
Using Inkscape 0.40, I had the following results.
I found no method of embedding LaTeX source.
I typeset the math by hand using the available LaTeX fonts. This was a PITA , because 0.40 lacks a representation of the character baselines. I believe this is fixed now.
I converted text to graphics at export to EPS or PDF This was necessary, because the LaTeX fonts are made available to Inkscape as TrueType. The rendering system does not know about the equiavlent PS fonts.
I made a template document reflecting the printed dimensions of the page, and used this as a guide. Scaling of the finished diagram will effect the fonts. Also, there is a reasonable amount of work to recover the LaTeX math symbols from their Unicode positions using a character map.
Having the actual equation in the diagram leads to better layout, because edges can be routed with greater precision.
While I am here, is there any documentation describing the pros and cons of inkscape compared to Xfig?
See above ;-)
Andrew
Am Mittwoch, 5. Oktober 2005 06:13 schrieb Ralph Boland:
I use Lyx to creat documents and use Xfig for the figures in the documents.
I am wondering how well inkscape works with Lyx or Latex. In particular I would like to know if mathematical expressions can be added to a figure using latex notation and have latex ensure the proper display of the equation.
For the time being the best combination of a drawing tool in combination with LaTeX typesetting is Skencil together with the skLaTeX-plugin by Joel Biddier. With the skLaTeX-plugin you can do everything that LaTeX can; by means of pstoedit LaTeX-objects are inserted editable for postprocessing into the Skencil document. Skencil has SVG and bitmap export, too, so you can prepare nice LaTeX-objects for the internet.
Yours sincerely
Tobias Hilbricht
participants (3)
-
Andrew Lincoln Burrow
-
Ralph Boland
-
Tobias Hilbricht