This is a read-only mirror of pymolwiki.org
Difference between revisions of "Movie pdf"
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
See movie \ref{mov:ex3d} | See movie \ref{mov:ex3d} | ||
+ | |||
+ | \end{document} | ||
+ | </source> | ||
+ | == LaTeX beamer presentation == | ||
+ | |||
+ | <source lang="latex"> | ||
+ | \documentclass[xcolor=dvipsnames]{beamer} | ||
+ | \usepackage[3D]{movie15} | ||
+ | \usepackage[UKenglish]{babel} | ||
+ | |||
+ | %% See: http://www.hartwork.org/beamer-theme-matrix/ | ||
+ | \usecolortheme[named=Brown]{structure} | ||
+ | \usetheme{Copenhagen} | ||
+ | |||
+ | \begin{document} | ||
+ | \title{Simple Beamer Class} | ||
+ | \author{Troels Linnet} | ||
+ | \date{\today} | ||
+ | \frame{\titlepage} | ||
+ | \frame{\frametitle{Table of contents}\tableofcontents} | ||
+ | |||
+ | \section{Movie} | ||
+ | \frame{\frametitle{Pymol Movie object} | ||
+ | |||
+ | \begin{figure}[!htb] | ||
+ | \centering | ||
+ | \includemovie[ | ||
+ | poster, | ||
+ | toolbar, %same as `controls' | ||
+ | text={\small(Click to play movie)} | ||
+ | ]{10cm}{6cm}{movie.mpg} | ||
+ | \caption{A PyMOL movie object embedded in PDF, using mpg format.} | ||
+ | \label{mov:ex3d} | ||
+ | \end{figure} | ||
+ | |||
+ | } | ||
+ | |||
+ | \section{Lists} | ||
+ | \subsection{Lists I} | ||
+ | \frame{\frametitle{Unnumbered lists} | ||
+ | \begin{block}{My bloc} | ||
+ | test of bloc | ||
+ | \end{block} | ||
+ | |||
+ | \begin{itemize} | ||
+ | \item Introduction to \LaTeX | ||
+ | \item Beamer class | ||
+ | \end{itemize} | ||
+ | } | ||
\end{document} | \end{document} |
Revision as of 15:44, 3 March 2013
Overview
PyMOL can save videos to formats (.mpg) that can be converted to a movie PDF (will not work with most PDF browser plugins; must be downloaded and viewed with certain viewers liked Adobe Acrobat 9.2+).
Requirements
- PyMOL
- LaTeX (pdflatex)
Get .mpg file from PyMOL
- Save a .mpg file from your video.
You can try this tutorial:
Example movie
LaTeX code
- The following LaTeX code saved as "pymol.tex":
\documentclass[a4paper]{article}
\usepackage[3D]{movie15}
\usepackage[UKenglish]{babel}
\usepackage[colorlinks=true]{hyperref}
\begin{document}
\title{PyMOL 3D Objects in PDF}
\author{Troels Linnet}
\maketitle
\begin{figure}[!htb]
\centering
\includemovie[
poster,
toolbar, %same as `controls'
text={\small(Click to play movie)}
]{320px}{216px}{movie.mpg}
\caption{A PyMOL movie object embedded in PDF, using mpg format.}
\label{mov:ex3d}
\end{figure}
See movie \ref{mov:ex3d}
\end{document}
LaTeX beamer presentation
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage[3D]{movie15}
\usepackage[UKenglish]{babel}
%% See: http://www.hartwork.org/beamer-theme-matrix/
\usecolortheme[named=Brown]{structure}
\usetheme{Copenhagen}
\begin{document}
\title{Simple Beamer Class}
\author{Troels Linnet}
\date{\today}
\frame{\titlepage}
\frame{\frametitle{Table of contents}\tableofcontents}
\section{Movie}
\frame{\frametitle{Pymol Movie object}
\begin{figure}[!htb]
\centering
\includemovie[
poster,
toolbar, %same as `controls'
text={\small(Click to play movie)}
]{10cm}{6cm}{movie.mpg}
\caption{A PyMOL movie object embedded in PDF, using mpg format.}
\label{mov:ex3d}
\end{figure}
}
\section{Lists}
\subsection{Lists I}
\frame{\frametitle{Unnumbered lists}
\begin{block}{My bloc}
test of bloc
\end{block}
\begin{itemize}
\item Introduction to \LaTeX
\item Beamer class
\end{itemize}
}
\end{document}
- Create the PDF using LaTeX:
pdflatex pymol.tex