Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saveLatex, two paged pdf output #79

Open
ghost opened this issue May 22, 2016 · 1 comment
Open

saveLatex, two paged pdf output #79

ghost opened this issue May 22, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented May 22, 2016

Dear Yihui Xie,

I have not found a possibility to save two gif plots in one pdf with 2 pages (plot per page) in the saveLatex function.
The only solution I came up with is merging of two resulting pdfs (each comprises one plot).
Is it the only way?

Thank you very much indeed.

@yulijia
Copy link
Collaborator

yulijia commented May 23, 2016

Hi AleksandrIanevski,
You are right, saveLatex() can only generate 1 gif plot in one page.
The fastest way to save two gif plots in one pdf with 2 pages is merging the two pdf files (on Windows).
On linux, we can put two brownian.motion() gif plots in a tex file and compile it with pdftex.

\documentclass{article}
%use geometry and animate package
\usepackage[papersize={7in,7in},margin=0.3in]{geometry}
\usepackage{animate}

\begin{document}
% figure 1
\begin{figure}
  \begin{center}
    \animategraphics[controls,loop,width=0.95\textwidth]{10}{BM}{0}{9}
  \end{center}
\end{figure}
% figure 2
\begin{figure}
  \begin{center}
    \animategraphics[controls,loop,width=0.95\textwidth]{10}{BM}{0}{9}
  \end{center}
\end{figure}

\end{document}

We need implement another function to support 'one pdf multiple animation'.
We will add this feature in the future, as more users request for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant