ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Margin text
@ 2002-07-22 15:25 Bill McClain
  2002-07-22 16:32 ` John Culleton
  2002-07-22 17:13 ` Hans Hagen
  0 siblings, 2 replies; 12+ messages in thread
From: Bill McClain @ 2002-07-22 15:25 UTC (permalink / raw)


Hello! Using ConTeXt ver: 2002.7.12.

I am doing my first project which requires margin texts. This is for a
printed book. I see in the manual two ways of using margin texts:
Chapters 4.8 and 12.6. 

I define the layout:

\setuplayout[backspace=0.9375in, width=3.25in,
    rightmargindistance=.25in, rightmargin=1.25in]

My understanding: "width" is for the body text,
"[right|left]margindistance" is the space between the body text and the
margin, and "[right|left]margin" is the width of the margin area into
which I want to place the margin texts. This all seems to work with both
methods.

(1) Chapter 4.8. Using:

\setupinmargin[
    style={\tfxx\setupindenting[none]\setupinterlinespace[line=2.7ex]},
    align=right]

\inmargin{...} works as expected, but \margintext{...} always aligns
the note with the start of the next paragraph, even when there is room
on the current page.

(2) Chapter 12.6. Using

\setupmarginblocks[
    style={\tfxx\setupindenting[none]\setupinterlinespace[line=2.7ex]},
    align=right]

(a) With \startmarginblock...\stopmarginblock, the note is vertically
aligned with the top of the body text. A second note will be spaced
just below the first, which would be fine if the first one were
aligned correctly.

(b) None of my \setupinterlinespace values seem to have effect. Line
spacing appears to be that of the body text.

(3) Presuming I could get the Chapter 12.6 method working, is either
method prefered over the other?

-Bill

-- 
Sattre Press                                      Pagan Papers
http://sattre-press.com/                    by Kenneth Grahame
info@sattre-press.com              http://pp.sattre-press.com/ 


^ permalink raw reply	[flat|nested] 12+ messages in thread
* margin text
@ 2010-03-25 10:33 Robert Blackstone
  2010-03-25 10:40 ` luigi scarso
  2010-03-25 10:51 ` Taco Hoekwater
  0 siblings, 2 replies; 12+ messages in thread
From: Robert Blackstone @ 2010-03-25 10:33 UTC (permalink / raw)
  To: ntg-context

Hi all,

This is a reaction to a post in another thread, setupinmargin failing,
but it does not seem to directly concern the problem raised there (by
Hans van der Meer). So I raise it as a new problem.

I tried the code supplied by Luigi Scarso in ntg-context Digest, Vol
69, Issue 127, Message 1:

\showframe
\setuppapersize[A4][A3]
\setuplayout[location=middle]
\setupinmargin[left][align=left,foregroundcolor=red]
\setupinmargin[right][align=right,foregroundcolor=blue]
\starttext
ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1 }}
%% override blue, but not for frame
\inleft{\tfx A small note in this margin. But we need to setup
something before \ldots }
\stoptext

A few things in the result surprise, and worry, me:
1,  the actual text page does not coincide with (what I assume is) the
reserved space on the A3-folio  (that is, it partially falls outside
the area with the green border).  Thus in particular the left margin
with its margin text falls partly outside this area (which is also
clear when one uses \setuppapersize[A4][A4] in the preamble. ) The
margin itself is, of course, wide enough to contain the margin note.
Why is this and how can it be avoided?
In fact this usually happens to me: the margins partly fall outside
the page. Very annoying.
2,  \setupinmargin[left][align=left,.. ] actually right-aligns the
left margin note and vice versa. To left-align it I had to give
\setupinmargin[right].
Seems odd to me.
Is this normal?

Since I frequently have to use margin texts I hope somebody can help me out.

Best regards,
Robert Blackstone
___________________________________________________________________________________
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] 12+ messages in thread
* Re: margin text
@ 2010-03-25 12:00 Robert Blackstone
  2010-03-25 12:26 ` luigi scarso
  2010-03-26  8:56 ` Robert Blackstone
  0 siblings, 2 replies; 12+ messages in thread
From: Robert Blackstone @ 2010-03-25 12:00 UTC (permalink / raw)
  To: ntg-context

On Thu, Mar 25, 2010 at 12:00 PM,
<luigi.scarso@gmail.com> wrote:

(>> Is this normal?)
> ....yes .
> I have  these line
> \setuppapersize[A4][A3]
> \setuplayout[location=middle]
> right to show that default layout --- and it's the default layout from
> 10years at least ---
> perhaps is  not adeguate to your needs; you need to setup* something.
>
> align (and ragged align) have always confused me, and  I suspect that
> here aligns are corrects.
>
>
>
> --
> luigi

and  <taco@elvenkind.com> wrote:
(>> Is this normal?)

> Yes, it is even a FAQ item. See here for why:
>
>   http://wiki.contextgarden.net/Right_and_left
>
> In short: use flushleft or flushright. This gives the opposite behavior
> of left and right, and avoids ambiguity.
>
> Best wishes,
> Taco

Thank you, Luigi and Taco, for your almost instantaneous replies.

The answer to the left-right question, the recommended use of
flushright and flushleft,  is clear now.
But the eccentricity of what apparently is the default layout is still
a problem for me.
What should I do to get the page in the middle of the paper so to
speak, instead of shifted to the left, which happens with
\setuplayout[location=middle]?? I tried specifying leftedgewidth but
that does not change anything.

Thanks in advance for any help.
Best regards,

Robert Blackstone
___________________________________________________________________________________
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] 12+ messages in thread
* Re: margin text
@ 2010-03-26 17:55 Robert Blackstone
  0 siblings, 0 replies; 12+ messages in thread
From: Robert Blackstone @ 2010-03-26 17:55 UTC (permalink / raw)
  To: ntg-context

On Fri, Mar 26, 2010 at 12:00 PM,   luigi scarso <luigi.scarso@gmail.com> wrote:

> for expected behavior must be
> backspace >= margin + margindistance
> Try
> backspace=23mm,margin=21mm,margindistance=2mm,
> backspace=23mm,margin=23mm,margindistance=0mm,
> backspace=23mm,margin=18mm,margindistance=0mm,
> backspace=23mm,margin=2mm,margindistance=21mm,

> luigi

and  Alain Delmotte <esperanto@swing.be> wrote:

> When I tested some of the page layout possibilities I did read in * that
> the margin and the text are *not* at the same level, so the margins can
> be *under* the text.
> This also means that changing the margin will not affect the text width,
> and so on.
>
> Alain

Thank you Luigi and Alain,
This helped. This matter is clear to me now.

Best regards,
Robert Blackstone
___________________________________________________________________________________
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] 12+ messages in thread

end of thread, other threads:[~2010-03-26 17:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-22 15:25 Margin text Bill McClain
2002-07-22 16:32 ` John Culleton
2002-07-22 17:13 ` Hans Hagen
2010-03-25 10:33 margin text Robert Blackstone
2010-03-25 10:40 ` luigi scarso
2010-03-25 10:51 ` Taco Hoekwater
2010-03-25 12:00 Robert Blackstone
2010-03-25 12:26 ` luigi scarso
2010-03-26  8:56 ` Robert Blackstone
2010-03-26  9:04   ` luigi scarso
2010-03-26  9:23   ` Alain Delmotte
2010-03-26 17:55 Robert Blackstone

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