billc(@)@issi1(∙)com
Title: portability of editable Jipsen plots and svg to png
asciimath(@)googlegroups(◦)com
www.inkscapeforum.com/viewforum.php?f=20 Inkscape and LaTeX
I have found a workaround for referenced external .svg's not working
with the default security policy for MS IISver6; it also makes
ASCIISVG more versatile; it is useful for editing .svg's and .png's.
Examples are at
http://www.issi1.com/corwin/calculator/crown_svg.html
.
The method to make the Jipsen plots,
http://www1.chapman.edu/~jipsen/svg/ , more portable follows.
When viewing a plot locally, right click on the plot and select
the 'copy svg' option; that puts the .svg as it currently appears
onto the clipboard in the Unicode format as described in
SVGHelp.html under 'Copying:' . Using ctrl-V in Word when the cursor
is in the blank document will display the .svg code; it then can be
saved as a .svg file in the text only mode; Inkscape can be used to
convert the .svg to .png which is more portable. Be careful to not
save the .svg in Inkscape because it will be very difficult to edit
and may not be renderable by all browsers after Inkscape puts all its
changes
in it. Another caveat is the Adobe plugin will delete the .svg if you
try to render directly.
Also, Inkscape
will not load the .svg if it is larger than 63K but it will if it is
smaller than 62,714. I wrote a C program that
truncates the numbers with 14 decimal places to numbers with three
decimal
places, thus reducing the file size 50%. Complex plots that have
equations, like at
http://www.issi1.com/corwin/sniffers/cubic_png.xml , can be converted
to the very portable .png format. That way the Jipsen plots can be
edited
to have legends vertically for the vertical scales or at any angle to
follow a curve. They could also have equations when converted to .png,
since Inkscape can also render LaTeX expressions,
http://www.inkscape.org/wiki/index.php/ReleaseNotes044#Extension_effects
.
However, when Inkscape saves a .svg it does not readily lend itself
to manual editing or compatability with other .svg viewers or editors,
so
save any Inkscape modified .svg under a name different from your own
work.
There are examples at
http://www.issi1.com/corwin/calculator/crown_png.html and
http://www.issi1.com/corwin/sniffers/class_png.xml .
Also, DISLIN is a graphics system that also supports TeX.
My attempts with transparent layers were not satisfactory to solve
the problem and created more problems with SHOW/HIDE boxes.