[LON-CAPA-users] uploading SVG
raeburn at msu.edu
Tue Jul 29 10:51:40 EDT 2014
Use of SVG image files requires modification to the mime.types file on
your web server (and web server reload).
The mime.types file shipped with LON-CAPA releases has not, up until
now, included the required line:
image/svg+xml svg svgz
because of LON-CAPA policy to support older browsers (i.e., Internet
Explorer 8 and older). Note: use of SVG with IE8 requires an SVG
viewer on the client side.
Anyway, I have committed an updated mime.types file to the LON-CAPA
CVS repository, and will include that in the forthcoming 2.11.1
To use LON-CAPA's mime.types config file, your domain's Apache
server's configuration needs to include:
Currently, printout generation (i.e., use of LON-CAPA's Print function
to generate a PDF from TeX) will fail if you include an svg file in an
img tag in a LON-CAPA resource. See:
LON-CAPA Academic Consortium
Quoting Peter Dencker <dencker at math.uni-luebeck.de>:
> It is possible to use an image reference to a svg, e.g.,
> src="http://upload.wikimedia.org/wikipedia/commons/b/b0/Letters_SVG.svg" />
> in a LON-CAPA problem.
> But it doesn't work to upload the corresponding file into the
> construction space and to use it. It is not even possible to open the
> uploaded picture in the browser; a xml scource code is shown.
> Other pictures (e.g. png) work.
> Is this a common problem or have I done something wrong?
> - Peter
> Dr. Peter Dencker
> wissenschaftl. Mitarbeiter
> UNIVERSITÄT ZU LÜBECK
> INSTITUT FÜR MATHEMATIK
> Ratzeburger Allee 160
> 23562 Lübeck
> Tel +49 451 500 4254
> Fax +49 451 500 3373
> dencker at math.uni-luebeck.de
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org
More information about the LON-CAPA-users