Re: [NTG-context] stack marginals: text and figures

2012-05-22 Thread Andy Thomas
  I made a small example to show the behavior: 
  
  […] 
  
  This is a sentence.\margintext{This is a note in the margin.} Another 
  sentence.\margintext{Another note.} \placefigure[margin][fig:one]{This is a 
  small figure.}{\externalfigure[test][width=100pt]} 
  \placefigure[margin][fig:two]{This is another small 
  figure.}{\externalfigure[test][width=100pt]} \stoptext 
  
  I also tried to do things such as \margintext{\placefigure...}}, but had no 
  success. 
 
 Why not? The following works here: 
 
 This is a sentence. 
 \margintext{This is a note in the margin.} 
 Another sentence. 
 \margintext{Another note.} 
 \margintext 
 {\placefigure[here][fig:one] 
 {This is a small figure.} 
 {\externalfigure[test][width=100pt]}} 
 \margintext 
 {\placefigure[here][fig:two] 
 {This is another small figure.} 
 {\externalfigure[test][width=100pt]}} 
 
 
 Marco 


\margintext{\placefigure[here]…} does indeed work. I cannot even reproduce why 
I was not able to do it, but I assume I tried 
\margintext{\placefigure[margin]…} which does not make much sense... 

  Dear ConTeXt group, 
  
  I am trying to stack text and figures in the margin. After getting some 
  help, I am able to setup the text just fine, the notes do not overlap. I am 
  also able to stack figures, they also do not overlap. But figures and text 
  does not 'know of each other'. They do overlap. 
  
  I made a small example to show the behavior: 
  
  […] 
  
  \definemargindata [margintext] 
  [ 
  location=outer, 
  width=100pt, 
  align=flushouter, 
  stack=continue, % or yes 
  ] 
 
 Use \setupmargindata to change the values of a existing command. In this 
 example it doesn’t matter but that’s not always the case. 
 
 Wolfgang 


I also changed \definemargindata to \setumargindata.

Andy___
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] Testing TeX Live 2012

2012-05-22 Thread Taco Hoekwater

On 05/21/2012 09:22 PM, Marco Pessotto wrote:

Marco Pessottomelmo...@gmail.com  writes:


Checked out, compiled and tested. And it works (of course :-).


I spoke too early.

I have at least three issues with images.


Thanks, I am on it. But I will need source files and images, if at all
possible. Backtraces are good, but now that I have my own i386 install,
it is easy enough to recreate those, it is much harder to guess at the
input.

Best wishes and thanks for testing,
Taco
___
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] Testing TeX Live 2012

2012-05-22 Thread Taco Hoekwater

On 05/22/2012 10:31 AM, Marco Pessotto wrote:

Marco Pessottomelmo...@gmail.com  writes:


I'm attaching the original file and image. Let me know if you want me
to try to bisect it until I get a minimal file (which could take a while).

The second (different) crash happens with this other (much shorter)
file. Please put it in the same directory of files from the previous
mail.




Thanks a bunch, more later.

Best wishes,
Taco
___
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] Where is the documentation of the letter module

2012-05-22 Thread Florian Wobbe
Wolfgang:

I have an old letter that typesets fine with beta 2011.11.29 23:11 but that 
fails with anything newer than that.

I get lots of Undefined control sequence and \textwidth seems to expand to 
something without a unit: Illegal unit of measure (pt inserted).

Anyway, I guess there are big changes so I'd like to go through the 
documentation again. However, [1] seems to be gone now and the pdf in [2] is 
absent too.

Cheers,
Florian

[1] texmf-context/tex/context/third/letter/base/t-correspondence.tex
[2] http://dl.contextgarden.net/modules/t-letter/doc/context/third/letter/
___
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] Interfering frames in natural tables

2012-05-22 Thread Marco
Hi,

the frames are interfering in the following example. How to avoid
the 2pt-2-column bottom rule also be drawn at the top?

\startsetups table
  \setupTABLE [frame=off]
  \setupTABLE [row] [first] [topframe=on]
  \setupTABLE [1]   [first] [bottomframe=on, rulethickness=2pt]
\stopsetups

\starttext
  \bTABLE [setups=table]
\bTR\bTD[nc=2] Lorem   \eTD\eTR
\bTR\bTD Ipsum  \eTD\bTD Dolor\eTD\bTD Sit \eTD\eTR
\bTR\bTD aa \eTD\bTD  \eTD\bTD ccc \eTD\eTR
\bTR\bTD    \eTD\bTD  \eTD\bTD f   \eTD\eTR
  \eTABLE
\stoptext


Side question: Is it safe not to use setups and shorten the example?

\starttext
  \bTABLE
\setupTABLE [frame=off]
\setupTABLE [row] [first] [topframe=on]
\setupTABLE [1]   [first] [bottomframe=on, rulethickness=2pt]

\bTR\bTD[nc=2] Lorem   \eTD\eTR
\bTR\bTD Ipsum  \eTD\bTD Dolor\eTD\bTD Sit \eTD\eTR
\bTR\bTD aa \eTD\bTD  \eTD\bTD ccc \eTD\eTR
\bTR\bTD    \eTD\bTD  \eTD\bTD f   \eTD\eTR
  \eTABLE
\stoptext


Marco


test.pdf
Description: Adobe PDF 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] Interfering frames in natural tables

2012-05-22 Thread Marco
On 2012-05-22 Marco net...@lavabit.com wrote:

 the frames are interfering in the following example. How to avoid
 the 2pt-2-column bottom rule also be drawn at the top?

Wiki ⇒ TABLES ⇒ Rules with different thickness

However, IMO it seems total overkill to use MetaPost and overlays to
draw a simple line in a table.


___
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] Interfering frames in natural tables

2012-05-22 Thread Sander Maijers
Op Tue, 22 May 2012 13:25:05 +0200
Marco net...@lavabit.com schreef:

 On 2012-05-22 Marco net...@lavabit.com wrote:
 
  the frames are interfering in the following example. How to avoid
  the 2pt-2-column bottom rule also be drawn at the top?
 
 Wiki ⇒ TABLES ⇒ Rules with different thickness
 
 However, IMO it seems total overkill to use MetaPost and overlays to
 draw a simple line in a table.

I agree! It is inconvenient.
 
 ___
 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
___

Re: [NTG-context] Interfering frames in natural tables

2012-05-22 Thread luigi scarso
On Tue, May 22, 2012 at 1:17 PM, Marco net...@lavabit.com wrote:
 Hi,

 the frames are interfering in the following example. How to avoid
 the 2pt-2-column bottom rule also be drawn at the top?

 \startsetups table
  \setupTABLE [frame=off]
  \setupTABLE [row] [first] [topframe=on]
  \setupTABLE [1]   [first] [bottomframe=on, rulethickness=2pt]
 \stopsetups

 \starttext
  \bTABLE [setups=table]
    \bTR\bTD[nc=2] Lorem                               \eTD\eTR
    \bTR\bTD Ipsum  \eTD\bTD Dolor    \eTD\bTD Sit     \eTD\eTR
    \bTR\bTD aa \eTD\bTD  \eTD\bTD ccc \eTD\eTR
    \bTR\bTD    \eTD\bTD  \eTD\bTD f   \eTD\eTR
  \eTABLE
 \stoptext



Do you mean something like this ?

\startsetups table
 \setupTABLE [frame=off]
 \setupTABLE [r][1] [bottomframe=on]
 \setupTABLE [1]   [1] [bottomframe=on, rulethickness=2pt]
 \setupTABLE [1]   [2] [bottomframe=on, rulethickness=2pt]
 \setupTABLE [c][3] [bottomframe=off]
\stopsetups

