Dear Rafael,

> On 17 Oct 2016, at 08:04, Rafael Guglielmetti <raf...@rgug.ch> wrote:
> 
> Dear forum,
> Is it possible to includes images in the doc of a package with GAP doc? 
> Especially, I would be interested to know whether it is possible to provide 
> the image in different formats, for example:
> 
> * a pdf to be included in  the manual.pdf
> * a jpg for the .html
> * a text to replace the image for the other cases (the equivalent of
>   the HTML alt property)


Of course this is possible - see e.g. this file from the GAP SCSCP package:

https://github.com/gap-packages/scscp/blob/335545909d9c37bb24e8f755baab811de05a548e/tracing/tracing.g

which has two images in HTML and PDF versions and just one lime of text in the 
text version:

##  <Alt 
Only="LaTeX">\centerline{\resizebox{150mm}{!}{\includegraphics{img/quillen.pdf}}}</Alt>
##  <Alt Only="HTML">&lt;img src="img/quillen.jpg" align="left" /></Alt>
##  <Alt 
Only="LaTeX">\vspace{10pt}\centerline{\resizebox{150mm}{!}{\includegraphics{img/euler.pdf}}}</Alt>
##  <Alt Only="HTML">&lt;img src="img/euler.jpg" align="left" /></Alt>
##  <Alt Only="Text">/See diagrams in HTML and PDF versions of the manual/</Alt>

Hope this is exactly what you have in mind.

Best wishes
Alexander





_______________________________________________
Forum mailing list
Forum@mail.gap-system.org
http://mail.gap-system.org/mailman/listinfo/forum

Reply via email to