ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Kerning
@ 2008-11-12 15:48 Bart C. Wise
  2008-11-12 15:54 ` Kerning Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Bart C. Wise @ 2008-11-12 15:48 UTC (permalink / raw)
  To: Context Mailing List

I am trying to change the spacing of a chapter title head.  I found the 
"\kern" command; however, I could not get that to work over a string of text.

Then I found the following code:
\def\dolist{\afterassignment\dodolist\let\next= }
\def\dodolist{\ifx\next\endlist \let\next\relax
   \else \\\let\next\dolist \fi
   \next}
\def\endlist{\endlist}
\def\track#1\by#2{\def\\{\next\kern#2}%
   \leavevmode \hbox{\expandafter\dolist#1\endlist}}

Then I tried:

def\MyChapterCommand#1#2{
        \framed[align=center,frame=off,width=\textwidth]{
		\vbox{
			\track{This is a Test} \by{.2em}
			\track #2  \by{.2em}
		}
	}
\setuphead[chapter][
    command=\MyChapterCommand
}

The output from the \track{This is a Test} \by{.2em} works.  However, the 
second track command (\track #2 \by{0.2em}) fails.

I spent many hours last night trying to change the kerning.  What I want is 
something like: \kern{TEXT}{KERNING AMOUNT}.  

What's available, or how do I fix the track command above.  By the way,I'm 
running mkii.

Thanks,
Bart
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-11-14 15:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <429D6DD1.2040005@wxs.nl>
     [not found] ` <429D734F.7040203@elvenkind.com>
     [not found]   ` <429D7FB5.90406@wxs.nl>
2005-06-02 15:31     ` [NTG-pdftex] kerning Taco Hoekwater
2005-06-02 20:28       ` Hans Hagen
2005-06-28 12:10       ` kerning Patrick Gundlach
2005-07-11 15:11       ` TeX trie processing (\pattern loading) details visualisation Taco Hoekwater
2008-11-12 15:48 Kerning Bart C. Wise
2008-11-12 15:54 ` Kerning Wolfgang Schuster
2008-11-12 16:28   ` Kerning Bart C. Wise
2008-11-12 17:03     ` Kerning Bart C. Wise
2008-11-12 17:17       ` Kerning Wolfgang Schuster
2008-11-13  6:18         ` Kerning Bart C. Wise
2008-11-13  7:46           ` Kerning Hans Hagen
2008-11-13 16:20             ` Kerning Bart C. Wise
2008-11-14 15:00               ` Kerning Hans Hagen
2008-11-13  8:36           ` Kerning Wolfgang Schuster
2008-11-13 15:26             ` Kerning Bart C. Wise

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).