\starttext
 \bTABLE [setups=table]
  \bTR\bTD\eTD\bTD\eTD\eTR
   \bTR\bTD[nc=2] Lorem \eTD\eTR
   \bTR\bTD Ipsum  \eTD\bTD Dolor\eTD\bTD Sit \eTD\eTR
   \bTR\bTD aa \eTD\bTD  \eTD\bTD ccc \eTD\eTR
   \bTR\bTD    \eTD\bTD  \eTD\bTD f   \eTD\eTR
 \eTABLE
\stoptext

-- 
luigi
___
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] Interfering frames in natural tables

2012-05-22 Thread Marco

… and I still don't get it working. I used the example from the
wiki. The problem: The frame is drawn on *every* cell. It basically
looks like a global frame=on.

Minimal example to draw two rules in a table (44 lines, seriously?!)

\startuseMPgraphic{tableborders}
  draw leftboundary   OverlayBox withpen pensquare scaled \frameddimension  
{leftrulethickness} ;
  draw rightboundary  OverlayBox withpen pensquare scaled \frameddimension 
{rightrulethickness} ;
  draw topboundaryOverlayBox withpen pensquare scaled \frameddimension   
{toprulethickness} ;
  draw bottomboundary OverlayBox withpen pensquare scaled 
\frameddimension{bottomrulethickness} ;

  clip currentpicture to OverlayBox
leftenlarged   (\frameddimension  {leftrulethickness}/2)
rightenlarged  (\frameddimension {rightrulethickness}/2)
topenlarged(\frameddimension   {toprulethickness}/2)
bottomenlarged (\frameddimension{bottomrulethickness}/2) ;

  setbounds currentpicture to OverlayBox ;

\stopuseMPgraphic

\defineoverlay [tableborders] [\useMPgraphic{tableborders}]

\startsetups tableborders

\setupTABLE
  [ background=tableborders,
 frame=off,
  backgroundoffset=0pt,
 leftrulethickness=\framedparameter{rulethickness},
rightrulethickness=\framedparameter{rulethickness},
  toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness}]

\setupTABLE  [row] [first] [toprulethickness=1pt]
\setupTABLE  [1]   [first] [bottomrulethickness=2pt]

\stopsetups

\starttext

  \bTABLE [setups=tableborders]
\bTR\bTD[nc=2] Lorem   \eTD\eTR
\bTR\bTD Ipsum  \eTD\bTD Dolor\eTD\bTD Sit \eTD\eTR
\bTR\bTD aa \eTD\bTD  \eTD\bTD ccc \eTD\eTR
\bTR\bTD    \eTD\bTD  \eTD\bTD f   \eTD\eTR
  \eTABLE

\stoptext


Marco


tabletestmp.pdf
Description: Adobe PDF 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] Interfering frames in natural tables

2012-05-22 Thread Wolfgang Schuster

Am 22.05.2012 um 13:17 schrieb Marco:

 Hi,
 
 the frames are interfering in the following example. How to avoid
 the 2pt-2-column bottom rule also be drawn at the top?
 
 \startsetups table
  \setupTABLE [frame=off]
  \setupTABLE [row] [first] [topframe=on]
  \setupTABLE [1]   [first] [bottomframe=on, rulethickness=2pt]
 \stopsetups

\setupTABLE [row] [first] [topframe=on]
\setupTABLE [1,2] [2] [topframe=on,rulethickness=2pt]

 \starttext
  \bTABLE [setups=table]
\bTR\bTD[nc=2] Lorem   \eTD\eTR
\bTR\bTD Ipsum  \eTD\bTD Dolor\eTD\bTD Sit \eTD\eTR
\bTR\bTD aa \eTD\bTD  \eTD\bTD ccc \eTD\eTR
\bTR\bTD    \eTD\bTD  \eTD\bTD f   \eTD\eTR
  \eTABLE
 \stoptext
 
 
 Side question: Is it safe not to use setups and shorten the example?

Yes, the setups key was added only to separate the table settings from 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Interfering frames in natural tables

