平均能量损失
\documentclass[a5paper,11pt]{article}
\usepackage{pdfcomment}
\usepackage{multicol}
\usepackage{color}
\setlength{\columnseprule}{1mm}
\renewcommand{\columnseprulecolor}{\color{black}}
\begin{document}
\begin{multicols}{2}
\pdftooltip{The international metric system of units or dimensions, commonly called SI, is used in electricity.}{First line works correctly. But other lines is not working.}
\newpage
\end{multicols}
\end{document}
\pdftooltip
不是所有句子都有效。只有第一行可以正常工作。在第一行中,鼠标光标的样式是指针和其他行,鼠标光标的样式是汽车。
这个问题能解决吗?
添加到@Mike 的解决方案
\partooltip{Find the resistance.}{This works. But there is a right space.} \partooltip{The international metric system of units or dimensions, commonly called SI, is used in electricity.}{First line works correctly. And the other lines now too.}
\pdftooltip{Find the resistance.}{This works. But two-sided alignment.} \partooltip{The international metric system of units or dimensions, commonly called SI, is used in electricity.}{First line works correctly. And the other lines now too.}
\pdftooltip{Find the resistance.}{This works.} \pdftooltip{The international metric system of units or dimensions, commonly called SI, is used in electricity.}{First line works correctly. But other lines is not working.}
答案1
它适用于整个句子,但在内部它被设置在一个框中以测量其大小。并且无需换行即可完成。因此工具提示也会在右栏中弹出。
您有两个选择:
- 选择其他注释之一。其中一些甚至支持分页符。
- 或者在 parbox 中设置你的文本。
第二种方法的缺点是它只能用于整个段落。还必须注意\parindent
。
这可以放入宏中,因此它\pdftooltip
本身就很容易使用。
\documentclass[a5paper,11pt]{article}
\usepackage{pdfcomment}
\usepackage{multicol}
\usepackage{color}
\setlength{\columnseprule}{1mm}
\renewcommand{\columnseprulecolor}{\color{black}}
\newcommand*{\partooltip}[3][17pt]{% default indent from size11.clo
\noindent% do not indent the parbox
\pdftooltip{\parbox[t]{\linewidth}{%
\hspace*{#1}% simulate the parindent
#2}}{#3}%
}
\begin{document}
\begin{multicols}{2}
\pdftooltip{The international metric system of units or dimensions, commonly called SI, is used in electricity.}{First line works correctly. But other lines is not working.}
\partooltip{The international metric system of units or dimensions, commonly called SI, is used in electricity.}{First line works correctly. And the other lines now too.}
\newpage
\end{multicols}
\end{document}