ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Marginal notes in two-column setup
@ 2003-07-18 10:07 Gerben Wierda
  2003-07-20 11:12 ` Willi Egger
  0 siblings, 1 reply; 7+ messages in thread
From: Gerben Wierda @ 2003-07-18 10:07 UTC (permalink / raw)


Sorry for another newbie question (I am trying to learn ConTeXt and 
cannot always find what I want in the manual which I have permanently 
open)

I would like to do the following:

Have a two column text with the marginal notes from the left column 
appear on the left and the ones from the right column on the right. 
When I use 2-columns and I use \inmargin, I get them on the right where 
the marginal notes from the left column are on top of the right column 
(not good)

Is there a way to do this? Probably yes with something \if-like?

G

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

* Re: Marginal notes in two-column setup
  2003-07-18 10:07 Marginal notes in two-column setup Gerben Wierda
@ 2003-07-20 11:12 ` Willi Egger
  2003-07-20 19:55   ` Gerben Wierda
  0 siblings, 1 reply; 7+ messages in thread
From: Willi Egger @ 2003-07-20 11:12 UTC (permalink / raw)


Hi Gerben,
>
> Have a two column text with the marginal notes from the left column
> appear on the left and the ones from the right column on the right.
> When I use 2-columns and I use \inmargin, I get them on the right where
> the marginal notes from the left column are on top of the right column
> (not good)
>
> Is there a way to do this? Probably yes with something \if-like?

After sttudying the sources and a bunch of trial and errors I can come up
with the following solution which works for a two solumns set!

\definecolumnset[example][n=2]

\define[1]\MargText{%
    \ifodd\mofcolumns{%
      \inleft{#1}}
    \else
      {\inright{#1}}\fi}

\starttext
\startcolumnset[example]

\MargText{Here left of column}

\input tufte

\column[local]

\input tufte

\MargText{\ifodd\mofcolumns{Hello!, still left of column}\else {Hello, now
right of column}\fi}

\stopcolumnset
\stoptext

I believe that Hans will make a generic solution...

Kind regards Willi

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

* Re: Marginal notes in two-column setup
  2003-07-20 11:12 ` Willi Egger
@ 2003-07-20 19:55   ` Gerben Wierda
  2003-07-21  7:17     ` Willi Egger
  0 siblings, 1 reply; 7+ messages in thread
From: Gerben Wierda @ 2003-07-20 19:55 UTC (permalink / raw)


> After sttudying the sources and a bunch of trial and errors I can come 
> up
> with the following solution which works for a two solumns set!

Great. This works. Now for something different. While learning ConTeXt, 
I find that often the syntax escapes me. Take for instance:

