[NTG-context] system Linux armv7l is not supported yet

2014-07-25 Thread Sytse Knypstra

Dear list members,

Recently I purchased a Minix NEO X7 mediaplayer on which I managed to 
install Ubuntu (or rather: Xubuntu) 14.04. When I then tried to install 
the ConTeXt Standalone suite I immediately received the message:

Error: your system Linux armv7l is not supported yet.
Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)
The latter is what I am doing now.  

I was however able to Install ConTeXt from the Ubuntu repositories 
without a any problem.
FYI: the Minix NEO X7 is based on a Quad-Core ARM Cortex-A9 processor 
with Quad-Core Mali-400 GPU.


With kind regards,

Sytse Knypstra
___
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] Leave out reference to page if on the same page?

2014-07-25 Thread Hans Hagen

On 7/24/2014 2:03 PM, Otared Kavian wrote:

Hi,

Thanks for your attention, Wolfgang: indeed removing
\analyzecurrentreference
from your example allows mkiv to typeset correctly and obtain the expected 
result.


 

yet another sparsely documented feature ... in beta:

% tests/mkiv/pagestate-001.tex

\useMPlibrary[dum]

\setuppagenumbering
  [alternative=doublesided]

% new: \setupreferencing[doublesided=no]

% old: \somewhere{backward}{foreward}[label]
% new: \someplace{preceding}{backward}{current}{foreward}{following}[label]
% old: \atpage[#label]
% new: 
\doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise}


\starttext

\dorecurse {20} {
\placefigure
  [here]
  [fig:#1]
  {}
  {\externalfigure[dummy]}
\dorecurse {20} {
##1: \atpage[fig:##1] /
\doifcheckedpagestate{fig:##1}
 {preceding}
 {backward}
 {current}
 {foreward}
 {following}
 {otherwise}
}
}

\stoptext

if okay, then it's something to wikify ... should 
\setupreferencing[doublesided=no] be default? (currently yes i.e. spread 
aware)


keep in mind that this kind of functionality once it kicks in (is used) 
can result in a few more runs to get thing right and that there's always 
the danger of oscillation as the text injected is dependent on the 
situation


Hans


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


Re: [NTG-context] How to make floats extend into the outer margin

2014-07-25 Thread Hans Hagen

On 7/24/2014 3:41 PM, Keith J. Schultz wrote:

Hello,

I assume others might have need for this, so it might be a good idea to
put this into the
core with a name of something like \widefigure or \ placewidefigure!

Just, a thought!

regards
Keith.

Am 24.07.2014 um 10:36 schrieb Wolfgang Schuster
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com:



Am 23.07.2014 um 17:48 schrieb Joshua Krämer joshua.krae...@gmail.com
mailto:joshua.krae...@gmail.com:


Dear list,

I have some big-width floats, and want them to span the regular text
width plus the outer margin.  I can position them manually with \kern.
Is there a way to make them automatically extend into the outer
margin?  I have tried different options for location=... without
success.



{snip, snip}



\starttext

\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure

\setupfloat[figure][location=flushleft]

\startplacefigure
\framed[width=1.2\textwidth,framecolor=blue]{two}
\stopplacefigure

\stoptext


You can use the command key for \setupfloat to apply a macro to the
finished content of the float.

The purpose of this macro is to save the content and compare the width
to the width of the text are,
when the figure is wider then the available space use the \leftaligned
or \rightaligned commands
to let the content protrude to the outer margins.


\setuppagenumbering[alternative=doublesided]

\setuplayout[backspace=4cm,width=12cm]

\definemeasure[Widefigure][\textwidth+\rightmargindistance+\rightmarginwidth]

\setupfloat[figure][command=\FigureCommand]

\define\FigureCommand
 {\dowithnextbox
{\signalrightpage
 \ifdim\nextboxwd\textwidth
   
\doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}%
 \else
   \midaligned{\flushnextbox}%
 \fi}
\hbox}

\showframe

\starttext

\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{Left margin}
\stopplacefigure

\page

\startplacefigure
\framed[width=\measure{Widefigure},framecolor=red]{Left margin}
\stopplacefigure

\input knuth

\page

\startplacefigure
\framed[width=\measure{Widefigure},framecolor=red]{Right margin}
\stopplacefigure

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry
to the Wiki!

maillist : ntg-context@ntg.nl mailto: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
___




--

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


Re: [NTG-context] sections without numbering

2014-07-25 Thread Wolfgang Schuster

Am 13.07.2014 um 12:06 schrieb Werner Hintze w.hin...@posteo.eu:

 Aha. I see. Two possibilities more. But I forgot another problem. All these 
 solutions give me
 
 »1.2. Kapitel« - »1.2. Kapitel« etc. if it’s the first part. I don’t 
 unterstand the mechanism and so I don’t know where to look for the solution.

Which output do you expect?

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] pagenumber suppression howto?

