Text Formattinganimate, hyperref | Combination and possible Problems

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

animate, hyperref | Combination and possible Problems

Post by svend_tveskaeg »

Hi all.

I am playing around with the animate package.

Can one use the animate* and the hyperref packages in the same document? (A quick search through both manuals gave nothing; that said, it could very well be noted in there somewhere.)

If so, how?

Thank you in advance!

*) The newest version of the manual is not on texdoc.net as far as I can see.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

animate, hyperref | Combination and possible Problems

Post by localghost »

What should happen? More than errors cannot occur. But if you obey the rule to load animate before hyperref (as almost all other packages), there should be no problems.
svend_tveskaeg wrote:[…] The newest version of the manual is not on texdoc.net as far as I can see.
The newest version can always be found on CTAN.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

animate, hyperref | Combination and possible Problems

Post by svend_tveskaeg »

If I use

Code: Select all

latex <filename>.tex
dvips <filename>.dvi
ps2pdf <filename>.ps
instead of

Code: Select all

pdflatex <filename>.tex
(as Herbert told me :oops: ) there is no problem at all.

P.S. I always load hyperref as the last package.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

animate, hyperref | Combination and possible Problems

Post by CrazyHorse »

svend_tveskaeg wrote:P.S. I always load hyperref as the last package.
Define no driver for hyperref, load it only with options for colors, links and so on.

\usepackage[pdftex,...]{hyperref} is wrong if you use the dvi path. \usepackage[...]{hyperref} is always the good choice
Last edited by cgnieder on Mon Oct 22, 2012 9:42 pm, edited 1 time in total.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

animate, hyperref | Combination and possible Problems

Post by svend_tveskaeg »

I always use the following combination:

Code: Select all

\usepackage{hyperref}

\newif\ifprint
%\printfalse
\printtrue

\makeatletter
\@ifpackageloaded{hyperref}{
  \ifprint
    \hypersetup{
      breaklinks,
      colorlinks=false,
      pdfborder={0 0 0}
    }
  \else
    \hypersetup{
      breaklinks,
      bookmarksopen=true,
      breaklinks=true,
      colorlinks=true,
      citecolor=blue,
      linkcolor=red,
      urlcolor=teal
    }
  \fi
}{}
\makeatother
and then outcomment \printfalse or \printtrue depending on whether the document is for print or screen view.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply