Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-28 Thread Thomas Widmann
On 28 June 2017 at 12:57, Hans Hagen  wrote:
> On 6/28/2017 1:20 PM, Thomas Widmann wrote:
>
>> What I'd really like to know is whether the relevant parts of TeX have
>> been Luafied already (in which case I might do it soon), or whether
>> doing this would require making changes to LuaTeX itself (in which case I
>> might not want to touch this yet)…
>
> al relevant parts are opened up

Excellent, thanks!

Do you happen to know whether anybody has ever done anything vaguely
similar that I can base this on, or would I be better off starting
from scratch?

Thanks!

Thomas
-- 
Thomas Widmann
Director
Complexli Limited
+44 789 444 3009
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] floatcombination boundingbox

2017-06-28 Thread Mikael P. Sundqvist
Hi,

I wonder what is going on in the example given below (resulting pdf
attached)? The placement of the figures in floatcombination (this does
not happen if I place them one by one in a figure) are shifted
horizontally, and seems to depend on the boundingbox. Am I doing
something wrong?

This happens with current version: 2017.06.27 18:05 but also with a
version that is some weeks old.

/Mikael
\setupcombinations[
distance=1cm,
]

\starttext

\startuseMPgraphic{figa}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
draw boundingbox currentpicture;
\stopuseMPgraphic

\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\stopfloatcombination
\stopplacefigure

\startuseMPgraphic{figb}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
setbounds currentpicture to
((0,-1cm)--(1cm,-1cm)--(1cm,1cm)--(0,1cm)--cycle) enlarged 0.2cm;
draw boundingbox currentpicture;
\stopuseMPgraphic


\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figb}
\stopplacefigure
\startplacefigure
\useMPgraphic{figb}
\stopplacefigure
\stopfloatcombination
\stopplacefigure


\startuseMPgraphic{figc}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
setbounds currentpicture to
((0,-1cm)--(1cm,-1cm)--(1cm,1cm)--(0,1cm)--cycle) enlarged 0.5cm;
draw boundingbox currentpicture;
\stopuseMPgraphic


\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figc}
\stopplacefigure
\startplacefigure
\useMPgraphic{figc}
\stopplacefigure
\stopfloatcombination
\stopplacefigure

\stoptext


ctx-example24.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-28 Thread Hans Hagen

On 6/28/2017 1:20 PM, Thomas Widmann wrote:


Thanks, Hans!  I never expected it to work out of the box, and I'm
quite happy to do a lot of programming to make it work.

What I'd really like to know is whether the relevant parts of TeX have
been Luafied already (in which case I might do it soon), or whether
doing this would require making changes to LuaTeX itself (in which I
might not want to touch this yet)…

al relevant parts are opened up

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-28 Thread Thomas Widmann
On 28 June 2017 at 12:04, Hans Hagen  wrote:
> On 6/28/2017 11:16 AM, Thomas Widmann wrote:
>>
>> If the answer is 'no', that's OK. I reckon it might be, given that TeX
>> builds the paragraphs first and then split them to create pages, and I
>> basically want the page builder to be able to rebuild certain
>> paragraphs to make them fit, which goes against TeX's basic design.
>>
>> However, if were is somehow possible with LuaTeX, it would open up a
>> lot of possibilities, and not just for dictionary typesetting.
>
> one can of course make it work somehow, but it's not something standard and
> takes some coding and testing ... a rather specialized sub mechanism
>
> (basically most of what one wants can be done, but that doesn't mean that
> all gets implemented; normally i only do such more complex things if i need
> it in a project, unless it is some rainy day fun project)

Thanks, Hans!  I never expected it to work out of the box, and I'm
quite happy to do a lot of programming to make it work.

What I'd really like to know is whether the relevant parts of TeX have
been Luafied already (in which case I might do it soon), or whether
doing this would require making changes to LuaTeX itself (in which I
might not want to touch this yet)…

Thomas
-- 
Thomas Widmann
Director
Complexli Limited
+44 789 444 3009
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-28 Thread Hans Hagen

On 6/28/2017 11:16 AM, Thomas Widmann wrote:

On 26 June 2017 at 10:31, Thomas Widmann  wrote:

[...] Is there a way in ConTeXt/LuaTeX to typeset a column
repeatedly until it fulfils certain criteria (such as not generating
an orphan or a widow)?

Perhaps it would be easier if I didn't think of it as a column, but
simply as a box?  The only problem I can see with that is that it
makes it awkward to handle the fact that long entries will often need
to run into the next column.


If the answer is 'no', that's OK. I reckon it might be, given that TeX
builds the paragraphs first and then split them to create pages, and I
basically want the page builder to be able to rebuild certain
paragraphs to make them fit, which goes against TeX's basic design.

However, if were is somehow possible with LuaTeX, it would open up a
lot of possibilities, and not just for dictionary typesetting.
one can of course make it work somehow, but it's not something standard 
and takes some coding and testing ... a rather specialized sub mechanism


(basically most of what one wants can be done, but that doesn't mean 
that all gets implemented; normally i only do such more complex things 
if i need it in a project, unless it is some rainy day fun project)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-28 Thread Thomas Widmann
On 26 June 2017 at 10:31, Thomas Widmann  wrote:
> [...] Is there a way in ConTeXt/LuaTeX to typeset a column
> repeatedly until it fulfils certain criteria (such as not generating
> an orphan or a widow)?
>
> Perhaps it would be easier if I didn't think of it as a column, but
> simply as a box?  The only problem I can see with that is that it
> makes it awkward to handle the fact that long entries will often need
> to run into the next column.

If the answer is 'no', that's OK. I reckon it might be, given that TeX
builds the paragraphs first and then split them to create pages, and I
basically want the page builder to be able to rebuild certain
paragraphs to make them fit, which goes against TeX's basic design.

However, if were is somehow possible with LuaTeX, it would open up a
lot of possibilities, and not just for dictionary typesetting.

Thomas
-- 
Thomas Widmann
Director
Complexli Limited
+44 789 444 3009
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with lucida fonts (again)

2017-06-28 Thread Eric Détrez

Le 27-06-2017 23:00, Henri Menke a écrit :

You're this guy, right?

https://mailman.ntg.nl/pipermail/ntg-context/2016/087522.html
https://tex.stackexchange.com/questions/338849

Sorry, but as last time, we can't help you without you posting a
reproducible example.  The
following works fine for me on TL2016, TL2017, and latest beta.

\setupbodyfont[lucidaot]

\starttext

\input knuth

\stoptext


Here is an exemple, I show size 30 to see the differences but the size 
doesn't change the behaviour.


\starttext
\setupbodyfont[30pt]
texte $math$

\setupbodyfont[lucidaot,30pt]
texte $math$

\setupbodyfont[lucida,30pt]
texte $math$
\stoptext


I join 2 pdf with an "old" version of context (texlive 2016) and the 
last stable.


You'll see that lucidaot has an effect, it uses cm fonts but without 
italic in math

lucida shifts lhe letters in text, not in math.


--
Eric Détrez
Informatique
Lycée Faidherbe, Lille
http://eric-detrez.fr

stable-05-2017.pdf
Description: Adobe PDF document


TL-2016.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___