Am 10.04.2012 um 09:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello Wolfgang, > > thanks for the solution. > > Two more questions: > > - How to specify indenting to be equal to the normal paragraph indenting? > > Here's my trial: > > ---- > \setupindenting[yes,first,medium] > > \define[1]\TestHeadCommand{\offset[x=-\parindent]{#1}} % This doesn't work > > \starttext > \definedescription > [test] > [alternative=top, > margin=\parindent, > headcommand=\TestHeadCommand, > ] > > \input knuth > > \starttest{Knuth} > \input knuth > \stoptest > > \input knuth > \stoptext > ----
When you want a certain value in various places I would use \definemeasure to set it and \measure to access it. \definemeasure[parindent][1em] \define[1]\TestHeadCommand {\offset[x=-\measure{parindent}]{#1}} \definedescription [test] [alternative=top, margin=\measure{parindent}, headcommand=\TestHeadCommand] \setupindenting[yes,\measure{parindent}] \starttext \input knuth \starttest{Knuth} \input knuth \stoptest \input knuth \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________