2014-07-25 Thread Wolfgang Schuster

Am 20.07.2014 um 21:35 schrieb Meer, H. van der h.vanderm...@uva.nl:

 Thanks. Please let us know if this addition of location=none will be taken up 
 in a future beta.

Which the new beta you can now write

\setuppagenumbering[location=none]

to hide the pagenumber.

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] Strange Behaviour of \mathop

2014-07-25 Thread Tobias Columbus
Dear list,

I stumpled upon a very strange effect that \mathop has on the vertical
positioning of characters.

\mathop applied to a single character results in the character's baseline being
lower than the baseline of all other characters. This does neither depend on the
font (checked with Lucida OT, Pagella and LatinModern) nor on the specific
character.

A minimal example for LatinModern and Pagella is attached.

With kind regards,
Tobias


mwe.tex
Description: TeX 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] Strange Behaviour of \mathop

2014-07-25 Thread Tobias Columbus
Dear list,

I am sorry... I forgot to mention my ConTeXt version. I was using
ConTeXt standalone version
2014.07.18 14:12

Sorry,
Tobias


On Fri, Jul 25, 2014 at 03:55:34PM +0200, Tobias Columbus wrote:
 Dear list,
 
 I stumpled upon a very strange effect that \mathop has on the vertical
 positioning of characters.
 
 \mathop applied to a single character results in the character's baseline 
 being
 lower than the baseline of all other characters. This does neither depend on 
 the
 font (checked with Lucida OT, Pagella and LatinModern) nor on the specific
 character.
 
 A minimal example for LatinModern and Pagella is attached.
 
 With kind regards,
 Tobias


___
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] system Linux armv7l is not supported yet

2014-07-25 Thread Mojca Miklavec
On Fri, Jul 25, 2014 at 12:20 PM, Sytse Knypstra wrote:
 Dear list members,

 Recently I purchased a Minix NEO X7 mediaplayer on which I managed to
 install Ubuntu (or rather: Xubuntu) 14.04. When I then tried to install the
 ConTeXt Standalone suite I immediately received the message:
 Error: your system Linux armv7l is not supported yet.
 Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)
 The latter is what I am doing now.

 I was however able to Install ConTeXt from the Ubuntu repositories without a
 any problem.
 FYI: the Minix NEO X7 is based on a Quad-Core ARM Cortex-A9 processor with
 Quad-Core Mali-400 GPU.

I already tested the installation on Raspberry PI a while ago and it
worked without problems.

