* problem with \appendtoks \to\everypar
@ 2008-07-30 19:34 Steffen Wolfrum
2008-07-30 20:25 ` Taco Hoekwater
2008-07-31 13:18 ` Hans Hagen
0 siblings, 2 replies; 3+ messages in thread
From: Steffen Wolfrum @ 2008-07-30 19:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
There is no hangover for italics. Please have a look:
\starttext
\def\hangover{\hangafter=1\hangindent=1em}
\definestartstop[hangingarea]
[before={\bgroup\appendtoks\hangover\to\everypar},
after=\egroup]
\starthangingarea
\input tufte
{\it italic} text roman test text roman test text roman test text
roman test text roman test text roman test text roman test text roman
test text roman test text
\stophangingarea
\stoptext
Thanks,
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem with \appendtoks \to\everypar
2008-07-30 19:34 problem with \appendtoks \to\everypar Steffen Wolfrum
@ 2008-07-30 20:25 ` Taco Hoekwater
2008-07-31 13:18 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2008-07-30 20:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
Steffen Wolfrum wrote:
> Hi,
>
>
> There is no hangover for italics. Please have a look:
This is a typical TeX gotcha. Don't start a paragraph with a group,
because the \everypar will be executed within the group. The problem
is not the italics but the { .
>
>
> \starttext
> \def\hangover{\hangafter=1\hangindent=1em}
>
> \definestartstop[hangingarea]
> [before={\bgroup\appendtoks\hangover\to\everypar},
> after=\egroup]
>
> \starthangingarea
> \input tufte
Do this:
\leavevmode
{\it italic} text roman test text roman test text roman test text
> roman test text roman test text roman test text roman test text roman
> test text roman test text
> \stophangingarea
Best wishes,
Taco
___________________________________________________________________________________
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] 3+ messages in thread
* Re: problem with \appendtoks \to\everypar
2008-07-30 19:34 problem with \appendtoks \to\everypar Steffen Wolfrum
2008-07-30 20:25 ` Taco Hoekwater
@ 2008-07-31 13:18 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2008-07-31 13:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
Steffen Wolfrum wrote:
> Hi,
>
>
> There is no hangover for italics. Please have a look:
>
>
>
> \starttext
> \def\hangover{\hangafter=1\hangindent=1em}
>
> \definestartstop[hangingarea]
> [before={\bgroup\appendtoks\hangover\to\everypar},
> after=\egroup]
>
> \starthangingarea
> \input tufte
>
> {\it italic} text roman test text roman test text roman test text
> roman test text roman test text roman test text roman test text roman
> test text roman test text
> \stophangingarea
>
> \stoptext
that's because the everypar happens in a group then (one of the nasty
thinsg that is hard to take care of)
\dontleavehmode {\it ...
or put a strut in front
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2008-07-31 13:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-30 19:34 problem with \appendtoks \to\everypar Steffen Wolfrum
2008-07-30 20:25 ` Taco Hoekwater
2008-07-31 13:18 ` Hans Hagen
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).