Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

i tried to have the animations in landscape but failed.

please click below

http://www.twd-wind.com/inflowrc.pdf

you will see the first page the text is in landscape page, the second page the page layout is landscape but the graphics are not.

following is the tex code i used.

\documentclass{article}
\pagestyle{empty}
\usepackage{pdflscape}
\usepackage[%
  pdftitle={},%
  pdfauthor={},%
  pdfsubject={},%
  pdfcreator={},%
  pdfproducer={},%
  pdfstartview=Fit,%
  bookmarks=false,%
  pdfkeywords={}]{hyperref}
\usepackage{animate}
\usepackage{graphicx}
\begin{document}
\begin{landscape}
\begin{center}
Sample Test\\
\makebox[\textwidth]{\animategraphics[controls,timeline=timeline_R.txt]{1}{inflow}{1}{5}}
\end{center}
\end{landscape}
\end{document} 

any ideas to have the graphics also in landscape and the animation control below it????

thanks in advance. graham

share|improve this question
    
The reason is probably that the page is too large. Thus it ships it out on the following page, which is not in landscape. Try shrinken your images and try again. –  zeroth Sep 5 '12 at 12:28
    
The link is dead. –  User 17670 Sep 5 '12 at 17:16
    
I would suggest you to change your question title to "Rotate images in animations", it is more reflecting the question. Thus other people can more easily find the question and answer. :) –  zeroth Sep 5 '12 at 17:42
1  
sorry for all the inconvenience. i have changed the title and put the file back so the link should work now. –  user18407 Sep 6 '12 at 3:57
add comment

2 Answers

up vote 2 down vote accepted

Ok, so what I said in the comments was to limit the size of the images... Which basically solves your problems.

You have to consider the animategraphics command as the equivalent of an includegraphics command. Thus it will simply insert the frame with the equivalent size of the image information etc.

So the solution is to do (you dont need the makebox):

\animategraphics[controls,width=0.9\textwidth,timeline=timeline_R.txt]{1}{inflow}{1}{5}

That is if your images have the perfect aspect ratio to fit on the landscape page. Otherwise try:

\animategraphics[controls,width=0.9\textwidth,height=0.8\textheight,timeline=timeline_R.txt]{1}{inflow}{1}{5}

Which should work but not necessarily maintain aspect ratio.

Explicit rotation of images

When creating images which needs rotation, the usage of animate becomes a little more explicit. You then need an explicit loop and include the rotation in the definition. This also has the advantage of allowing more control for the user (as you can add whatever you want to the image).

So the result is this:

\begin{landscape}
\begin{center}
Sample Test\\
\begin{animateinline}[controls]{1}%
  \multiframe{5}{ii=1+1}{%
      % ii = 1, 2, ..., 5
      \includegraphics[height=.5\textheight,angle=90]{inflow\ii.pdf}
  }
\end{animateinline}
\end{center}
\end{landscape}
share|improve this answer
    
thanks for all the suggestions. i tried all of them including shrinking the image size but still the graphics are not in landscape. pls click here to see the original graphics and let me know if there is something wrong with this. –  user18407 Sep 5 '12 at 16:13
    
pls click below link to download the result file and also the original graphics. please let me know if there is anything wrong. thanks. twd-wind.com/inflow.zip –  user18407 Sep 5 '12 at 16:21
    
the images are not in landscape as the document is already rotated. The pdf contain information about its rotation. This means a new way of using animate. See the updated answer. –  zeroth Sep 5 '12 at 17:37
    
i got it work ! great ! thanks a lot. one final question is the animation control underneath the image, that is not in landscape, can i rotate that too? at the playback arrows are pointing up and down. please download twd-wind.com/inflowrcx.pdf to have a look. graham –  user18407 Sep 6 '12 at 0:37
1  
ok thanks for the hint. i push the check mark now. thanks for all the advice again. –  user18407 Sep 6 '12 at 8:17
show 2 more comments

Animations on single landscape pages using lscape or pdflscape packages and the landscape environment thereof are currently not supported, but

\usepackage[landscape]{geometry}

for documents entirely typeset in landscape orientation is.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.