We already have some binaries for ARM, two sets in TeX Live
(http://tug.org/svn/texlive/trunk/Master/bin/) and one set in our
minimals (http://svn.contextgarden.net/suite-bin/tex/armel-linux/)

The problem is that I don't know how to distinguish between the two
(or more) flavours or arm with a simple script. There is Little Endian
and Big Endian. And there is Hard Float or something like that.

Are you able to tell:
- Which of the two sets from TL works for you? (Or whether the
binaries on the garden work for you.)
- How to distinguish between different flavours?

If you can help me solve that mystery, enabling support for your
platform is just two clicks away.

Mojca
___
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] How to make floats extend into the outer margin

2014-07-25 Thread Rik Kabel

On 2014-07-25 07:10, Hans Hagen wrote:

Am 24.07.2014 um 10:36 schrieb Wolfgang Schuster

schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com:



\starttext

\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure

\setupfloat[figure][location=flushleft]

\startplacefigure
\framed[width=1.2\textwidth,framecolor=blue]{two}
\stopplacefigure

\stoptext


You can use the command key for \setupfloat to apply a macro to the
finished content of the float.

The purpose of this macro is to save the content and compare the width
to the width of the text are,
when the figure is wider then the available space use the \leftaligned
or \rightaligned commands
to let the content protrude to the outer margins.


\setuppagenumbering[alternative=doublesided]

\setuplayout[backspace=4cm,width=12cm]

\definemeasure[Widefigure][\textwidth+\rightmargindistance+\rightmarginwidth] 



\setupfloat[figure][command=\FigureCommand]

\define\FigureCommand
 {\dowithnextbox
{\signalrightpage
 \ifdim\nextboxwd\textwidth
\doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}%
 \else
   \midaligned{\flushnextbox}%
 \fi}
\hbox}

\showframe

\starttext

\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{Left margin}
\stopplacefigure

\page

\startplacefigure
\framed[width=\measure{Widefigure},framecolor=red]{Left margin}
\stopplacefigure

\input knuth

\page

\startplacefigure
\framed[width=\measure{Widefigure},framecolor=red]{Right margin}
\stopplacefigure

\stoptext

Wolfgang
___ 

With Wolfgang's solution, the captions remain centered on the page. With 
Hans's solution, the captions move with the center of the frame. I 
expect that, if captions are used and there are other figures that are 
not placed with this mechanism, Wolfgang's solution will result in a 
better looking page.


--
Rik
___
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] How to make floats extend into the outer margin

2014-07-25 Thread Hans Hagen

On 7/25/2014 4:06 PM, Rik Kabel wrote:

On 2014-07-25 07:10, Hans Hagen wrote:

Am 24.07.2014 um 10:36 schrieb Wolfgang Schuster

schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com:



\starttext

\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure

\setupfloat[figure][location=flushleft]

\startplacefigure
\framed[width=1.2\textwidth,framecolor=blue]{two}
\stopplacefigure

\stoptext


You can use the command key for \setupfloat to apply a macro to the
finished content of the float.

The purpose of this macro is to save the content and compare the width
to the width of the text are,
when the figure is wider then the available space use the \leftaligned
or \rightaligned commands
to let the content protrude to the outer margins.


\setuppagenumbering[alternative=doublesided]

\setuplayout[backspace=4cm,width=12cm]

\definemeasure[Widefigure][\textwidth+\rightmargindistance+\rightmarginwidth]


\setupfloat[figure][command=\FigureCommand]

\define\FigureCommand
 {\dowithnextbox
{\signalrightpage
 \ifdim\nextboxwd\textwidth
\doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}%

 \else
   \midaligned{\flushnextbox}%
 \fi}
\hbox}

\showframe

\starttext

\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{Left margin}
\stopplacefigure

\page

\startplacefigure
\framed[width=\measure{Widefigure},framecolor=red]{Left margin}
\stopplacefigure

\input knuth

\page

\startplacefigure
\framed[width=\measure{Widefigure},framecolor=red]{Right margin}
\stopplacefigure

\stoptext

Wolfgang
___


With Wolfgang's solution, the captions remain centered on the page. With
Hans's solution, the captions move with the center of the frame. I
expect that, if captions are used and there are other figures that are
not placed with this mechanism, Wolfgang's solution will result in a
better looking page.


maybe some day i come up with a cleaner caption handler ...

\showframe

\starttext

\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure

\definefloat[widefigure][figure][figure]
\setupfloat   [widefigure][location=flushleft]
\setupcaptions[widefigure][width=\textwidth,align=middle]

\startplacewidefigure
\framed[width=1.2\textwidth,framecolor=blue]{two}
\stopplacewidefigure

\stoptext

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


Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Gerben Wierda
Thanks all for the discussion. As a simple user, I think I must pass. All this 
complexity in my document text and setup is too much trouble and it seems risky 
(wjhat am I going to break?). Far less work to do a small check at the end.

