### Movies in Presentations

Shifting farther and farther away from blackboard talks, I sometimes need animated gifs or movies in my presentations.

And it works perfectly with Latex Beamerclass.

Here is a good tutorial for animated gifs like the one you see. Just make sure, that convert really converted the file to pngs, if not, use Preview and Save As to turn it into the right format.

Here is a wonderful tutorial on including movies. The movie is saved within the pdf file, so no fiddling around with multiple files when giving the presentation using an installed presentation system or a shared laptop.

Before giving the presentation, go through the slides, and click ok on the warning message about playing the movie, then give a wonderful talk!

I used Screen-O-Matic to create a movie. To get rid of the Watermark, you have to pay a small fee - or you make the movie bigger (i.e. longer from top to bottom) than your slide. When you include it in your tex document with

the bottom will be cut off so nobody sees the watermark.

### Latex: Centering table larger than textwidth

Usually, you can center tables with \center. But when the table is longer than the \textwidth, it will be align with the left side margin. You can temporarily adjust the textwidth.

% allows for temporary adjustment of side margins
\usepackage{chngpage}

\begin{table}
\begin{center}
\begin{tabular}{|c|}
\hline
And here comes a very long line. And here comes a very long line. And here comes a very long line.  \\
\hline
\end{tabular}

\caption{This Table is longer than the text width. And its caption is really long, too. This Table is longer than the text width. And its caption is really long, too. This Table is longer than the text width. And its caption is really long, too. This Table is longer than the text width. }
\label{myTable}
\end{center}
You can easily submit data in an html form via jQuery's $.post. But you need to do a little more to upload a file. I suggest the jQuery Form Plugin. Here is the HTML form: <html> <head> <title>Title</title> </head> <body> <form action="/test.cgi" enctype="multipart/form-data" method="post"> <input name="myFile" type="file" /> <div id="results"> </div> </form> </body> </html> This is the Javascript file myFrom.js:$(document).ready(function() { $('form').ajaxForm( { beforeSubmit: function() {$('#results').html('Submitting...'); }, success: function(data) { var $out =$('#results'); $out.html('Your results:');$out.append('<div><pre>'+ data +'</pre></div>'); } …