Graphics, Figures & Tablesanimategraphics clip option on texmaker

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Maxime
Posts: 3
Joined: Mon Apr 19, 2021 4:05 pm

animategraphics clip option on texmaker

Post by Maxime »

Dear all,

Generally speaking, I am not an aficionados of writing in forum. When I'm looking for information or trying to debug something, I always find a solution by looking around in existing topics. This time, I haven't. I struggle for a few hours with that bug, and I don't now how to solve it. Maybe you can help me. ;)

Here is the problem. For preparing my documents and others presentations, I usually work on Overleaf... Please don't judge me :p But this time, and because the documents and presentations I am doing now are much longer than I used to do, I want to switch to something not online : I chose Texmaker. What I want to do, and which was working perfectly on Overleaf is to generate an animated gif by using the package animate and tikz, by doing so :

Code: Select all

\node[right, overlay] at (-1.5,0){\animategraphics[trim=9cm 1.5cm 9cm 1.5cm, clip, autoplay, loop, height=3.5cm]{3}{figures/image_}{1}{10}};
On Texmaker, this clearly does not work. I receive an error like this one :
! Package xkeyval Error: `clip' undefined in families `anim@user'.
There is something wrong with the animate option "clip", and this does not happen when I'm doing it witin a classic includegraphics entry.

Do you have any idea what is wrong with that line ?

I would reaaaally appreciate.

Meanwhile, I wish you all a great afternoon.

Maxime
Last edited by Stefan Kottwitz on Fri Apr 30, 2021 10:53 am, edited 1 time in total.
Reason: code marked

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Maxime
Posts: 3
Joined: Mon Apr 19, 2021 4:05 pm

animategraphics clip option on texmaker

Post by Maxime »

Problem solved ;) We can close the thread
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

animategraphics clip option on texmaker

Post by Stefan Kottwitz »

Hi Maxime,

welcome to the forum!

Great to see that you solved the problem. How did you fix it? I ask because of curiousity but also because others may come via google here with a similar issue and then might be disappointed to not see the solution. If you got it, it would be great if you post it. Thanks in any case for letting us know that the issue is solved!

Stefan
LaTeX.org admin
Maxime
Posts: 3
Joined: Mon Apr 19, 2021 4:05 pm

animategraphics clip option on texmaker

Post by Maxime »

Hi again,

Actually, I haven't fixed anything.

I did not notice that texmaker did successfully bounce a pdf, while the pdf viewer (of texmaker) did not refresh and that an error, as the one explained in my first post, occurred.

So, it works in a way. It is just not convenient at all, as you have to launch the resulting pdf with adobe, each time you want to check if it is correctly positioned (instead of directly visualising it with the pdf viewer). When it does not need much accuracy and attempts, that's what I do. Otherwise, you can also use instead an "includegraphics" of the first image of the same gif (similarly truncated) to position it as you wish, then, when your beamer is ready, you uncomment all the animategraphics, then comment all the related includegraphics... Not convenient, as I said, but it "works".
Post Reply