ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Custom function
@ 2011-06-03 14:50 Stéphanie Vilayphiou
  2011-06-04  7:41 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Stéphanie Vilayphiou @ 2011-06-03 14:50 UTC (permalink / raw)
  To: ntg-context

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Custom function
@ 2011-06-08  0:38 Alexandre Leray
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Leray @ 2011-06-08  0:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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!

Alex
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-08  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 14:50 Custom function Stéphanie Vilayphiou
2011-06-04  7:41 ` Wolfgang Schuster
2011-06-04 19:00   ` Peter Münster
2011-06-08  0:38 Alexandre Leray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).