Re: [NTG-context] Questions related to margin/dynamic layout

2011-08-29 Thread Wolfgang Schuster

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
___


Re: [NTG-context] Questions related to margin/dynamic layout

2011-08-29 Thread Yue Wang
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.wolfg...@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
___


Re: [NTG-context] Questions related to margin/dynamic layout

2011-08-29 Thread Wolfgang Schuster

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
___


Re: [NTG-context] Questions related to margin/dynamic layout

2011-08-29 Thread Yue Wang
On Mon, Aug 29, 2011 at 1:45 PM, Wolfgang Schuster
schuster.wolfg...@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
___


Re: [NTG-context] Questions related to margin/dynamic layout

2011-08-28 Thread Yue Wang
Hi,


anyone can give me a hint?

Yue Wang

On Fri, Aug 26, 2011 at 11:40 PM, Yue Wang yuleo...@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
___


[NTG-context] Questions related to margin/dynamic layout

2011-08-26 Thread Yue Wang
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
___