ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with (features of?) hangaround text
@ 2011-02-14 20:30 Procházka Lukáš
  2011-02-14 23:09 ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Procházka Lukáš @ 2011-02-14 20:30 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]

Hello,

I'd need to place a picture and let it be flowed by some text from the right side.

My observation is that only one (= the first) paragraph flows the picture correctly (see the "\input tufte" only case); see the attached example.

It there a way how to:

- enable heads (e.g. \subject) in the hang-around area (see the "Ccc" text placement)?

- enable more than one paragraph in the hang-around area (see the knuth being \input)?

- enable "tabulate" (see "TTT ttt" and "UUU uuu" lines)? (The "C" "tabulate" style is defined in the way that the rightmost column should have fixed width of 2 in, whilst the leftmost column should have remaining width; "remaining" in this case should mean \textwidth minus width-of-the-picture (minus some gap).)

I can imagine that \(start/stop)hangaround command is a bit limited and/or experimental in use; anyway - is there another way how to "earmark" some area for a picture and to use the "remaining" space for text flowing "as usual" with less restrictions?

Best regards,

Lukas

[-- Attachment #2: t-Hang.mkiv --]
[-- Type: application/octet-stream, Size: 981 bytes --]

\definetabulate[C][|p|lw(2in)|]

\starttext
  \subsubject{Aaa}

    \starthangaround{\externalfigure[cow]}
      \input tufte
    \stophangaround

    \starthangaround{\externalfigure[cow]}
      \input knuth
    \stophangaround

    \page

    \startC
      \NC TTT \NC UUU \NC\NR
      \NC ttt \NC uuu \NC\NR
    \stopC

    \starthangaround{\externalfigure[cow]}

      Aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz

      \startC
        \NC TTT \NC UUU \NC\NR
        \NC ttt \NC uuu \NC\NR
      \stopC
      \input tufte
    \stophangaround

    \page

    \starthangaround{\externalfigure[cow]}

      \subsubject{Ccc}

      Aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz

      \startC
        \NC TTT \NC UUU \NC\NR
        \NC ttt \NC uuu \NC\NR
      \stopC
      \input tufte
    \stophangaround
\stoptext

[-- Attachment #3: t-Hang.pdf --]
[-- Type: application/pdf, Size: 19488 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 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
___________________________________________________________________________________

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

* Re: Problems with (features of?) hangaround text
  2011-02-14 20:30 Problems with (features of?) hangaround text Procházka Lukáš
@ 2011-02-14 23:09 ` Aditya Mahajan
  2011-02-15  7:24   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2011-02-14 23:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 607 bytes --]

On Mon, 14 Feb 2011, Procházka Lukáš wrote:

> Hello,
>
> I'd need to place a picture and let it be flowed by some text from the right 
> side.
>
> My observation is that only one (= the first) paragraph flows the picture 
> correctly (see the "\input tufte" only case); see the attached example.
>
> It there a way how to:
>
> - enable heads (e.g. \subject) in the hang-around area (see the "Ccc" text 
> placement)?
>
> - enable more than one paragraph in the hang-around area (see the knuth being 
> \input)?

Have you tried

\placefigure[right,none]{}{\externalfigure[...]}

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________

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

* Re: Problems with (features of?) hangaround text
  2011-02-14 23:09 ` Aditya Mahajan
@ 2011-02-15  7:24   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-02-15  7:53     ` Problems with (features of?) hangaround text (case study 2) Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-02-15  7:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

Hello,

thanks Aditya, \placefigure does the job:

- multiple paragraphs flow the picture - OK,

- heads may flow the picture as well ("\setupheads[aligntitle=float]" required) - OK,

- "tabulate" is still drawn over the picture, but it doesn't cause jumping to the bottom of the picture - useful. (In my actual case, this only means to not use the first column of "tabulate" which only one would overwrite the picture - that's OK.)

The final test is attached.

Thanks again.

Lukas


On Tue, 15 Feb 2011 00:09:42 +0100, Aditya Mahajan <adityam@umich.edu> wrote:

> \placefigure[right,none]{}{\externalfigure[...]}
>
> Aditya


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t-Hang.mkiv --]
[-- Type: application/octet-stream, Size: 1413 bytes --]

\definetabulate[C][|p|lw(2in)|]

\setupheads[aligntitle=float]

\starttext
  \subsubject{Aaa}

    \placefigure[left,none]{}{\externalfigure[cow][width=6cm]}
    %\starthangaround{\externalfigure[cow]}
      \input tufte
    %\stophangaround

    \placefigure[left,none]{}{\externalfigure[cow][width=6cm]}
    %\starthangaround{\externalfigure[cow]}
      \input knuth
    %\stophangaround

    \page

    \startC
      \NC TTT \NC UUU \NC\NR
      \NC ttt \NC uuu \NC\NR
    \stopC

    \placefigure[left,none]{}{\externalfigure[cow][width=6cm]}
    %\starthangaround{\externalfigure[cow]}

      Aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz

      \startC
        \NC TTT \NC UUU \NC\NR
        \NC ttt \NC uuu \NC\NR
      \stopC
      \input tufte
    %\stophangaround

    \page

    \placefigure[left,none]{}{\externalfigure[cow][width=6cm]}
    %\starthangaround{\externalfigure[cow]}

      \subsubject{Ccc}

      Aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz

      \startC
        \NC TTT \NC UUU \NC\NR
        \NC ttt \NC uuu \NC\NR
        \NC     \NC VVV \NC\NR % The fisrt column is not used here - picture's not overwritten
        \NC     \NC vvv \NC\NR % Dtto
      \stopC
      \input tufte
    %\stophangaround
\stoptext

[-- Attachment #3: t-Hang.pdf --]
[-- Type: application/pdf, Size: 19700 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 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
___________________________________________________________________________________

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

* Re: Problems with (features of?) hangaround text (case study 2)
  2011-02-15  7:24   ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-02-15  7:53     ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 0 replies; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-02-15  7:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]

Hello,

still some problems inserting a "tabulate" next to the picture (to be flowed around) - see the case study:

- Case 1:

There is some (unwanted) space bellow the picture which is not occupied by the surrounding text. It seems the height of "tabulate" is added bellow the picture and creates some "restricted" area.

- Case 2:

When all cells in the first column in the "tabulate" are empty ("\NC \NC"), the first column is somehow "ignored" (?!).

- Case 3:

There must be a space (some horizontal material?) at least in one cell of the first column to avoid ignoring the first column.

So - is it restricted to use "tabulate" next to a picture to be flowed around?

- I used "tabulate" to align some text horizontally. In the case attached, I'd like the rightmost column to have 2 inches in width and to be left-aligned. And I'd need to keep this disposition also in the flow around area next to the picture. Is there another way to achieve this, if this were not possible to use "tabulate"?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t-Hang2.mkiv --]
[-- Type: application/octet-stream, Size: 799 bytes --]

\definetabulate[B][|p|lw(2in)|]

\starttext
  \startB
    \NC TTT \NC UUU \NC\NR
    \NC ttt \NC uuu \NC\NR
  \stopB

  \subject{Case1 1}
    \placefigure[left,none]{}{\externalfigure[cow][width=6cm]}
      \startB
        \NC TTT \NC UUU \NC\NR
        \NC ttt \NC uuu \NC\NR
        \NC     \NC VVV \NC\NR
        \NC     \NC vvv \NC\NR
      \stopB
      \input tufte

  \subject{Case1 2}
    \placefigure[left,none]{}{\externalfigure[cow][width=6cm]}
      \startB
        \NC     \NC VVV \NC\NR
        \NC     \NC vvv \NC\NR
      \stopB
      \input tufte

  \subject{Case1 3}
    \placefigure[left,none]{}{\externalfigure[cow][width=6cm]}
      \startB
        \NC \   \NC VVV \NC\NR
        \NC     \NC vvv \NC\NR
      \stopB
      \input tufte
\stoptext

[-- Attachment #3: t-Hang2.pdf --]
[-- Type: application/pdf, Size: 16412 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 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
___________________________________________________________________________________

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

end of thread, other threads:[~2011-02-15  7:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 20:30 Problems with (features of?) hangaround text Procházka Lukáš
2011-02-14 23:09 ` Aditya Mahajan
2011-02-15  7:24   ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-02-15  7:53     ` Problems with (features of?) hangaround text (case study 2) Procházka Lukáš Ing. - Pontex s. r. o.

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