From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Q about hangaround commands
Date: Thu, 6 Dec 2012 10:58:13 +0100 [thread overview]
Message-ID: <CAHy-LL_NHFEutps42zQCc2zDfMzS5XOEtJJ0idHtUQNz1uwo_w@mail.gmail.com> (raw)
In-Reply-To: <4571F63D-01DA-4FBA-9661-72581BDD1A51@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3009 bytes --]
On Wed, Nov 3, 2010 at 7:51 AM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:
>
> Am 03.11.2010 um 05:47 schrieb Vladimir Lomov:
>
> > Hi.
> >
> > Some answers I found myself :)
> >
> > P.S. I have feeling that feature like 'hangaround' doesn't fit well
> > with tex (page layout ...?) model.
>
> Hangaround is a very robust command and works in more cases than
> \placefigure[left] but you have a conflict with the \item command
> which place the itemize symbol before the following text which
> is indented in your case.
>
> \unprotect
>
> \def\stophangaround
> {\endgraf
> \egroup}
>
> \def\starthangaround
> {\dosingleempty\dostarthangaround}
>
> \def\dostarthangaround[#1]%
> {\doifelse{#1}{\v!right}
> {\dostartrighthangaround}
> {\dostartlefthangaround }}
>
> \def\dostartlefthangaround
> {\noindent\bgroup
> \dowithnextbox
> {\ifdim\nextboxht>\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
> \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}%
> \getboxheight\scratchdimen\of\box\nextbox
> \getnoflines\scratchdimen
> \nextboxht\strutht
> \nextboxdp\strutdp
> \hangindent\nextboxwd
> \hangafter-\noflines
> \llap{\flushnextbox}\ignorespaces}
> \hbox}
>
> \def\dostartrighthangaround
> {\noindent\bgroup
> \dowithnextbox
> {\ifdim\nextboxht>\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
> \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}%
> \getboxheight\scratchdimen\of\box\nextbox
> \getnoflines\scratchdimen
> \nextboxht\strutht
> \nextboxdp\strutdp
> \hangindent-\nextboxwd
> \hangafter-\noflines
> \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces}
> \hbox}
>
> \protect
>
> \starttext
>
> \starthangaround{\externalfigure[cow][scale=500]}
> \input tufte
> \stophangaround
>
> \blank
>
> \starthangaround[right]{\externalfigure[cow][scale=500]}
> \input tufte
> \stophangaround
>
> \stoptext
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
Dear ConTeXt list,
I apologize for digging up an old thread. I was searching for
\starthangaround[right] and found this thread. I tried the code that
Wolfgang gave in this thread but I guess something has changed since then,
because it does not work with latest minimals. Would it be possible to get
(a working) version of \starthangaround[right]? I think it even would be
nice to have it in the core.
As a minimal nonworking example, see the email from Wolgang in this thread.
With best regards, Mikael
[-- Attachment #1.2: Type: text/html, Size: 4083 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-12-06 9:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-26 6:26 Vladimir Lomov
2010-11-03 4:47 ` Vladimir Lomov
2010-11-03 6:51 ` Wolfgang Schuster
2010-11-03 7:28 ` Vladimir Lomov
2012-12-06 9:58 ` Mikael P. Sundqvist [this message]
2012-12-06 10:44 ` Otared Kavian
2012-12-06 16:53 ` Mikael P. Sundqvist
2012-12-06 17:23 ` Wolfgang Schuster
2012-12-06 16:57 ` Hans Hagen
2012-12-06 17:49 ` 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=CAHy-LL_NHFEutps42zQCc2zDfMzS5XOEtJJ0idHtUQNz1uwo_w@mail.gmail.com \
--to=mickep@gmail.com \
--cc=ntg-context@ntg.nl \
/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).