ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Questions related to margin/dynamic layout
@ 2011-08-27  3:40 Yue Wang
  2011-08-28 14:25 ` Yue Wang
  2011-08-29 16:41 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Yue Wang @ 2011-08-27  3:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans Hagen, luigi scarso,
	Wolfgang Schuster, Wolfgang

Hi,

I have two questions related to margin:

- is it possible to move footnotes to margin?
- similar question: I want to have a list in the margin with all the
indexes in the given page.

How to make these possible?

Third question is related to layout.

I know how to change page layout for a particular page. but how to
change layout for a page whose number is unknown?

for example, I am writing a book that has several large pictures
(imagine a portfolio, or a book introducing photography).

in order to fit the pictures I plan to set each pictures as page
background or layers, that spans 3/2 pages, while leaving the
remaining span (1/2 page) for text.

however, I don't know which page number the picture should be reside,
but I know it should be put near some given text content.

it's not possible to manually give the page number according to the
content because usually document context/formatting change all the
time.

how to do that?



Thanks.
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Questions related to margin/dynamic layout
  2011-08-27  3:40 Questions related to margin/dynamic layout Yue Wang
@ 2011-08-28 14:25 ` Yue Wang
  2011-08-29 16:41 ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Yue Wang @ 2011-08-28 14:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans Hagen, luigi scarso,
	Wolfgang Schuster, Wolfgang

Hi,


anyone can give me a hint?

Yue Wang

On Fri, Aug 26, 2011 at 11:40 PM, Yue Wang <yuleopen@gmail.com> wrote:
> Hi,
>
> I have two questions related to margin:
>
> - is it possible to move footnotes to margin?
> - similar question: I want to have a list in the margin with all the
> indexes in the given page.
>
> How to make these possible?
>
> Third question is related to layout.
>
> I know how to change page layout for a particular page. but how to
> change layout for a page whose number is unknown?
>
> for example, I am writing a book that has several large pictures
> (imagine a portfolio, or a book introducing photography).
>
> in order to fit the pictures I plan to set each pictures as page
> background or layers, that spans 3/2 pages, while leaving the
> remaining span (1/2 page) for text.
>
> however, I don't know which page number the picture should be reside,
> but I know it should be put near some given text content.
>
> it's not possible to manually give the page number according to the
> content because usually document context/formatting change all the
> time.
>
> how to do that?
>
>
>
> Thanks.
>
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Questions related to margin/dynamic layout
  2011-08-27  3:40 Questions related to margin/dynamic layout Yue Wang
  2011-08-28 14:25 ` Yue Wang
@ 2011-08-29 16:41 ` Wolfgang Schuster
  2011-08-29 17:00   ` Yue Wang
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-08-29 16:41 UTC (permalink / raw)
  To: Yue Wang; +Cc: mailing list for ConTeXt users


Am 27.08.2011 um 05:40 schrieb Yue Wang:

> Hi,
> 
> I have two questions related to margin:
> 
> - is it possible to move footnotes to margin?

\setupnote          [footnote][location=none]
\setupnotedefinition[footnote][location=serried,width=broad]

\setuptexttexts
 [margin]
 []
 [{\framed[align=right,frame=off,height=\textheight,width=\rightmarginwidth]{\placenotes[footnote]}}]

\starttext
\dorecurse{20}{\input knuth\reference[foo:#1]{#1}\footnote{Knuth #1}}
\stoptext

> - similar question: I want to have a list in the margin with all the
> indexes in the given page.
> 
> How to make these possible?
> 
> Third question is related to layout.
> 
> I know how to change page layout for a particular page. but how to
> change layout for a page whose number is unknown?
> 
> for example, I am writing a book that has several large pictures
> (imagine a portfolio, or a book introducing photography).
> 
> in order to fit the pictures I plan to set each pictures as page
> background or layers, that spans 3/2 pages, while leaving the
> remaining span (1/2 page) for text.
> 
> however, I don't know which page number the picture should be reside,
> but I know it should be put near some given text content.
> 
> it's not possible to manually give the page number according to the
> content because usually document context/formatting change all the
> time.
> 
> how to do that?

You can fix a float to a certain position with \placeFLOAT[force]{…}{…}.

TO shorten/enlarge a page you can put \adaptlayout in your document
and context change the layout of the page where the command is seen.

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
___________________________________________________________________________________


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

* Re: Questions related to margin/dynamic layout
  2011-08-29 16:41 ` Wolfgang Schuster
