Tue, Aug 29, 2006
Embed video into PDF
%% filename: embed-video.tex
%%
%% 1. Compile TeX source with pdflatex.
%% 2. Put a video file (e.g. sample.avi) in the same directory
%% with the PDF file.
%% 3. View PDF with Acrobat Reader.
\documentclass{beamer}
\usepackage{multimedia}
\begin{document}
\begin{frame}
\frametitle{frame title}
text
\movie[label=s1,width=160pt,height=120pt,poster]{sample}{sample.avi}
\hyperlinkmovie[start=2s,duration=10s]{s1}{\beamerbutton{show 2--12s}}
\end{frame}
\end{document}
Category: /computer/tex
| Permalink
Sat, Jul 22, 2006
Generate letter size PostScript from DVI
After using latex to get an dvi file, you should run these
commands:
dvips -Ppdf -G0 myfile.dvi
ps2pdf myfile.ps
If the generated pdf file has very small top margin, it means
dvips generated A4 size but you expected letter size. Thus you
should use dvips like this:
dvips -t letterSize -Ppdf -G0 myfile
Category: /computer/tex
| Permalink
Thu, Jul 20, 2006
A locked post
I'm sorry, this post has been locked for personal reasons.
Category: /computer/cygwin
| Permalink
Thu, May 18, 2006
epstopdf 90 rotate: a ghostscript bug
The epstopdf command coming from your TeX distrubution can convert eps to pdf.
However, due to a bug in GhostScript, the image is rotated by 90 degrees
sometimes. Thus you should use this command to do the conversion. Of course
you want to replace my.eps and my.pdf with the file
name of your images.
egrep -v "^%%Orientation:" my.eps | epstopdf --filter --outfile=my.pdf
Category: /computer/tex
| Permalink
Sat, Apr 15, 2006
A locked post
I'm sorry, this post has been locked for personal reasons.
Category: /news
| Permalink
Sat, Apr 15, 2006
A locked post
I'm sorry, this post has been locked for personal reasons.
Category: /news
| Permalink
Fri, Mar 31, 2006
Delayed emails
Just minutes ago, I received two emails, both were sent two days ago, I wish
no email were lost.
Category: /web
| Permalink
Thu, Mar 30, 2006
SDF mail delayed sometimes!
Probably for reasons of UUCP, the recent emails to my SDF account might have been delayed.
Hence I couldn't receive some emails instantly sometimes. If you haven't
received my reply in a few weeks, please forward to my alternative email
address:
<liyi@ustc.edu>. I'm sorry for the inconvenience!
Category: /web
| Permalink