2012-05-22 Thread Marco
On 2012-05-22 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

   \setupTABLE [row] [first] [topframe=on]
   \setupTABLE [1]   [first] [bottomframe=on, rulethickness=2pt]
 
 \setupTABLE [row] [first] [topframe=on]
 \setupTABLE [1,2] [2] [topframe=on,rulethickness=2pt]

That's a simple and neat solution. Thanks a lot. I have the feeling
that sometimes I think much too complicated.

And I really appreciate the response time and the quick help of all
of you on this list.


Marco


___
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] Column distance in natural tables

2012-05-22 Thread Marco
Hi,

How to set the distance in a generic way between individual columns
without breaking the frame rules? A workaround is to set the roffset
of all columns, except the last one, but that's not very universal.

\startsetups table
  \setupTABLE [frame=off, topframe=on]

  % generic, but frame rules are interrupted
  \setupTABLE [columndistance=1cm]

  % works, but ugly hard coded #columns
  %\setupTABLE [column] [1,2] [roffset=1cm]
\stopsetups

\starttext
  \bTABLE [setups=table]
\bTR\bTD aa \eTD\bTD  \eTD\bTD ccc \eTD\eTR
\bTR\bTD    \eTD\bTD  \eTD\bTD f   \eTD\eTR
\bTR\bTD g  \eTD\bTD  \eTD\bTD ii  \eTD\eTR
  \eTABLE
\stoptext

Marco


___
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] Column distance in natural tables

2012-05-22 Thread Wolfgang Schuster

Am 22.05.2012 um 16:25 schrieb Marco:

 Hi,
 
 How to set the distance in a generic way between individual columns
 without breaking the frame rules? A workaround is to set the roffset
 of all columns, except the last one, but that's not very universal.
 
 \startsetups table
  \setupTABLE [frame=off, topframe=on]
 
  % generic, but frame rules are interrupted
  \setupTABLE [columndistance=1cm]
 
  % works, but ugly hard coded #columns
  %\setupTABLE [column] [1,2] [roffset=1cm]

\setupTABLE [column] [each]  [loffset=5mm,roffset=5mm]
\setupTABLE [column] [first] [loffset=0mm]
\setupTABLE [column] [last]  [roffset=0mm]

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] Column distance in natural tables

2012-05-22 Thread Marco
On 2012-05-22 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 \setupTABLE [column] [each]  [loffset=5mm,roffset=5mm]
 \setupTABLE [column] [first] [loffset=0mm]
 \setupTABLE [column] [last]  [roffset=0mm]

Thanks a lot.


Marco


___
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] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
Hello,

I am trying to change the width of a paragraph on a page. I found 
\defineparagraphs and \setupparagraphs and it almost works. But for doublesided 
documents the text on verso pages is incorrectly aligned. I tried 
[location=inner], but the macros do not seem to be aware of that. I also found 
\startlocal (\startlokaal) in the ConTeXt getting started pdf, but Mk IV does 
not know \startlocal (any more?).

My example:

% setup the page format
\definepapersize[wissenschaft][width=170mm,height=240mm]
% use the new page format
\setuppapersize[wissenschaft]
% shape the page 
\setuplayout[topspace=40pt,
header=0pt,
headerdistance=0pt,
backspace=42pt,
leftmargin=0pt,
width=280pt,
height=560pt,
rightmargindistance=20pt,
rightmargin=100pt,
footer=0pt]
%\showframe
\setuppagenumbering[alternative=doublesided]

\defineparagraphs
 [fullwidth][n=1,before={\blank},after={\blank}]
  \setupparagraphs
 [fullwidth][1][width=400pt]

\starttext
\input tufte
\startfullwidth
\input tufte
\stopfullwidth
\input knuth
\startfullwidth
\input tufte
\stopfullwidth
\input tufte
\stoptext

My questions are: Is there no more \startlocal, how to locally adjust the 
layout on a page and how to make the example work?

Thanks,
Andy
___
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] doublesided wider paragraphs

2012-05-22 Thread Marco
On 2012-05-22 Andy Thomas andytho...@web.de wrote:

 But for doublesided documents the text on verso pages is
 incorrectly aligned.

