Re: [NTG-context] Margin text in doublesided documents

2011-04-13 Thread Henning Hraban Ramm

I had a similar problem - thank you, Wolfgang!

But I need my marginals as one line, rotated in the inner margin and  
aligned to the top or bottom of the text area.

I don’t know how to achieve the latter.

\setuppapersize[A6][A6]
\setupmargindata[inmargin][style={\ss\tfx},location=inner,align=outer]
\setupmarginframed[inmargin][align=outer,location=inner]
\def\Info#1{\margindata[inmargin]{\rotate{#1}}}

\starttext

\chapter{Tufte}
\Info{This is a text by Tufte 1}
\input tufte
\Info{This is a text by Tufte 2}

\chapter{Knuth}
\Info{This is a text by Knuth 1}
\input knuth
\Info{This is a text by Knuth 2}
\input knuth

\stoptext


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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


Re: [NTG-context] Margin text in doublesided documents

2011-04-07 Thread Wolfgang Schuster

Am 04.04.2011 um 23:56 schrieb C.:

> Also, is \setupinmargindata equivalent to the old \setupinmargin? I could
> not find any documentation about it. 


I wrote a interface file for the new margindata code.

Wolfgang


typo-mar.pdf
Description: Adobe PDF document


typo-mar.tex
Description: Binary data


typo-mar.xml
Description: XML 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread C.
Aha! It's this combination that makes it work:
\setupmargindata[inmargin][location=outer,align=inner] % align=inner has no
effect here?!
\setupmarginframed[inmargin][align=inner] % but when I add this it works and
aligns to the body text

Thanks for your help, I'm all set now.

> -Ursprüngliche Nachricht-
> Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com]
> Gesendet: Dienstag, 5. April 2011 19:00
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Margin text in doublesided documents
> 
> 
> Am 05.04.2011 um 18:56 schrieb C.:
> 
> > What version(s)?
> 
> mtx-context | current version: 2011.04.03 22:32
> 
> and
> 
> mtx-context | current version: 2011.04.05 16:47
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread Wolfgang Schuster

Am 05.04.2011 um 18:56 schrieb C.:

> What version(s)?

mtx-context | current version: 2011.04.03 22:32

and

mtx-context | current version: 2011.04.05 16:47

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


Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread C.
What version(s)?

> -Ursprüngliche Nachricht-
> Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com]
> Gesendet: Dienstag, 5. April 2011 17:26
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Margin text in doublesided documents
> 
> 
> Am 05.04.2011 um 17:09 schrieb C.:
> 
> > Whoops! Sent too early, this is the updated minimal example:
> 
> Works for me, the margin text is always at the outer margin and the text
> aligned to the body text.
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread Wolfgang Schuster

Am 05.04.2011 um 17:09 schrieb C.:

> Whoops! Sent too early, this is the updated minimal example:

Works for me, the margin text is always at the outer margin
and the text aligned to the body text.

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


Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread C.
Whoops! Sent too early, this is the updated minimal example:

\setuplayout[location=doublesided]
\setuppagenumbering[location=right,alternative=doublesided]
\setupmargindata[inmargin][location=outer,align=inner] % almost correct. on
odd pages wrong alignment
% \setupmarginframed[inmargin][align=inner] % wrong side on odd pages, also
wrong alignment
\starttext
\chapter{Chapter Knuth testing}
\section{Section Knuth testing}
\input knuth \inmargin{test}\input knuth\page
\section{Section Knuth testing 2}
bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla.
\dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein
Test.\inoutermargin{this is OK}\dorecurse{5}{\input knuth}\inmargin{bla}
\stoptext


> -Ursprüngliche Nachricht-
> Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com]
> Gesendet: Dienstag, 5. April 2011 13:36
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Margin text in doublesided documents
> 
> 
> Am 05.04.2011 um 13:23 schrieb C.:
> 
> >> \setupmargindata[inmargin][location=outer,align=inner]
> >
> > Hm, tried that. The margin text did move to the outer margin, but it
> > was aligned to the paper boarder, not to the body text. (i.e. it was
> > set ragged left/flush right on an odd page)
> 
> \setupmarginframed[inmargin][align=inner]
> 
> It would really help when you provide a minimal example because it’s very
> annoying to write always one by myself.
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread C.
I will remember to include a minimal example from now on.
Here is the current:

