fancytooltips 无法显示带有 documentclass{jfm} 的弹出窗口

fancytooltips 无法显示带有 documentclass{jfm} 的弹出窗口

\documentclass{jfm}我正在使用期刊提供的软件撰写一篇文章,但fancytootip软件包存在一些问题。它不显示弹出窗口,但当我返回时,\documentclass{article}它会显示。有一些 MWE:

首先我创建了一个.pdf名为证明的文件,并使用以下代码来生成我的方程式:

    \documentclass{article}
    \usepackage[usenames, dvipsnames]{color}
    \usepackage{amsmath}
    \usepackage[createtips]{fancytooltips}
    \usepackage{tcolorbox}

    \tcbset{
           colframe=black!20!white,
           colback=yellow!20!white,
          %colbacktitle=black!20!white,
          %title=Proofs,
          %fonttitle=\bfseries
          }

   \begin{document}

   \keytip{proofi}
   \begin{tcolorbox}
   Expressions for proof:
   \[
    I_1 = \begin{bmatrix}
           1 & 0 & 0 \\
           0 & 1 & 0 \\
           0 & 0 & 1 
           \end{bmatrix}
   \]
   \end{tcolorbox}

   \clearpage

   \keytip{proofii}
   \begin{tcolorbox}
   Expressions for proof2:
  \[
   I_2 = \begin{bmatrix}
          2 & 0 & 0 \\
          0 & 2 & 0 \\
          0 & 0 & 2 
          \end{bmatrix}
  \]
  \end{tcolorbox}

  \clearpage

 \keytip{proofiii}
 \begin{tcolorbox}
 Expressions for proof3:
\[
 I_3 = \begin{bmatrix}
       3 & 0 & 0 \\
       0 & 3 & 0 \\
       0 & 0 & 3 
       \end{bmatrix}
\]
\end{tcolorbox}

\clearpage

\keytip{proofiiii}
\begin{tcolorbox}
Expressions for proof4:
\[
 I_4 = \begin{bmatrix}
        4 & 0 & 0 \\
        0 & 4 & 0 \\
        0 & 0 & 4 
       \end{bmatrix}
\]
\end{tcolorbox}

\clearpage

\keytip{proofiiiii}
\begin{tcolorbox}
Expressions for proof5:
\[
 I_5 = \begin{bmatrix}
        5 & 0 & 0 \\
        0 & 5 & 0 \\
        0 & 0 & 5 
       \end{bmatrix}
\]
\end{tcolorbox}

\end{document}

然后我在主程序中使用\usepackage[filename=proofs,mouseover,noextratext]{fancytooltips}以下命令使用它\documentclass{jfm}

  % This i% This is file JFM2esam.tex
  % first release v1.0, 20th October 1996
  %       release v1.01, 29th October 1996
  %       release v1.1, 25th June 1997
  %       release v2.0, 27th July 2004
  %       release v3.0, 16th July 2014
  %   (based on JFMsampl.tex v1.3 for LaTeX2.09)
  % Copyright (C) 1996, 1997, 2014 Cambridge University Press

  \documentclass{jfm}
  \usepackage{graphicx}
  \usepackage{epstopdf, epsfig}
  \usepackage[usenames, dvipsnames]{color}
  %\usepackage{xcolor}
  \usepackage{tcolorbox}

  \tcbset{
         colframe=black!20!white,
         colback=yellow!20!white,
         %colbacktitle=black!20!white,
         %title=Proof,
         %fonttitle=\bfseries
         }

  \usepackage{url}
  \usepackage{hyperref}
  \usepackage[noabbrev]{cleveref}
  \hypersetup{
             colorlinks   = true, %Colours links instead of ugly boxes
             urlcolor     = black, %Colour for external hyperlinks
             linkcolor    = blue, %Colour of internal links
             citecolor    = ForestGreen %Colour of citations
             }

  \usepackage{amsmath}
  \usepackage[labelsep=period]{caption}
  \usepackage{subcaption}
  \usepackage[filename=proofs,mouseover,noextratext]{fancytooltips}

  \usepackage{siunitx}
  \usepackage{xfrac}
  \usepackage{nicefrac}



  \newtheorem{lemma}{Lemma}
  \newtheorem{corollary}{Corollary}

  \shorttitle{Fancytooltips package don't work with documentclass{jfm}}
  \shortauthor{Authors}

  \title{Fancytooltips package don't work with documentclass{jfm}}

  \author{
   Authors
    \corresp{\email{[email protected]}}   
  }

  \affiliation{
    \aff{}
     Stackexchange
 }

  \begin{document}

   \maketitle

  \begin{abstract}
    ''xyz.''
  \end{abstract}

  \begin{keywords}
   Fancytooltips, stackexchange,documentclass
  \end{keywords}

  \section{Introduction}

   \tooltip{Click here to see the proof1.}{proofi}\\
   \tooltip{Click here to see the proof2.}{proofii}\\
   \tooltip{Click here to see the proof3.}{proofiii}\\
   \tooltip{Click here to see the proof4.}{proofiiii}\\
   \tooltip{Click here to see the proof5.}{proofiiiii}\\

   \end{document}

链接当然是蓝色的,但是当鼠标悬停在方程式链接上时不会出现弹出窗口。如图所示:

使用 \documentclass{jfm} 进行证明

当我使用 MWE 更改文章中的 documentclass 时:

  \documentclass{article}
  \usepackage{xcolor}
  \usepackage[filename=proofs,mouseover,noextratext]{fancytooltips}
  \usepackage{amsmath}
  \usepackage{amsthm}
  \usepackage{lipsum}

  \newtheorem{theorem}{Theorem}

  \begin{document}

  \begin{theorem}
  \lipsum[4]
  \end{theorem}
  \tooltip{Click here to see the proof1.}{proofi}

  \begin{theorem}
  \lipsum[4]
  \end{theorem}
  \tooltip{Click here to see the proof2.}{proofii}

  \begin{theorem}
  \lipsum[4]
  \end{theorem}
  \tooltip{Click here to see the proof3.}{proofiii}

  \begin{theorem}
  \lipsum[4]
  \end{theorem}
  \tooltip{Click here to see the proof4.}{proofiiii}

  \begin{theorem}
  \lipsum[4]
  \end{theorem}
  \tooltip{Click here to see the proof5.}{proofiiiii}

  \end{document}

我的引文出现了。如这里所示!

使用 \document 的证明

第一个问题是如何使用 fancytooltip 包\documentclass{jfm},第二个问题是当我使用 fancytooltip 包时\documentclass{article},我的弹出窗口只会出现在页面顶部,即使引用位于页面末尾(如图所示),这可能会让读者感到不舒服。我该如何避免这种情况?

相关内容