On 2014–01–15 Pablo Rodriguez wrote:

> how should I invoke \hyphenation so it hyphens the \ConTeXt command?

\ConTeXt is defined as “Con\TeX t” and \TeX uses kerns and boxes,
both of which suppress hyphenation. AFAIK there's no easy way around
it.

That having said you can surely redefine the \TeX macro to include
custom hyphenation points using \discretionary. Here an example
which inserts a hyphenation point after the “T”:

\unexpanded\def\TeX
  {\dontleavehmode
   \begingroup
   \setbox\scratchbox\hbox{M}%%
   T%%
   \discretionary{-}{}{\kern-.1667\wd\scratchbox}
   \lower.5ex\hbox{E}%%
   \kern-.125\wd\scratchbox
   X%%
   \endgroup}

\starttext
  \hsize\zeropoint
  \ConTeXt
\stoptext

> Many thanks for your help,

My help is conditional in this case. Don't ever let me know *why*
you actually want to do this ;)

Marco

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________________
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