[powerdot] Re: Changing clock position in a powerdot slide template (\pddefinetemplate[slide]{slide})

  • From: Rafael Coninck Teigão <rcteigao@xxxxxxxxx>
  • To: powerdot@xxxxxxxxxxxxx
  • Date: Thu, 17 Aug 2017 14:23:13 -0300

Hi Alexander,

Thanks a lot for your answer. The package worked perfectly!

Cheers,
Rafael.

On Thu, Aug 17, 2017 at 12:18 PM, Hendri Adriaens <spotje@xxxxxxxxx> wrote:

Hi Alexander,

thanks a lot for answering this question and sorting out the issue.

Best regards,
-Hendri.


On Thu, Aug 17, 2017 at 5:08 PM, Alexander Grahn <A.Grahn@xxxxxxx> wrote:
Good afternoon,

On Wed, Aug 16, 2017 at 01:35:00PM -0300, Rafael Coninck Teigão wrote:
Hello,

Now that I know that it's the animate.sty package that's preventing the
clock to show up, I could look for answer using more specific info.

So I've found this 2011 post with exactly the same problem:
https://www.freelists.org/post/powerdot/Problem-using-
clock-with-animate-package,1

The Powerdot clock related code in `animate' was removed a while back.

I wrote a small package, which replaces the PD clock and which restores
compatibility with `animate'. The replacement clock can be configured as
usual.

Get `pdclock.sty' from here:

https://gist.github.com/agrahn/bb6e6c6911f8cb919a64d9b7ba3daf59

See usage example below.

Kind regards,
Alexander

Example usage:

\documentclass{powerdot} %don't use option `clock'

%this enables the new clock
\usepackage{pdclock}

%set up clock appearance as usual, e. g.
\pdsetup{
  clockrefresh=60000,
  clockformat=h:MM tt
}

\usepackage{animate}

\begin{document}

\begin{slide}{Animation}

\begin{center}
  \begin{animateinline}[loop,autoplay]{1}
    \multiframe{10}{i=0+1}{\fbox{\Huge\i}}
  \end{animateinline}
\end{center}

\end{slide}

\begin{slide}{A dumb slide}

\end{slide}

\end{document}


So I modified the above example as the creator of animate suggests:

\pdsetup{
       clockformat=HH:MM,
       clockrefresh=60000
}

And I also made sure I'm using a recent version of both animate and
powerdot. The animate's fix to make it compatible with powerdot's clock
was
introduced on:

2011-09-16
      * detects powerdot's `clock' option

Since it seems that animate's developer Alexander Grahn also
subscribes to this list, maybe I'm lucky and he may see my post too
:-)

Thanks!


On Mon, Aug 14, 2017 at 1:20 PM, Rafael Coninck Teigão <
rcteigao@xxxxxxxxx>
wrote:

Hello Hendri,

Thanks for answering.

While trying to build a minimal example, I found out that the issue
comes
from the Animate package.

If possible, could you please help me figure out how to fix this
issue? I
wish to keep on using the animate package, but it seems that the
javascript
it embeds messes up with the javascript for the clock.

Attached you may find a minimal example and its output.

Thanks again,
Rafael.

On Fri, Aug 11, 2017 at 12:21 PM, Hendri Adriaens <spotje@xxxxxxxxx>
wrote:

Hello,

as your example was not a complete, reproducing minimal example, I had
to create one. Please find it, and it's output attached. You will see
I cannot replicate your problem. Obviously, I do not have your
eps-file. The problem might be in that file or your positioning.

Further, please make sure you are using the latest powerdot and use
latex, dvips, ps2pdf.

Best regards,
-Hendri.


On Thu, Aug 10, 2017 at 7:58 PM, Rafael Coninck Teigão
<rcteigao@xxxxxxxxx> wrote:
Hello fellows,

0 down vote favorite

I've created a slide template and tried changing the clock position
like so:

\pddefinetemplate[slide]{slide}{
  textpos={.20\slidewidth,.75\slideheight},
  textwidth=.75\slidewidth,
  titlepos={.15\slidewidth,.85\slideheight},
  tocpos={.015\slidewidth,.75\slideheight},
  clockpos={.23\slidewidth,.08\slideheight}
}{\rput[bl](0,0){\includegraphics[width=\slidewidth,
height=\slideheight]{fundo-slides.eps}}}

The idea was for it to go to the lower-left corner of my slide,
over a
specif piece of my background (set with the \rput command above).

The problem is that, instead of showing the clock, it only shows a
blue-ish
field in that position, instead of showing the clock.

And to make things even weirder, sometimes the clock does show up,
but
if I
recompile the document it goes away (even if no changes were made).

I've tried playing with clockcolor=black, and clockhook= several
different
positions, but nothing seems to fix it.

What else do I need to set on the template for the clock to show up?

I also posted this question on:

https://tex.stackexchange.com/questions/384860/changing-cloc
k-position-in-a-powerdot-slide-template-pddefinetemplateslides

If you wanna answer there, so that I can "accept" your answer and
give
points for it, I'd be more than happy to.

Thanks!




--
Dr.-Ing. Alexander Grahn
Helmholtz-Zentrum Dresden-Rossendorf e. V.,
Institut für Ressourcenökologie
PF 51 01 19
01314 Dresden
Allemagne

m a i l t o : A . G r a h n @ h z d r . d e
Tel.: +49 (0)3 51-2 60 23 31
Fax.: +49 (0)3 51-2 60 12 33 1

Vorstand: Prof. Dr. Dr. h. c. Roland Sauerbrey, Prof. Dr. Dr. h. c. Peter
Joehnk
Vereinsregister: VR 1693 beim Amtsgericht Dresden



Other related posts: