On Wed, 12 Oct 2011, Hans Hagen wrote:
On 12-10-2011 21:43, Otso Helenius wrote:
Hello,
I've been trying to come up with a few methods to add definitions to
text with the help of the metafun and context manuals. The first method
adds the definition as sort of a "superscript" on top of the word
\unexpanded\def\WordDef
{\dodoubleargument\doWordDef}
\def\doWordDef[#1][#2]%
{\dontleavehmode\hbox\bgroup
\setbox\scratchbox\hbox{#2}%
\raise\strutheight\hbox to
\wd\scratchbox{\hss\rotate[rotation=25]{\tfxx\color[red]#1}\hss}%
\hskip-\wd\scratchbox
\box\scratchbox
\eg
On 12-10-2011 21:43, Otso Helenius wrote:
Hello,
I've been trying to come up with a few methods to add definitions to
text with the help of the metafun and context manuals. The first method
adds the definition as sort of a "superscript" on top of the word, and
the second one marks multiple words
Hello,
I've been trying to come up with a few methods to add definitions to
text with the help of the metafun and context manuals. The first method
adds the definition as sort of a "superscript" on top of the word, and
the second one marks multiple words with a curly bracket and adds the
defi