加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

LaTeX技巧598:LaTeX如何实现pdf中带有注释

(2012-02-24 09:25:53)
标签:

latex

pdf

注释

分类: 宏包使用

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载

我们知道acrobat等软件可以对pdf文件进行处理,比如加注释,删除文字等,这里我们看看如何用latex来实现添加注释如下图便是演示效果:

image

首先,我们可以使用cooltooltips来实现,代码如下:

\documentclass{article}

\usepackage{cooltooltips}
\usepackage{graphicx}
\usepackage{color}
\usepackage{hyperref}

\def\cool{\texttt{cool}}
\begin{document}

The \cool\ package enables a document to contain hyperlinks that pop
up a brief tooltip when the mouse moves over them and also open a
small window containing additional text.  \cool\ works only with
pdf\LaTeX\@.  Furthermore, the tooltips that \cool\ produces are much
less cool when viewed under older versions of Acrobat~($<7.0$) or the
current version of xpdf~(3.00) because they don't pop up the extra,
small window.
\cooltooltip[0 0 1]{Example}{This is an example of a cool tooltip.
Pretty cool, eh?}{http://www.ctan.org/}{Visit CTAN on the Web}{This text\strut}
%
is an example of a cool tooltip (assuming
you're viewing this document with a sufficiently capable \textsc{pdf}
reader).  Move your mouse pointer over it and watch what happens.
Then, click on the link.  If your \textsc{pdf} reader is properly
configured it should launch a Web browser and send it to the
\textsc{ctan} home page.

\end{document}

选自:http://tex.stackexchange.com/questions/9796/how-to-add-todo-notes

 

其次,更为全面的功能,比如添加附件,注释样式多样等等可以使用pdfcomment宏包来实现:

http://www.ctan.org/tex-archive/macros/latex/contrib/pdfcomment

演示图:

image

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有