ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Margin text and multiple columns
@ 2012-08-23 15:10 Marc Rummel
  0 siblings, 0 replies; 3+ messages in thread
From: Marc Rummel @ 2012-08-23 15:10 UTC (permalink / raw)
  To: ntg-context

Hello,

I have a problem with margin texts in combination with multiple columns using mkiv. I want to set a text in the outer margin of a double sided document. This works well using \inouter as seen in the following document:

---
\setuppagenumbering[alternative=doublesided]

\starttext

\inouter{Text in Margin}
\input knuth

\page[yes]

\inouter{Text in Margin}
\input knuth

\stoptext
---

But fails, when I use it in combination with multiple columns. Then the margin text of the odd pages is set in the second column (probably in the margin of the first column) instead of the margin of the whole page.

---
\setuppagenumbering[alternative=doublesided]

\starttext

\inouter{Text in Margin}
\startcolumns
\input knuth
\stopcolumns

\page[yes]

\inouter{Text in Margin}
\startcolumns
\input knuth
\stopcolumns

\stoptext
---

I hope someone can help me.

Best wishes,
Marc
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Margin text and multiple columns
  2012-08-30 10:25 Marc Rummel
@ 2012-08-31 16:46 ` Sietse Brouwer
  0 siblings, 0 replies; 3+ messages in thread
From: Sietse Brouwer @ 2012-08-31 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Marcel,

As far as I know, margins end up directly next to columns: multiple
columns do not share one margin at the edge of the page. This answer
on tex.stackexchange.com comes tot the same conclusion:
http://tex.stackexchange.com/questions/67078/text-in-outer-margin-of-multiple-columns

If margins are indeed per-column instead of per-page, that should be
reflected in the code determining where to set margin text.
In [`typo-mar.lua`](http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/typo-mar.lua),
line 434 (in the `realign`) function suggests the margintext's box is
moved by hsize:

                if location == v_left then
                    move_x = (reference.x or 0) - (blob.x or 0)
                elseif location == v_right then
                    move_x = (reference.x or 0) - (blob.x or 0) +
(reference.w or 0) - hsize
                else

The `hsize` is as wide as the column one is currently in, and the
variable `columns` is defined once and used never in the file. So that
indeed suggests columns are not taken into account.

Hans will know for sure, though.

Cheers,
Sietse

On Thu, Aug 30, 2012 at 12:25 PM, Marc Rummel
<marc.rummel@googlemail.com> wrote:
> Hello,
>
> I have a problem with margin texts in combination with multiple columns using mkiv. I want to set a text in the outer margin of a double sided document. This works well using \inouter as seen in the following document:
>
> ---
> \setuppagenumbering[alternative=doublesided]
>
> \starttext
>
> \inouter{Text in Margin}
> \input knuth
>
> \page[yes]
>
> \inouter{Text in Margin}
> \input knuth
>
> \stoptext
> ---
>
> But fails, when I use it in combination with multiple columns. Then the margin text of the odd pages is set in the second column (probably in the margin of the first column) instead of the margin of the whole page.
>
> ---
> \setuppagenumbering[alternative=doublesided]
>
> \starttext
>
> \inouter{Text in Margin}
> \startcolumns
> \input knuth
> \stopcolumns
>
> \page[yes]
>
> \inouter{Text in Margin}
> \startcolumns
> \input knuth
> \stopcolumns
>
> \stoptext
> ---
>
> I hope someone can help me.
>
> Best wishes,
> Marc
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 3+ messages in thread

* Margin text and multiple columns
@ 2012-08-30 10:25 Marc Rummel
  2012-08-31 16:46 ` Sietse Brouwer
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Rummel @ 2012-08-30 10:25 UTC (permalink / raw)
  To: ntg-context

Hello,

I have a problem with margin texts in combination with multiple columns using mkiv. I want to set a text in the outer margin of a double sided document. This works well using \inouter as seen in the following document:

---
\setuppagenumbering[alternative=doublesided]

\starttext

\inouter{Text in Margin}
\input knuth

\page[yes]

\inouter{Text in Margin}
\input knuth

\stoptext
---

But fails, when I use it in combination with multiple columns. Then the margin text of the odd pages is set in the second column (probably in the margin of the first column) instead of the margin of the whole page.

---
\setuppagenumbering[alternative=doublesided]

\starttext

\inouter{Text in Margin}
\startcolumns
\input knuth
\stopcolumns

\page[yes]

\inouter{Text in Margin}
\startcolumns
\input knuth
\stopcolumns

\stoptext
---

I hope someone can help me.

Best wishes,
Marc
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2012-08-31 16:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-23 15:10 Margin text and multiple columns Marc Rummel
2012-08-30 10:25 Marc Rummel
2012-08-31 16:46 ` Sietse Brouwer

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