13.11.2015 Views

my Latex and Tex4ht cheat sheet

my Latex cheat sheet - 12000.org

my Latex cheat sheet - 12000.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

#!/bin/bash<br />

for file in *.pdf; do<br />

filename=${file%.*}<br />

pdf2svg "$filename.pdf" "$filename.svg"<br />

done<br />

3.29 How to change image size of svg for html generation?<br />

I can’t find out why \includegraphics[scale=0.5]{pic.svg} does not work with tex4ht as it does with pdf.<br />

So to change the svg image size, simply edit the svg file with text editor, <strong>and</strong> change the first line that says<br />

something like width="500pt" height="500pt" to just with="250px" for example, <strong>and</strong> save the .svg file.<br />

3.30 How to include animated gif file in the HTML?<br />

add this in <strong>Latex</strong> file, <strong>and</strong> use normal HTML coding in there. This will only show up in the HTML <strong>and</strong> not<br />

affect the pdflatex run<br />

\ifdefined\HCode<br />

\HCode{<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!