Re: [NTG-context] Problem with grid alignment and paragraph

2018-12-14 Thread Rik

On 12/14/2018 16:14, Luca Donetti wrote:

Dear list,

I am facing a problem with grid alignment when using paragraphs. I 
think it could be a bug because the MWE below produces lines which are 
correctly aligned to the grid with the context version included in 
texlive 2017, but it does not seem to work with the context in texlive 
2018 and the current beta (ConTeXt ver: 2018.12.07 19:37 MKIV beta  
fmt: 2018.12.14).

This is the MWE:

\setuplayout[grid=yes]
\defineparagraphs[twocols][n=2]
\showgrid

\starttext
\starttwocols
  \input knuth
\nexttwocols
  \input knuth
\stoptwocols
\stoptext

Am I doing anything wrong? If not, I'll appreciate any suggestion or 
workaround.


Thank you in advance for your help.

LD

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


The result is properly aligned here on W10x64 both with the (same) 
current beta and with TL18.


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

[NTG-context] Problem with grid alignment and paragraph

2018-12-14 Thread Luca Donetti
Dear list,

I am facing a problem with grid alignment when using paragraphs. I think it
could be a bug because the MWE below produces lines which are correctly
aligned to the grid with the context version included in texlive 2017, but
it does not seem to work with the context in texlive 2018 and the current
beta (ConTeXt  ver: 2018.12.07 19:37 MKIV beta  fmt: 2018.12.14).
This is the MWE:

\setuplayout[grid=yes]
\defineparagraphs[twocols][n=2]
\showgrid

\starttext
\starttwocols
  \input knuth
\nexttwocols
  \input knuth
\stoptwocols
\stoptext

Am I doing anything wrong? If not, I'll appreciate any suggestion or
workaround.

Thank you in advance for your help.

LD
___
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] table cell minimum heights -- help needed

2018-12-14 Thread Taco Hoekwater
Hi all,

Offlist, Wolfgang sent me a patch for \framed (which \eTD inherits from) 
that adds a minheight key, and Hans promised to add that to the next beta :)

Best wishes,
Taco

> On 14 Dec 2018, at 15:18, Aditya Mahajan  wrote:
> 
> On Thu, 13 Dec 2018, Taco Hoekwater wrote:
> 
>> I am attempting to process html tables that are styled using css,
>> and I have problem with the ‘height’ property. CSS (or rather, the html 
>> browser) interprets ‘height’ as if it was a “minheight”, and
>> if the content does not fit, it will just enlarge the height until
>> it does fit.
>> 
>> Needless to say: I want that same functionality from the ConTeXt
>> table I am using to generate the PDF and not end up with text crossing row 
>> boundaries. And I cannot figure out how
>> to do it, as neither bTABLE’s \bTD nor xtable’s \startxcell
>> interpret a “minheight" parameter. And whatever I put in “height”
>> becomes the absolute value of the cell height. 
>> Did I miss something? I cannot imagine that this problem has not
>> come up before…
> 
> AFAIK, there is no option to do this. The closest option is `autowidth=force` 
> for `\framed` etc. which forces `width` to behaves as `maxwidth`. It will be 
> nice to explicitly add both minwidth/minheight and maxwidth/maxheight options 
> to framed, 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Taco Hoekwater
Elvenkind BV




___
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] table cell minimum heights -- help needed

2018-12-14 Thread Aditya Mahajan

On Thu, 13 Dec 2018, Taco Hoekwater wrote:


I am attempting to process html tables that are styled using css,
and I have problem with the ‘height’ property. CSS (or rather, the 
html browser) interprets ‘height’ as if it was a “minheight”, and

if the content does not fit, it will just enlarge the height until
it does fit.

Needless to say: I want that same functionality from the ConTeXt
table I am using to generate the PDF and not end up with text 
crossing row boundaries. And I cannot figure out how

to do it, as neither bTABLE’s \bTD nor xtable’s \startxcell
interpret a “minheight" parameter. And whatever I put in “height”
becomes the absolute value of the cell height. 


Did I miss something? I cannot imagine that this problem has not
come up before…


AFAIK, there is no option to do this. The closest option is 
`autowidth=force` for `\framed` etc. which forces `width` to behaves as 
`maxwidth`. It will be nice to explicitly add both minwidth/minheight and 
maxwidth/maxheight options to framed, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] unicode table in the fontloader

2018-12-14 Thread Hans Hagen

On 12/13/2018 11:32 PM, Ulrike Fischer wrote:


Side question: are there any plans to remove the library from the
binary?
no, as luatex functionality is kind of frozen that would break 
compatibility


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] unicode table in the fontloader

2018-12-14 Thread Hans Hagen

On 12/13/2018 11:32 PM, Ulrike Fischer wrote:

Since 29.11  l-unicode.lua disables the slnunicode library with

unicode = nil


i'll remove the dependency of l-unicode in the fontloader (only oen 
helper used)



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] indented headings possible?

2018-12-14 Thread Taco Hoekwater
Hi Wolfgang,

Thanks!

> On 13 Dec 2018, at 17:08, Wolfgang Schuster 
>  wrote:
> 
> Taco Hoekwater schrieb am 13.12.18 um 11:12:
>> Hi again,
>> Is there a way to make section headings automatically honour the current
>> left- and rightskip? For example, like this:
> 
> \setuphead
>  [section]
>  [aligntitle=yes]

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