From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: hyphenation blues
Date: Wed, 24 Sep 2008 17:02:37 +0200 [thread overview]
Message-ID: <FFAE99A1-B991-4664-AC6D-B0BEA39B6A29@st.estfiles.de> (raw)
In-Reply-To: <48DA1D13.8060202@elvenkind.com>
Am 24.09.2008 um 12:57 schrieb Taco Hoekwater:
> Steffen Wolfrum wrote:
>> Am 24.09.2008 um 10:39 schrieb Taco Hoekwater:
>>
>>>
>>> Steffen Wolfrum wrote:
>>>> \def\Textit%
>>>> {\groupedcommand\em\/}
>>> Try this:
>>>
>>> \define\Colorit%
>>> {\groupedcommand{\color[blue]\em}\/}
>>
>>
>> tried it ... but still no hyphenation!
>
> You are running pdftex, 'cause it worked fine in mkiv :-)
>
> \def\Colorit%
> {\groupedcommand{\color[red]\em\penalty10000\hskip0pt }\/}
>
> The penalty and skip are needed because the \color generates
> a node that prevents the next word from hyphenating.
I still got the blues!
It works fine for normal text, but try it in footnotes (test below)
and you'll get in mkii:
! You can't use `\end' in internal vertical mode.
<recently read> \normalend
\mainlanguage[en]
\enableregime[utf]
\showframe
\setupcolors[state=start]
\def\Textit%
{\groupedcommand\em\/}
\def\Colorit%
{\groupedcommand{\color[red]\em\penalty10000\hskip0pt }\/}
\starttext
test\footnote{text text text text text text text text text text text
text text text text text text text text "\Textit{hyphenation}"}
test\footnote{text text text text text text text text text text text
text text text text text text text text "\Colorit{hyphenation}"}
\stoptext
Steffen
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-09-24 15:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 8:29 Steffen Wolfrum
2008-09-24 8:39 ` Taco Hoekwater
2008-09-24 8:56 ` Steffen Wolfrum
2008-09-24 10:57 ` Taco Hoekwater
2008-09-24 15:02 ` Steffen Wolfrum [this message]
2008-09-24 15:28 ` Taco Hoekwater
2008-09-24 16:23 ` Steffen Wolfrum
2008-09-24 16:29 ` Hans Hagen
2008-09-24 16:09 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FFAE99A1-B991-4664-AC6D-B0BEA39B6A29@st.estfiles.de \
--to=context@st.estfiles.de \
--cc=ntg-context@ntg.nl \
--cc=taco@elvenkind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).