> \definecolumnset[example][n=2]
>
> \define[1]\MargText{%
>     \ifodd\mofcolumns{%
>       \inleft{#1}}
>     \else
>       {\inright{#1}}\fi}
>
> \starttext
> \startcolumnset[example]
>
> \MargText{Here left of column}
>
> \input tufte
>
> \column[local]

What does [local] mean here? According the the manual one should say 
\column and I can't find the explanation of what local means or what 
you are doing here.

> \input tufte
>
> \MargText{\ifodd\mofcolumns{Hello!, still left of column}\else {Hello, 
> now
> right of column}\fi}
>
> \stopcolumnset
> \stoptext
>
> I believe that Hans will make a generic solution...



G
--
"To be or not to be, that is the question" -- Parmenides

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

* Re: Marginal notes in two-column setup
  2003-07-20 19:55   ` Gerben Wierda
@ 2003-07-21  7:17     ` Willi Egger
  2003-07-21 20:34       ` Gerben Wierda
  0 siblings, 1 reply; 7+ messages in thread
From: Willi Egger @ 2003-07-21  7:17 UTC (permalink / raw)



> > After sttudying the sources and a bunch of trial and errors I can come
> > up
> > with the following solution which works for a two solumns set!
>
> Great. This works. Now for something different. While learning ConTeXt,
> I find that often the syntax escapes me. Take for instance:

>
> > \definecolumnset[example][n=2]
> >
> > \define[1]\MargText{%
> >     \ifodd\mofcolumns{%
> >       \inleft{#1}}
> >     \else
> >       {\inright{#1}}\fi}
> >
> > \starttext
> > \startcolumnset[example]
> >
> > \MargText{Here left of column}
> >
> > \input tufte
> >
> > \column[local]
>
> What does [local] mean here? According the the manual one should say
> \column and I can't find the explanation of what local means or what
> you are doing here.

The example definition of a columnset presented above is copied from the
manual "Columns". - Often commands take optional arguments. Porbably this
would also work without the [local].

Willi

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

* Re: Marginal notes in two-column setup
  2003-07-21  7:17     ` Willi Egger
@ 2003-07-21 20:34       ` Gerben Wierda
       [not found]         ` <008501c3504c$d599aa20$0100a8c0@vademecum>
  0 siblings, 1 reply; 7+ messages in thread
From: Gerben Wierda @ 2003-07-21 20:34 UTC (permalink / raw)


On Monday, Jul 21, 2003, at 09:17 Europe/Amsterdam, Willi Egger wrote:

> The example definition of a columnset presented above is copied from 
> the
> manual "Columns".

I mirrored Hans' site with wget but the colums manual is missing. Where 
can I find it?

G
--
"To be or not to be, that is the question" -- Parmenides

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

* RE: Marginal notes in two-column setup
       [not found]         ` <008501c3504c$d599aa20$0100a8c0@vademecum>
@ 2003-07-24  6:36           ` Héctor M. Monacci
  2003-07-24 17:34           ` Johannes Hüsing
  1 sibling, 0 replies; 7+ messages in thread
From: Héctor M. Monacci @ 2003-07-24  6:36 UTC (permalink / raw)


It was excesive for me!

Héctor

> -----Mensaje original-----
> De: Willi Egger [mailto:w.egger@boede.nl]
> Enviado el: martes 22 de julio de 2003 14:28
> Para: ntg-context@ntg.nl
> Asunto: Re: [NTG-context] Marginal notes in
> two-column setup
>
>
> Hi Gerben,
>
> Hm, was looking for the file at the pragma site.
> -- May be it was a
> preliminar release, which was then placed in a
> temporary directrory.
>
> I hop you will not find it excessive the file is 2.5MByte
>
> regards Willi
>

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

* Re: Marginal notes in two-column setup
       [not found]         ` <008501c3504c$d599aa20$0100a8c0@vademecum>
  2003-07-24  6:36           ` Héctor M. Monacci
@ 2003-07-24 17:34           ` Johannes Hüsing
  1 sibling, 0 replies; 7+ messages in thread
From: Johannes Hüsing @ 2003-07-24 17:34 UTC (permalink / raw)


Willi Egger <w.egger@boede.nl> [Tue, Jul 22, 2003 at 02:27:58PM CEST]:
> Hi Gerben,
> 
> Hm, was looking for the file at the pragma site. -- May be it was a
> preliminar release, which was then placed in a temporary directrory.
> 
> I hop you will not find it excessive the file is 2.5MByte
> 

One example why reply-to list by default is considered harmful.

http://www.unicom.com/pw/reply-to-harmful.html

-- 
Johannes Hüsing   There is something fascinating about science. One gets
hannes@ruhrau.de  such wholesale returns of conjecture from such a 
                  trifling investment of fact.                Mark Twain

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

end of thread, other threads:[~2003-07-24 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-18 10:07 Marginal notes in two-column setup Gerben Wierda
2003-07-20 11:12 ` Willi Egger
2003-07-20 19:55   ` Gerben Wierda
2003-07-21  7:17     ` Willi Egger
2003-07-21 20:34       ` Gerben Wierda
     [not found]         ` <008501c3504c$d599aa20$0100a8c0@vademecum>
2003-07-24  6:36           ` Héctor M. Monacci
2003-07-24 17:34           ` Johannes Hüsing

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