Difference between revisions of "Command/ tooltip"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \<i>tooltip</i>") |
|||
Line 4: | Line 4: | ||
<cd:shortdesc> | <cd:shortdesc> | ||
<!-- a short command summary goes here --> | <!-- a short command summary goes here --> | ||
− | The instances of <tt>\<i>tooltip</i></tt> are used for | + | The instances of <tt>\<i>tooltip</i></tt> are used for creating tooltips in the output PDF. |
</cd:shortdesc> | </cd:shortdesc> | ||
<cd:sequence> | <cd:sequence> | ||
Line 52: | Line 52: | ||
</cd:description> | </cd:description> | ||
<cd:examples> | <cd:examples> | ||
− | |||
<cd:example title=""> | <cd:example title=""> | ||
+ | Here is a typical example (this works only with PDF viewers which are JavaScript compatible, such as Adobe Acrobat): | ||
+ | |||
+ | <texcode> | ||
+ | \setuppapersize[S6][S6] | ||
+ | \setupinteraction[state=start] | ||
+ | \setupcolors[state=start] | ||
+ | |||
+ | \starttext | ||
+ | Here is an example: by saying | ||
+ | \type{\tooltip[left]{Example}{Is it nice}}, we get | ||
+ | \blank | ||
+ | \midaligned{\tooltip[bottom]{Example}{Isn't it nice?}} | ||
+ | \blank | ||
+ | |||
+ | This file when opened in Adobe Acrobat will show the tooltip "Isn't it nice?" when one hovers over the word "Example". | ||
+ | |||
+ | \blank | ||
+ | \midaligned{\tooltip[bottom]{an example}{Isn't it nice?} of tooltip on the bottom} | ||
+ | \blank | ||
+ | \midaligned{an example of tooltip on the \tooltip[right]{right}{Isn't it nice?}} | ||
+ | \blank | ||
+ | \midaligned{\tooltip[left]{an}{Isn't it nice?} example of tooltip on the left} | ||
+ | |||
+ | \stoptext | ||
+ | |||
+ | </texcode> | ||
</cd:example> | </cd:example> | ||
− | + | ||
</cd:examples> | </cd:examples> | ||
<cd:notes> | <cd:notes> |
Latest revision as of 10:16, 21 August 2020
Contents
\tooltip
Summary
The instances of \tooltip are used for creating tooltips in the output PDF.
Instances
\tooltip |
Settings instance
Settings instance:argument
Description
Examples
Example 1
Here is a typical example (this works only with PDF viewers which are JavaScript compatible, such as Adobe Acrobat):
\setuppapersize[S6][S6] \setupinteraction[state=start] \setupcolors[state=start] \starttext Here is an example: by saying \type{\tooltip[left]{Example}{Is it nice}}, we get \blank \midaligned{\tooltip[bottom]{Example}{Isn't it nice?}} \blank This file when opened in Adobe Acrobat will show the tooltip "Isn't it nice?" when one hovers over the word "Example". \blank \midaligned{\tooltip[bottom]{an example}{Isn't it nice?} of tooltip on the bottom} \blank \midaligned{an example of tooltip on the \tooltip[right]{right}{Isn't it nice?}} \blank \midaligned{\tooltip[left]{an}{Isn't it nice?} example of tooltip on the left} \stoptext