[NTG-context] Custom function

Stéphanie Vilayphiou stephanie at stdin.fr
Fri Jun 3 16:50:05 CEST 2011


Hello,
I'm rather new to ConTeXt and would like to simplify my document, in 
order to simplify processing of documents.

I have this:

\defineparagraphs[infos][n=1]
\setupparagraphs[infos][1][
     style={\switchtobodyfont[6pt]},
     %command=????,
     ]

\starttext

\startinfos
     \smash{\lower22pt\hbox{
         \margintext[left]{
             Edition de Trilogie de l'enfer en novembre 2011 chez Sens  
Tonka
     }}}
\stopinfos

\input tufte
\stoptext

I would like to avoid putting "\inmargin" and 
"\smash{\lower22pt\hbox{..." by hand and add it directly to the 
setupparagraphs.
Can I do such a thing?
Thanks for help!
Stéphanie

-- 
<stdin>
Stéphanie Vilayphiou
http://stdin.fr/
+32 (0)4 89 00 88 59



More information about the ntg-context mailing list