Re: [NTG-context] Page layout : Need help to begin

2009-01-30 Thread Wolfgang Schuster
On Fri, Jan 30, 2009 at 8:09 AM, Antoine Cailliau
antoinecaill...@gmail.com wrote:
 Hi,

 You can also place backgrounds only on left/right pages.

 Ok, I'll investigate that. Is it also with overlay?

Yes, overlays are used to put text, graphics etc. behind the text.

You can use different backgrounds for a left/right page with
\setupbackgrounds[leftpage|rightpage][..,..=..,..]

 Is the content for each topic short enough for one double page or
 is it possible the content on a left page requires more space and
 continues on the next left page?

 The content is short enought because it is for leaflets. So, only
 a front page, thoose two pages and a backpage.

In this case I would take care to spend more time in easy to use
interface with a few macros to write the content.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Page layout : Need help to begin

2009-01-29 Thread Antoine Cailliau
Hi guys,

I'm quite new to context and I'm not sure about the best way to achieve
the layout I've in mind. You may find a representation of my layout in the
attached PDF.

Can someone help me by giving some tips on how to proceed to achieve
such a result. What's the best technique? The best method?

Regards,

Antoine C.


layout.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] Page layout : Need help to begin

2009-01-29 Thread Wolfgang Schuster

Hi Antoine,

do you have also questions on beginners level or has
everything to be on expert level.

I'm quite new to context and I'm not sure about the best way to  
achieve
the layout I've in mind. You may find a representation of my layout  
in the

attached PDF.

Can someone help me by giving some tips on how to proceed to achieve
such a result. What's the best technique? The best method?


It's hard to say what't the best method in your case is
because more information are needed. The first thing that
came to my mind was to reduce the text area to a narrow
column and place the extra text and the figures and a wide
left margin.

\setuplayout
  [backspace=12.5cm,
   width=6.7cm,
   leftmargin=6.7cm,
   leftmargindistance=4cm,
   topspace=3.4cm,
   header=.5cm,
   headerdistance=2cm,
   height=19.2cm]

%\showframe

\starttext

\inmargin{\raggedright\input ward}\input knuth

\page

\placefigure
  [inleft]
  {Caption}
  {\framed[width=4cm,height=3cm]{}}

\input knuth

\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page layout : Need help to begin

2009-01-29 Thread Wolfgang Schuster


Am 29.01.2009 um 21:22 schrieb Antoine Cailliau:


It's hard to say what't the best method in your case is
because more information are needed. The first thing that
came to my mind was to reduce the text area to a narrow
column and place the extra text and the figures and a wide
left margin.



Ok, so I was not so wrong. But my main concern is about
the background that has to take the full height and half width.
In addition, if the background may be larger than the page it
would nice in case of printing (so, no margin at all)



\setupcolors[state=start]

\defineoverlay
  [graybar]
  [{\blackrule
  [color=middlegray,
   height=\dimexpr\paperheight+1cm\relax,
   width=\dimexpr\paperwidth/2+1cm]%
\hskip\dimexpr\paperwidth/2+1cm\relax}]

\setupbackgrounds[page][background=graybar]

[rest of the document]

If you want the background on chapter pages etc. it makes sense
to integrate the background in a slightly different way but more
details about the layout needed for this to find the best solution.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page layout : Need help to begin

2009-01-29 Thread Antoine Cailliau
Hi,

Thanks for your help. Your solution works but I need more fine tuning on
this background.

 If you want the background on chapter pages etc. it makes sense
 to integrate the background in a slightly different way but more
 details about the layout needed for this to find the best solution.
So, I'll explain in more details the structure of my layout.

The idea is that the pages are presented side-by-side. Visually we
have 4 columns.
- The last one (right, on the right page) is the main text.
- The third column (left, on the right page) is used for the figures (images,
graphs, diagrams, etc.)
- The second column (right, on the left page) is used to discuss some
points of the main text. Like advanced stuff, debate, historical notes, etc)
- The first one (left, on the left page) have some light gray background
and is an area for FAQ about the topic.

The title of each double page is on the right page, aligned with the
left column of the right page.

The second column (right, on the left page) may have a title defining
the topic of this column.

Regards,

Antoine
___
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
___


Re: [NTG-context] Page layout : Need help to begin

2009-01-29 Thread Wolfgang Schuster


Am 29.01.2009 um 22:49 schrieb Antoine Cailliau:

Thanks for your help. Your solution works but I need more fine  
tuning on

this background.


You can also place backgrounds only on left/right pages.


If you want the background on chapter pages etc. it makes sense
to integrate the background in a slightly different way but more
details about the layout needed for this to find the best solution.



So, I'll explain in more details the structure of my layout.

The idea is that the pages are presented side-by-side. Visually we
have 4 columns.
- The last one (right, on the right page) is the main text.
- The third column (left, on the right page) is used for the figures  
(images,

graphs, diagrams, etc.)
- The second column (right, on the left page) is used to discuss some
points of the main text. Like advanced stuff, debate, historical  
notes, etc)
- The first one (left, on the left page) have some light gray  
background

and is an area for FAQ about the topic.

The title of each double page is on the right page, aligned with the
left column of the right page.

The second column (right, on the left page) may have a title defining
the topic of this column.


Is the content for each topic short enough for one double page or
is it possible the content on a left page requires more space and
continues on the next left page?

With the layout described above it also possible to write
a environment where the content is saved and macros/buffer and
placed at the end of the environment, this has the advantage
to know how much space is needed and you're not forced to write
the input in the order they are output on the page.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___