How should the paragraphs look like on even pages? As wide as the
text or should they protrude into the left margin?

Marco


___
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] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
Protrude in the margin, total width 400pt.

Andy
 
On May 22, 2012, at 6:52 PM, Marco wrote:

 On 2012-05-22 Andy Thomas andytho...@web.de wrote:
 
 But for doublesided documents the text on verso pages is
 incorrectly aligned.
 
 How should the paragraphs look like on even pages? As wide as the
 text or should they protrude into the left margin?
 
 Marco
 
 
 ___
 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
___


Re: [NTG-context] doublesided wider paragraphs

2012-05-22 Thread Wolfgang Schuster

Am 22.05.2012 um 18:11 schrieb Andy Thomas:

 Hello,
 
 I am trying to change the width of a paragraph on a page. I found 
 \defineparagraphs and \setupparagraphs and it almost works. But for 
 doublesided documents the text on verso pages is incorrectly aligned. I tried 
 [location=inner], but the macros do not seem to be aware of that. I also 
 found \startlocal (\startlokaal) in the ConTeXt getting started pdf, but Mk 
 IV does not know \startlocal (any more?).
 
 My example:
 
 % setup the page format
 \definepapersize[wissenschaft][width=170mm,height=240mm]
 % use the new page format
 \setuppapersize[wissenschaft]
 % shape the page 
 \setuplayout[topspace=40pt,
   header=0pt,
   headerdistance=0pt,
   backspace=42pt,
   leftmargin=0pt,
   width=280pt,
   height=560pt,
   rightmargindistance=20pt,
   rightmargin=100pt,
   footer=0pt]
 %\showframe
 \setuppagenumbering[alternative=doublesided]
 
 \defineparagraphs
 [fullwidth][n=1,before={\blank},after={\blank}]
  \setupparagraphs
 [fullwidth][1][width=400pt]
 
 \starttext
 \input tufte
 \startfullwidth
 \input tufte
 \stopfullwidth
 \input knuth
 \startfullwidth
 \input tufte
 \stopfullwidth
 \input tufte
 \stoptext
 
 My questions are: Is there no more \startlocal, how to locally adjust the 
 layout on a page and how to make the example work?

\usemodule[annotation]