@ 2011-08-29 17:00   ` Yue Wang
  2011-08-29 17:45     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Yue Wang @ 2011-08-29 17:00 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

Many thanks! Wolfgang!

it seems that this is a mkiv only command.

what about the second and third question?

On Mon, Aug 29, 2011 at 12:41 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 27.08.2011 um 05:40 schrieb Yue Wang:
>
>> Hi,
>>
>> I have two questions related to margin:
>>
>> - is it possible to move footnotes to margin?
>
> \setupnote          [footnote][location=none]
> \setupnotedefinition[footnote][location=serried,width=broad]
>
> \setuptexttexts
>  [margin]
>  []
>  [{\framed[align=right,frame=off,height=\textheight,width=\rightmarginwidth]{\placenotes[footnote]}}]
>
> \starttext
> \dorecurse{20}{\input knuth\reference[foo:#1]{#1}\footnote{Knuth #1}}
> \stoptext
>
>> - similar question: I want to have a list in the margin with all the
>> indexes in the given page.
>>
>> How to make these possible?
>>
>> Third question is related to layout.
>>
>> I know how to change page layout for a particular page. but how to
>> change layout for a page whose number is unknown?
>>
>> for example, I am writing a book that has several large pictures
>> (imagine a portfolio, or a book introducing photography).
>>
>> in order to fit the pictures I plan to set each pictures as page
>> background or layers, that spans 3/2 pages, while leaving the
>> remaining span (1/2 page) for text.
>>
>> however, I don't know which page number the picture should be reside,
>> but I know it should be put near some given text content.
>>
>> it's not possible to manually give the page number according to the
>> content because usually document context/formatting change all the
>> time.
>>
>> how to do that?
>
> You can fix a float to a certain position with \placeFLOAT[force]{…}{…}.
>
> TO shorten/enlarge a page you can put \adaptlayout in your document
> and context change the layout of the page where the command is seen.
>
> 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
___________________________________________________________________________________


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

* Re: Questions related to margin/dynamic layout
  2011-08-29 17:00   ` Yue Wang
@ 2011-08-29 17:45     ` Wolfgang Schuster
  2011-08-30  0:32       ` Yue Wang
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-08-29 17:45 UTC (permalink / raw)
  To: Yue Wang; +Cc: mailing list for ConTeXt users


Am 29.08.2011 um 19:00 schrieb Yue Wang:

> Many thanks! Wolfgang!
> 
> it seems that this is a mkiv only command.

No, all commands are also available with mkii but the note mechanism has some limitations.

> what about the second and third question?

Dunno about the second question, maybe there is a tracker option you can use.

For the third a few more infos can be useful. When you want to keep the picture and the text together you can try to place the text for the picture with layers too, there are examples for this in the “details” and the “style” manuals.

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
___________________________________________________________________________________


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

* Re: Questions related to margin/dynamic layout
  2011-08-29 17:45     ` Wolfgang Schuster
@ 2011-08-30  0:32       ` Yue Wang
  0 siblings, 0 replies; 6+ messages in thread
From: Yue Wang @ 2011-08-30  0:32 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On Mon, Aug 29, 2011 at 1:45 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 29.08.2011 um 19:00 schrieb Yue Wang:
>
>> Many thanks! Wolfgang!
>>
>> it seems that this is a mkiv only command.
>
> No, all commands are also available with mkii but the note mechanism has some limitations.
>
>> what about the second and third question?
>
> Dunno about the second question, maybe there is a tracker option you can use.
>
> For the third a few more infos can be useful. When you want to keep the picture and the text together you can try to place the text for the picture with layers too, there are examples for this in the “details” and the “style” manuals.
>

the text main text (just normal text in between the start text and
stop text). so "details" and "style" might not suffice.

Since if I put it within a layer, the text will not flow correctly.

for example:

\starttext

(a lot of paragraphs)

surrounding paragraphs

\some_command_to_include_the_picture

surrounding paragraphs

(a lot of paragraphs)

\stoptext

here, the paragraphs should run as normal paragraphs, with these requirement:

1. the paragraphs runs continuously
2. when the picture occurs, the layout of that span changes
3. the paragraphs still runs without (page) breaks through surrounding
pages including the picture span page.
4. the surrounding paragraphs before and after, should appear near the picture.


take an example:

\starttext
paragraphs A-P
\include picture
paragraph Q-Z
\stoptext

the final result should be:

page1: para A,B,C
page2: para D,E
....
page 13: para M, N
page 14: 2/3 picture
page 15: 1/3 picture + text flow (para O,P,Q)
page 16: paraR, S,
....

when the user include the picture, he will have no idea where the
picture might appear.
So is there a way to automatically change the page layout at a
specific page (at this example, page 14,15).





> 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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-08-30  0:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-27  3:40 Questions related to margin/dynamic layout Yue Wang
2011-08-28 14:25 ` Yue Wang
2011-08-29 16:41 ` Wolfgang Schuster
2011-08-29 17:00   ` Yue Wang
2011-08-29 17:45     ` Wolfgang Schuster
2011-08-30  0:32       ` Yue Wang

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