\setuplayout[location=doublesided]
\setuppagenumbering[location=right,alternative=doublesided]
\setupmargindata[inmargin][location=outer,align=inner] % almost correct. on
odd pages wrong alignment
% \setupmarginframed[inmargin][align=inner] % wrong side on odd pages, also
wrong alignment
\starttext
\chapter{Chapter Knuth testing}
\section{Section Knuth testing}
\input knuth \inmargin{test}\input knuth\page
\section{Section Knuth testing 2}
bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla.
\dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein
Test.\dorecurse{5}{\input knuth}\inmargin{bla}
\stoptext

Note: \inoutermargin on page 3 behaves correctly, though it seems to have a
different default style (why bold, anyway?).
As for now, I'm using \inoutermargin .


> -Ursprüngliche Nachricht-
> Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com]
> Gesendet: Dienstag, 5. April 2011 13:36
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Margin text in doublesided documents
> 
> 
> Am 05.04.2011 um 13:23 schrieb C.:
> 
> >> \setupmargindata[inmargin][location=outer,align=inner]
> >
> > Hm, tried that. The margin text did move to the outer margin, but it
> > was aligned to the paper boarder, not to the body text. (i.e. it was
> > set ragged left/flush right on an odd page)
> 
> \setupmarginframed[inmargin][align=inner]
> 
> It would really help when you provide a minimal example because it’s very
> annoying to write always one by myself.
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread Wolfgang Schuster

Am 05.04.2011 um 13:23 schrieb C.:

>> \setupmargindata[inmargin][location=outer,align=inner]
> 
> Hm, tried that. The margin text did move to the outer margin, but it was
> aligned to the paper boarder, not to the body text. (i.e. it was set ragged
> left/flush right on an odd page)

\setupmarginframed[inmargin][align=inner]

It would really help when you provide a minimal example because
it’s very annoying to write always one by myself.

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


Re: [NTG-context] Margin text in doublesided documents

2011-04-05 Thread C.
> > Hello,
> >
> > in my doublesided document \inmargin texts are always on the left side
> > of the body text.
> 
> \inmargin is configures to be always in the left margin, you can use
> \inothermargin to put the text in the opposite margin or use
\inoutermargin
> to put the text always in the outer margin or you can configure \inmargin
to
> be always in the outer margin

\inothermargin gives Undefined control sequence
\inoutermargin works great!

> \setupmargindata[inmargin][location=outer,align=inner]

Hm, tried that. The margin text did move to the outer margin, but it was
aligned to the paper boarder, not to the body text. (i.e. it was set ragged
left/flush right on an odd page)

> > Also, is \setupinmargindata equivalent to the old \setupinmargin? I
> > could not find any documentation about it.
> 
> Because the command is new and nobody documented it so far.

I see.

Thank you for your reply and have a nice day.

Christian

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


Re: [NTG-context] Margin text in doublesided documents

2011-04-04 Thread Wolfgang Schuster

Am 04.04.2011 um 23:56 schrieb C.:

> Hello,
> 
> in my doublesided document \inmargin texts are always on the left side of
> the body text.

\inmargin is configures to be always in the left margin, you can use
\inothermargin to put the text in the opposite margin or use \inoutermargin
to put the text always in the outer margin or you can configure \inmargin
to be always in the outer margin

\setupmargindata[inmargin][location=outer,align=inner]

> Also, is \setupinmargindata equivalent to the old \setupinmargin? I could
> not find any documentation about it. 

Because the command is new and nobody documented it so far.

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


[NTG-context] Margin text in doublesided documents

2011-04-04 Thread C.
Hello,

in my doublesided document \inmargin texts are always on the left side of
the body text.

\setuplayout[location=doublesided]
\setuppagenumbering[location=right,alternative=doublesided]
\setupmargindata[left][style=\tfx]
\starttext
\chapter{Chapter Knuth testing}
\section{Section Knuth testing}
\input knuth\inmargin{test}\input knuth\page
\section{Section Knuth testing 2}
bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla.
\dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein
Test.\dorecurse{5}{\input knuth}\inmargin{bla}
\stoptext

Also, is \setupinmargindata equivalent to the old \setupinmargin? I could
not find any documentation about it. 

This is LuaTeX, Version beta-0.66.0-2011033109 (rev 4094)
ConTeXt  ver: 2011.03.30 11:21 MKIV  fmt: 2011.4.2  int: english/english

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