ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page layout : Need help to begin
@ 2009-01-29 18:32 Antoine Cailliau
  2009-01-29 20:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Antoine Cailliau @ 2009-01-29 18:32 UTC (permalink / raw)
  To: ntg-context

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

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.

[-- Attachment #2: layout.pdf --]
[-- Type: application/pdf, Size: 29401 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Page layout : Need help to begin
  2009-01-29 18:32 Page layout : Need help to begin Antoine Cailliau
@ 2009-01-29 20:03 ` Wolfgang Schuster
  2009-01-29 20:22   ` Antoine Cailliau
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-29 20:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Page layout : Need help to begin
  2009-01-29 20:03 ` Wolfgang Schuster
@ 2009-01-29 20:22   ` Antoine Cailliau
  2009-01-29 21:21     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Antoine Cailliau @ 2009-01-29 20:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Thanks for quick answer.
> do you have also questions on beginners level or has
> everything to be on expert level.
I use latex for 5 years daily and I would like to have something
cleaner that what I've now. During thoose years I also approaches
"advanced" stuff like package modification and TeX programming.
So, I'm not really a begin user in TeX but a begin user in context.

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

Regards,

Antoine C.
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Page layout : Need help to begin
  2009-01-29 20:22   ` Antoine Cailliau
@ 2009-01-29 21:21     ` Wolfgang Schuster
  2009-01-29 21:49       ` Antoine Cailliau
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-29 21:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Page layout : Need help to begin
  2009-01-29 21:21     ` Wolfgang Schuster
@ 2009-01-29 21:49       ` Antoine Cailliau
  2009-01-29 22:30         ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Antoine Cailliau @ 2009-01-29 21:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Page layout : Need help to begin
  2009-01-29 21:49       ` Antoine Cailliau
@ 2009-01-29 22:30         ` Wolfgang Schuster
  2009-01-30  7:09           ` Antoine Cailliau
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-29 22:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Page layout : Need help to begin
  2009-01-29 22:30         ` Wolfgang Schuster
@ 2009-01-30  7:09           ` Antoine Cailliau
  2009-01-30  9:36             ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Antoine Cailliau @ 2009-01-30  7:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

> You can also place backgrounds only on left/right pages.
Ok, I'll investigate that. Is it also with overlay?

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

> 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.
I like this idea. I'll read more about macros and buffers to be able to
achieve this.

Thank you a lot for your help, comments and tips.

Antoine C.
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Page layout : Need help to begin
  2009-01-30  7:09           ` Antoine Cailliau
@ 2009-01-30  9:36             ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-30  9:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jan 30, 2009 at 8:09 AM, Antoine Cailliau
<antoinecailliau@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
___________________________________________________________________________________


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

end of thread, other threads:[~2009-01-30  9:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-29 18:32 Page layout : Need help to begin Antoine Cailliau
2009-01-29 20:03 ` Wolfgang Schuster
2009-01-29 20:22   ` Antoine Cailliau
2009-01-29 21:21     ` Wolfgang Schuster
2009-01-29 21:49       ` Antoine Cailliau
2009-01-29 22:30         ` Wolfgang Schuster
2009-01-30  7:09           ` Antoine Cailliau
2009-01-30  9:36             ` Wolfgang Schuster

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