Hello Wolfgang.
I thank you as well. These macros I will also definitely come in handy. Sometimes I'm doing tests for my students.
I solved it yet a little awkward, now it is OK.

Thanx Jaroslav


Dne 28.6.2013 9:06, Christian Prim napsal(a):
Hello Wolfgang

thanks for both \TextGap and \WordGap. That is exactly what I needed!

Christian


2013/6/27 Wolfgang Schuster <schuster.wolfg...@gmail.com <mailto:schuster.wolfg...@gmail.com>>


    Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar <hajt...@gyza.cz
    <mailto:hajt...@gyza.cz>>:

    > Hello Wolfgang.
    > Here is example of other using of your TextGap.
    > There is a problem in some lines? Why linewidth is change?

    Add “width 0pt” to the \vrule arguments. See also my definition of
    \WordGap.

    \def\TextGap[#1]%
    {\scratchdimen#1\relax
    \divide\scratchdimen\plusten
    \dorecurse\plusten
    {\vrule width \scratchdimen height \linewidth depth \zeropoint\relax
    \ifnum\recurselevel<10 \hskip\zeropoint\relax \fi}}

    \def\WordGap
    {\dowithnextbox{\TextGap[\nextboxwd]}\hbox}

    \starttext

    a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e

    My words: \WordGap{My words}. Why is line very thick here?

    Here is an sentence: \WordGap{Here is an sentence} -- linewidth is
    OK here.

    Here is an sentence: \WordGap{Here is an sentence}. And why is
    problem here again?

    \stoptext

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

    maillist : ntg-context@ntg.nl <mailto: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
    
___________________________________________________________________________________




___________________________________________________________________________________
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
___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to