\define[2]\FullwidthCommand
  {\doifoddpageelse
 
{\doadaptrightskip{-\the\dimexpr\rightmarginwidth+\rightmargindistance\relax}}
 {\doadaptleftskip {-\the\dimexpr\leftmarginwidth +\leftmargindistance 
\relax}}%
   #2}

\defineannotation[fullwidth][alternative=command,command=\FullwidthCommand]

\setuppagenumbering[alternative=doublesided]

\starttext \showframe

\input tufte

\startfullwidth
\input tufte
\stopfullwidth

\input knuth

\startfullwidth
\input tufte
\stopfullwidth

\input tufte

\startfullwidth
\input tufte
\stopfullwidth

\input tufte

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


Re: [NTG-context] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
It only works without my page layout. Did I make a mistake using \setuplayout? 
With \showframe it looks fine though.

Andy

On May 22, 2012, at 7:04 PM, Wolfgang Schuster wrote:

 
 Am 22.05.2012 um 18:11 schrieb Andy Thomas:
 
 Hello,
 
 I am trying to change the width of a paragraph on a page. I found 
 \defineparagraphs and \setupparagraphs and it almost works. But for 
 doublesided documents the text on verso pages is incorrectly aligned. I 
 tried [location=inner], but the macros do not seem to be aware of that. I 
 also found \startlocal (\startlokaal) in the ConTeXt getting started pdf, 
 but Mk IV does not know \startlocal (any more?).
 
 My example:
 
 % setup the page format
 \definepapersize[wissenschaft][width=170mm,height=240mm]
 % use the new page format
 \setuppapersize[wissenschaft]
 % shape the page 
 \setuplayout[topspace=40pt,
  header=0pt,
  headerdistance=0pt,
  backspace=42pt,
  leftmargin=0pt,
  width=280pt,
  height=560pt,
  rightmargindistance=20pt,
  rightmargin=100pt,
  footer=0pt]
 %\showframe
 \setuppagenumbering[alternative=doublesided]
 
 \defineparagraphs
[fullwidth][n=1,before={\blank},after={\blank}]
 \setupparagraphs
[fullwidth][1][width=400pt]
 
 \starttext
 \input tufte
 \startfullwidth
 \input tufte
 \stopfullwidth
 \input knuth
 \startfullwidth
 \input tufte
 \stopfullwidth
 \input tufte
 \stoptext
 
 My questions are: Is there no more \startlocal, how to locally adjust the 
 layout on a page and how to make the example work?
 
 \usemodule[annotation]
 
 \define[2]\FullwidthCommand
  {\doifoddpageelse
 
 {\doadaptrightskip{-\the\dimexpr\rightmarginwidth+\rightmargindistance\relax}}
 {\doadaptleftskip {-\the\dimexpr\leftmarginwidth +\leftmargindistance 
 \relax}}%
   #2}
 
 \defineannotation[fullwidth][alternative=command,command=\FullwidthCommand]
 
 \setuppagenumbering[alternative=doublesided]
 
 \starttext \showframe
 
 \input tufte
 
 \startfullwidth
 \input tufte
 \stopfullwidth
 
 \input knuth
 
 \startfullwidth
 \input tufte
 \stopfullwidth
 
 \input tufte
 
 \startfullwidth
 \input tufte
 \stopfullwidth
 
 \input tufte
 
 \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  : 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
___


Re: [NTG-context] doublesided wider paragraphs

2012-05-22 Thread Wolfgang Schuster

Am 22.05.2012 um 19:29 schrieb Andy Thomas:

 It only works without my page layout. Did I make a mistake using 
 \setuplayout? With \showframe it looks fine though.

You’re setting leftmargin to 0pt but I used in my example this value to 
calculate the additional space. When you set the argument for \doadapt… to a 
fixed value it will produce the right output but you can get an unexpected 
output when the fullwidth environment appears at the start of a new page.

\definepapersize[wissenschaft][width=170mm,height=240mm]
\setuppapersize [wissenschaft]

\setuplayout
  [topspace=40pt,
   header=0pt,
   headerdistance=0pt,
   backspace=42pt,
   leftmargin=0pt,
   width=280pt,
   height=560pt,
   rightmargindistance=20pt,
   rightmargin=100pt,
   footer=0pt]

\setuppagenumbering[alternative=doublesided]

\usemodule[annotation]

\define[2]\FullwidthCommand
  {\doifoddpageelse
 {\doadaptrightskip{-120pt}}
 {\doadaptleftskip {-120pt}}%
   #2}

\defineannotation
  [fullwidth]
  [alternative=command,
   command=\FullwidthCommand]

\starttext \showframe

\input tufte

\startfullwidth
\input tufte
\stopfullwidth

\input knuth

\startfullwidth
\input tufte
\stopfullwidth

\input tufte

\startfullwidth
\input tufte
\stopfullwidth

\input tufte

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


Re: [NTG-context] Vertical alignment in nested itemizations

2012-05-22 Thread Mikael P. Sundqvist
On Thu, May 10, 2012 at 1:14 PM, Hans Hagen pra...@wxs.nl wrote:
 On 10-5-2012 10:57, Marco wrote:

 On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o.l...@pontex.cz
  wrote:

 - seems OK with my not-so-recent MkIV - see the attachment.


 That also shows the misalignment. It's more visible when you use
 \showboxes. Give it a run as it is and then add “Foo” after
 \starttext and give it a second run and compare both.


 it depends on stretch and shrink on a page ... possible fix in next beta



 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -
 ___
 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
 ___

It seems that this problem is now fixed (May 22 version). Thank you
very much, Hans.

Best regards, Mikael
___
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] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
This works. Thank you for help.

Andy

On May 22, 2012, at 7:44 PM, Wolfgang Schuster wrote:

 
 Am 22.05.2012 um 19:29 schrieb Andy Thomas:
 
 It only works without my page layout. Did I make a mistake using 
 \setuplayout? With \showframe it looks fine though.
 
 You’re setting leftmargin to 0pt but I used in my example this value to 
 calculate the additional space. When you set the argument for \doadapt… to a 
 fixed value it will produce the right output but you can get an unexpected 
 output when the fullwidth environment appears at the start of a new page.
 
 \definepapersize[wissenschaft][width=170mm,height=240mm]
 \setuppapersize [wissenschaft]
 
 \setuplayout
  [topspace=40pt,
   header=0pt,
   headerdistance=0pt,
   backspace=42pt,
   leftmargin=0pt,
   width=280pt,
   height=560pt,
   rightmargindistance=20pt,
   rightmargin=100pt,
   footer=0pt]
 
 \setuppagenumbering[alternative=doublesided]
 
 \usemodule[annotation]
 
 \define[2]\FullwidthCommand
  {\doifoddpageelse
 {\doadaptrightskip{-120pt}}
 {\doadaptleftskip {-120pt}}%
   #2}
 
 \defineannotation
  [fullwidth]
  [alternative=command,
   command=\FullwidthCommand]
 
 \starttext \showframe
 
 \input tufte
 
 \startfullwidth
 \input tufte
 \stopfullwidth
 
 \input knuth
 
 \startfullwidth
 \input tufte
 \stopfullwidth
 
 \input tufte
 
 \startfullwidth
 \input tufte
 \stopfullwidth
 
 \input tufte
 
 \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  : 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
___


[NTG-context] indexing puzzle

2012-05-22 Thread Alan Bowen
I have been trying to index the passages cited in a book and would be
grateful for some tactical advice.

There are several works by a single author, and it is customary to cite
each text by page and line number, as in 1253.12 (page 1253, line12), for
example.

I have a sort key for each work. But now I need a way to get the entry

1253.7 (page 1253, line 7) before the entry
1253.12 (page 1253, line 12).

\[Passage[AuthorText]{Author+Text+1253.07}1253.7 or
\[Passage[AuthorText]{Author+Text+1253.07}1253. 7
would work, but it is really better to have the index entry as “1253.7”
rather than as “1253.07” or “1253. 7”

I have experimented with different sort keys—e.g., AuthorText125307—and can
generate an index with the 1235.7 and so on in the proper place and form,
say, before 1253.12.

But then the problem is that I also get entire sequences of entries out of
order (485.19, 485.21 before 477.31, and so on). Very puzzling. (Restoring
the sort key AuthorText removes the latter problems but then leaves 1253.7
in the wrong place.)

If anyone has experience with this or just some ideas for a solution, their
suggestions will be most welcome.

I am using the MKII in the latest ConTeXt standalone.

Alan
___
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] ConTeXt MKIV 2012.05.22 and \footnote

2012-05-22 Thread Alan Bowen
The latest ConTeXt MKIV (standalone) does not produce footnotes.

\startcomponent
Stuff\footnote{a note.}
\stopcomponent

This will show “Stuff” with a footnote call but no footnote appears at the
bottom of the page.

All is as it should be with MKII.

Alan
___
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] References to itemize items

2012-05-22 Thread Rogers, Michael K
I'll try again:

ConTeXt used to match the conversion style in a reference to the itemize item 
with the number/character of the item.  Now it doesn't convert numbers to 
characters.  Does this happen to anyone else?  Example:

\setupitemgroup[itemize][1][n]
\setupitemgroup[itemize][2][a]
\starttext
\startitemize %level 1
\item One
\startitemize %level 2
\item AA \item[BB] BB
\stopitemize\stopitemize
\type{\in[BB]} = \in[BB] (used to print b, now prints 2)
\stoptext

Is there a way to get \in[BB] to convert the reference to the corresponding 
character?

Thanks,

Michael




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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
___