What I was looking for was something simple that made for instance 
\at{page][foo] conditional, e.g.

\conditionalat[when]{page}[foo]

with ‘when’ is something like
always
onpage
offpage
onspread
offspread
never

Typing \conditionalat instead of \at is what I as a simpleton user can handle…

G

On 25 Jul 2014, at 13:06, Hans Hagen pra...@wxs.nl wrote:

 On 7/24/2014 2:03 PM, Otared Kavian wrote:
 Hi,
 
 Thanks for your attention, Wolfgang: indeed removing
  \analyzecurrentreference
 from your example allows mkiv to typeset correctly and obtain the expected 
 result.
 
  
 
 yet another sparsely documented feature ... in beta:
 
 % tests/mkiv/pagestate-001.tex
 
 \useMPlibrary[dum]
 
 \setuppagenumbering
  [alternative=doublesided]
 
 % new: \setupreferencing[doublesided=no]
 
 % old: \somewhere{backward}{foreward}[label]
 % new: \someplace{preceding}{backward}{current}{foreward}{following}[label]
 % old: \atpage[#label]
 % new: 
 \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise}
 
 \starttext
 
 \dorecurse {20} {
\placefigure
  [here]
  [fig:#1]
  {}
  {\externalfigure[dummy]}
\dorecurse {20} {
##1: \atpage[fig:##1] /
\doifcheckedpagestate{fig:##1}
 {preceding}
 {backward}
 {current}
 {foreward}
 {following}
 {otherwise}
}
 }
 
 \stoptext
 
 if okay, then it's something to wikify ... should 
 \setupreferencing[doublesided=no] be default? (currently yes i.e. spread 
 aware)
 
 keep in mind that this kind of functionality once it kicks in (is used) can 
 result in a few more runs to get thing right and that there's always the 
 danger of oscillation as the text injected is dependent on the situation
 
 Hans
 
 
 -
  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
 ___

___
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] Leave out reference to page if on the same page?

2014-07-25 Thread Rik Kabel

On 2014-07-25 07:06, Hans Hagen wrote:

On 7/24/2014 2:03 PM, Otared Kavian wrote:

Hi,

Thanks for your attention, Wolfgang: indeed removing
\analyzecurrentreference
from your example allows mkiv to typeset correctly and obtain the 
expected result.


 

yet another sparsely documented feature ... in beta:

% tests/mkiv/pagestate-001.tex

\useMPlibrary[dum]

\setuppagenumbering
  [alternative=doublesided]

% new: \setupreferencing[doublesided=no]

% old: \somewhere{backward}{foreward}[label]
% new: 
\someplace{preceding}{backward}{current}{foreward}{following}[label]

% old: \atpage[#label]
% new: 
\doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise}


\starttext

\dorecurse {20} {
\placefigure
  [here]
  [fig:#1]
  {}
  {\externalfigure[dummy]}
\dorecurse {20} {
##1: \atpage[fig:##1] /
\doifcheckedpagestate{fig:##1}
 {preceding}
 {backward}
 {current}
 {foreward}
 {following}
 {otherwise}
}
}

\stoptext

if okay, then it's something to wikify ... should 
\setupreferencing[doublesided=no] be default? (currently yes i.e. 
spread aware)


keep in mind that this kind of functionality once it kicks in (is 
used) can result in a few more runs to get thing right and that 
there's always the danger of oscillation as the text injected is 
dependent on the situation


Hans


This looks very promising. When I test it with today's beta, I see that 
current is set in some iterations, but never shows up in the final 
version of the page, so references on the same page always come out as 
backward or forward.


I would think that the default should match the default for 
\setuppagenumbering[alternative=], and perhaps be tied to that.


--
Rik Kabel

___
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] Strange Behaviour of \mathop

2014-07-25 Thread Aditya Mahajan

On Fri, 25 Jul 2014, Tobias Columbus wrote:


Dear list,

I stumpled upon a very strange effect that \mathop has on the vertical
positioning of characters.

\mathop applied to a single character results in the character's baseline being
lower than the baseline of all other characters. This does neither depend on the
font (checked with Lucida OT, Pagella and LatinModern) nor on the specific
character.

A minimal example for LatinModern and Pagella is attached.


This is a feature of \mathop: for one letter arguments, \mathop centers 
the symbol on the math-axis. If you don't want this, use:


  \mathop{P\kern\zeropoint}

etc.

Aditya
___
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] Leave out reference to page if on the same page?

2014-07-25 Thread Hans Hagen

On 7/25/2014 4:34 PM, Rik Kabel wrote:

On 2014-07-25 07:06, Hans Hagen wrote:

On 7/24/2014 2:03 PM, Otared Kavian wrote:

Hi,

Thanks for your attention, Wolfgang: indeed removing
\analyzecurrentreference
from your example allows mkiv to typeset correctly and obtain the
expected result.


 

yet another sparsely documented feature ... in beta:

% tests/mkiv/pagestate-001.tex

\useMPlibrary[dum]

\setuppagenumbering
  [alternative=doublesided]

% new: \setupreferencing[doublesided=no]

% old: \somewhere{backward}{foreward}[label]
% new:
\someplace{preceding}{backward}{current}{foreward}{following}[label]
% old: \atpage[#label]
% new:
\doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise}


\starttext

\dorecurse {20} {
\placefigure
  [here]
  [fig:#1]
  {}
  {\externalfigure[dummy]}
\dorecurse {20} {
##1: \atpage[fig:##1] /
\doifcheckedpagestate{fig:##1}
 {preceding}
 {backward}
 {current}
 {foreward}
 {following}
 {otherwise}
}
}

\stoptext

if okay, then it's something to wikify ... should
\setupreferencing[doublesided=no] be default? (currently yes i.e.
spread aware)

keep in mind that this kind of functionality once it kicks in (is
used) can result in a few more runs to get thing right and that
there's always the danger of oscillation as the text injected is
dependent on the situation

Hans


This looks very promising. When I test it with today's beta, I see that
current is set in some iterations, but never shows up in the final
version of the page, so references on the same page always come out as
backward or forward.


well, in the case of 5 alternatives current will only happen when the 
reference is at the *exact* spot as the thing referred to; so, in the 
case of


  text [target] text [reference] text

the target is before the reference on the same page contrary to

  text \hbox to 0pt{[target]}\hbox to 0pt{[reference]} text

of course 'current' seldom happens but it's part of the solution set anyway


I would think that the default should match the default for
\setuppagenumbering[alternative=], and perhaps be tied to that.



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


[NTG-context] \startitemize Step 1: Step 2:

2014-07-25 Thread Gerben Wierda
Here is something simple that cannot be found in the manual (at least not by 
me). How do I create a list that is numbered like this:

Step 1: foo foo foo foo foo foo foo foo foo
foo foo foo foo foo
Step 2: bar bar bar bar bar bar bar bar bar
bar bar bar bar bar

etc. (Indenting each item after the first line of course)

G
___
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] \startitemize Step 1: Step 2:

2014-07-25 Thread Wolfgang Schuster

Am 25.07.2014 um 18:53 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Here is something simple that cannot be found in the manual (at least not by 
 me). How do I create a list that is numbered like this:
 
 Step 1: foo foo foo foo foo foo foo foo foo
   foo foo foo foo foo
 Step 2: bar bar bar bar bar bar bar bar bar
   bar bar bar bar bar
 
 etc. (Indenting each item after the first line of course)

\defineenumeration[Step][alternative=hanging,width=fit,stopper=:]

\starttext

\Step \input ward

\Step \input weisman

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


[NTG-context] Three questions about descriptions

2014-07-25 Thread Matthias Weber
Dear All,

I’d like to use a mechanism that allows me to create an itemized list with my 
own labels like one can
with descriptions:

\definedescription[outline][
headstyle=bold,style=normal,alternative=hanging,margin=1cm,distance=-.8cm]

\starttext

\outline[Welcome] Tea

\outline[Introduction] Tufte or Knuth?

\outline[Snack] Chocolate Cake

\outline[Discussion] Knuth or Tufte?

\outline[Open End] Bear and wine

\stoptext

However, instead of the above I would like to 

— have the result “packed”, i.e. without lines between the descriptions
— have a stopper (“:”) after the label
— have the text of the description begin after the stopper and not at a fixed 
indentation (distance=…)

How do I do that?

Thanks,

Matthias



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] system Linux armv7l is not supported yet

2014-07-25 Thread Sytse Knypstra

Thank you, Mojca for your reaction.

On Fri, 25 Jul, 2014 at 5:08 PM, Mojca Miklavec wrote:


We already have some binaries for ARM, two sets in TeX Live
(http://tug.org/svn/texlive/trunk/Master/bin/) and one set in our
minimals (http://svn.contextgarden.net/suite-bin/tex/armel-linux/)

The problem is that I don't know how to distinguish between the two
(or more) flavours or arm with a simple script. There is Little Endian
and Big Endian. And there is Hard Float or something like that.

Are you able to tell:
- Which of the two sets from TL works for you? (Or whether the
binaries on the garden work for you.)
- How to distinguish between different flavours?


Could you please be more specific about how I should test the three 
sets?

This is what I did:
1. I went to http://tug.org/svn/texlive/trunk/Master/bin/armel-linux/
I clicked on `context` and then on the first `download` on the page 
(behind Links to HEAD).
That brought me to a page saying: `link 
../../texmf-dist/scripts/context/stubs/unix/context`.

I don't know whether I took the correct steps and how to proceed.

2.  I went to http://tug.org/svn/texlive/trunk/Master/bin/armhf-linux/ 
and performed the same steps as under 1. with the same result.


3. I went to http://svn.contextgarden.net/suite-bin/tex/armel-linux/ 
and clicked on `luatex` and on the following page again on `luatex`.
I saved the file `luatex` (7.6 MB) but I don't know what to do with 
this file.
I changed the permission so that it can be executed. But execution gave 
the error message: `Failed to execute child process 
/home/sytse/context/luatex (No such file or directory)`.


Sytse


___
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] Three questions about descriptions

2014-07-25 Thread Rik Kabel

On 2014-07-25 14:56, Matthias Weber wrote:

Dear All,

I’d like to use a mechanism that allows me to create an itemized list with my 
own labels like one can
with descriptions:

\definedescription[outline][
 headstyle=bold,style=normal,alternative=hanging,margin=1cm,distance=-.8cm]

\starttext

\outline[Welcome] Tea

\outline[Introduction] Tufte or Knuth?

\outline[Snack] Chocolate Cake

\outline[Discussion] Knuth or Tufte?

\outline[Open End] Bear and wine

\stoptext

However, instead of the above I would like to

— have the result “packed”, i.e. without lines between the descriptions
— have a stopper (“:”) after the label
— have the text of the description begin after the stopper and not at a fixed 
indentation (distance=…)

How do I do that?

Thanks,

Matthias


The following works, but I suspect that there may be a better way to get 
the packing.


   \define[1]\outlinehead{#1:}
   \definedescription[outline]
   \setupdescription [outline]
  [headstyle=bold,
   style=normal,
   %  alternative=hanging,
   width=fit,
   distance=1ex,
   before={\blank[back]},
   headcommand=\outlinehead,
 ]

   \starttext

   \outline{Welcome} Tea

   \outline{Introduction} Tufte or Knuth? and more and more and more
   and more to see what hanging does.

   \outline{Snack} Chocolate Cake

   \outline{Discussion} Knuth or Tufte?

   \outline{Open End} Bear and wine

   \stoptext

Try it both with and without the hanging alternative.

And for me, beer is preferable to bear.
--
Rik
___
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] system Linux armv7l is not supported yet

2014-07-25 Thread Mojca Miklavec
Hi,

I'm sorry for too vague instructions.

On Fri, Jul 25, 2014 at 9:40 PM, Sytse Knypstra wrote:
 Thank you, Mojca for your reaction.

 On Fri, 25 Jul, 2014 at 5:08 PM, Mojca Miklavec wrote:

 We already have some binaries for ARM, two sets in TeX Live
 (http://tug.org/svn/texlive/trunk/Master/bin/) and one set in our minimals
 (http://svn.contextgarden.net/suite-bin/tex/armel-linux/) The problem is
 that I don't know how to distinguish between the two (or more) flavours or
 arm with a simple script. There is Little Endian and Big Endian. And there
 is Hard Float or something like that. Are you able to tell: - Which of the
 two sets from TL works for you? (Or whether the binaries on the garden work
 for you.) - How to distinguish between different flavours?


 Could you please be more specific about how I should test the three sets?
 This is what I did:
 1. I went to http://tug.org/svn/texlive/trunk/Master/bin/armel-linux/
 I clicked on `context` and then on the first `download` on the page (behind
 Links to HEAD).
 That brought me to a page saying: `link
 ../../texmf-dist/scripts/context/stubs/unix/context`.
 I don't know whether I took the correct steps and how to proceed.

You should have tried ./luatex --version (or any other binary like
pdftex, xetex etc.), but see also below. context is just a symlink.

 2.  I went to http://tug.org/svn/texlive/trunk/Master/bin/armhf-linux/ and
 performed the same steps as under 1. with the same result.

 3. I went to http://svn.contextgarden.net/suite-bin/tex/armel-linux/ and
 clicked on `luatex` and on the following page again on `luatex`.
 I saved the file `luatex` (7.6 MB) but I don't know what to do with this
 file.
 I changed the permission so that it can be executed. But execution gave the
 error message: `Failed to execute child process /home/sytse/context/luatex
 (No such file or directory)`.

I don't know that error.

The idea would be to try to run
./luatex --version
and it would either work or fail, but the failure you mentioned is weird.

You can try:
svn co http://svn.contextgarden.net/suite-bin/tex/armel-linux
cd armel-linux/luatex
./luatex --version


For TeX Live you could try:
svn co svn://tug.org/texlive/trunk/Master/bin/armhf-linux
cd armhf-linux
./luatex --version
(or do some sparse checkouts to save bandwidth)

Mojca
___
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] Three questions about descriptions

2014-07-25 Thread Matthias Weber
Thanks Rik,

that does exactly what I want.

Matthias


On Jul 25, 2014, at 4:03 PM, Rik Kabel cont...@rik.users.panix.com wrote:

 On 2014-07-25 14:56, Matthias Weber wrote:
 Dear All,
 
 I’d like to use a mechanism that allows me to create an itemized list with 
 my own labels like one can
 with descriptions:
 
 \definedescription[outline][
 
 headstyle=bold,style=normal,alternative=hanging,margin=1cm,distance=-.8cm]
 
 \starttext
 
 \outline[Welcome] Tea
 
 \outline[Introduction] Tufte or Knuth?
 
 \outline[Snack] Chocolate Cake
 
 \outline[Discussion] Knuth or Tufte?
 
 \outline[Open End] Bear and wine
 
 \stoptext
 
 However, instead of the above I would like to 
 
 — have the result “packed”, i.e. without lines between the descriptions
 — have a stopper (“:”) after the label
 — have the text of the description begin after the stopper and not at a 
 fixed indentation (distance=…)
 
 How do I do that?
 
 Thanks,
 
 Matthias
 
 
 The following works, but I suspect that there may be a better way to get the 
 packing.
 \define[1]\outlinehead{#1:}
 \definedescription[outline] 
 \setupdescription [outline]
   [headstyle=bold,
style=normal,
 %  alternative=hanging,
width=fit,
distance=1ex,
before={\blank[back]},
headcommand=\outlinehead,
  ]
 
 \starttext
 
 \outline{Welcome} Tea
 
 \outline{Introduction} Tufte or Knuth? and more and more and more and more to 
 see what hanging does.
 
 \outline{Snack} Chocolate Cake
 
 \outline{Discussion} Knuth or Tufte?
 
 \outline{Open End} Bear and wine
 
 \stoptext
 Try it both with and without the hanging alternative.
 
 And for me, beer is preferable to bear.
 -- 
 Rik
 ___
 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
 ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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
___