[NTG-context] issue with link and margin in LMTX

2020-12-11 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \setuppapersize[A9]
  \setupinteraction[state=start]
  \enabledirectives[references.border]
  \unexpanded\def\MyURL#1%
{\bgroup\goto{{\tt\hyphenatedurl{#1}}}[url(#1)]\egroup}
  \starttext
  \startitemize
  \dorecurse{2}{\item \MyURL{a.b\\/c.d\letterhash e}}
  \stopitemize
  \stoptext

I’m afraid that the link has problems with margin in MkXL (MkIV doesn’t
have any problems with it).

Could anyone confirm the issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] checkbox in fields show the word yes

2020-12-11 Thread Bruce Horrocks


> On 11 Dec 2020, at 08:21, Floris van Manen  wrote:
> 
> 
> 
> On 11/12/2020 08:46, Jan U. Hasecke wrote:
>> as nobody answered I would like too repeat my question.
> 
> This is what I see


On a Mac running BigSur...
1) using the TeXShop built-in PDF viewer I see the word "yes" inside the box
2) in the 'Preview' app I see "yes" in the box
3) using Adobe Acrobat Reader DC I get:
  a) Initially a blank / grey box
  b) Hovering the mouse over the grey bit displays "yes" and the cursor changes 
from I-beam to hand
  c) Single clicking displays the word "yes"
  d) Move focus to another app and the word "yes" is replaced with a tick mark 
in the box
  e) Move focus back to Acrobat, hover over the box and the tick mark changes 
to "yes"
  f) Click the tick and the box changes to "yes"
  g) Move focus to another app and the box changes to blank i.e. unticked

I've no idea whatsoever what to do about it or suggest which is why I didn't 
reply before.

--
Bruce Horrocks
Hampshire, UK

___
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] checkbox in fields show the word yes

2020-12-11 Thread Hans Hagen

On 12/11/2020 6:13 PM, Andres Conrado Montoya wrote:
Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I 
modified your definition as:


\definefield[test][check][cbox][][]

And now the "yes" doesn't appear. However, I don't know how this affects 
the functionality of the form.
these symbols (esp how deafults are handles) has alwaye been a bit of a 
mess in acrobat (read: different per version) and relates to appearance 
streams and such (when a form is made in acrobat these streams get 
added, it could even be some dingbat kicking in or being vectorized or 
... seen all kind of variants) ... officially a rendering should listen 
to some keys that relate to it but this is not always the case


(part of the problem is, i think, that esp for check fields a bugs or 
behaviour  has become a feature which makes it kin dof inconsisten twith 
the rest of the widgets .. it's even worse when one uses parent / child 
across pages ... it hasn;t helped that hardly any viewer supported it 
which in turn means no feedback)


(in lmtx iu could probably generate appearance streams but i'll only do 
that when i have an application for these widgets so that i can test it)


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] checkbox in fields show the word yes

2020-12-11 Thread Andres Conrado Montoya
Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I
modified your definition as:

\definefield[test][check][cbox][][]

And now the "yes" doesn't appear. However, I don't know how this affects
the functionality of the form.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] checkbox in fields show the word yes

2020-12-11 Thread Jan U. Hasecke
Dear all,

as nobody answered I would like too repeat my question.

If you open the MWE in Firefox, you see the word "yes" written in the
checkbox. Is there a way to avoid this?


Thanks a lot for your help.
juh

Am 17.11.20 um 13:50 schrieb Jan U. Hasecke:
> Hi all,
> 
> with this example I get a checkbox that does not work; in my real world
> document it works, I can't say why. But this minimal example shows the
> problem I have in my real document.
> 
> 
> \usemodule[fields]
> \setupinteraction [state=start]
> 
> \setupfield[cbox][width=1em,height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black]
> \definefield[test][check][cbox][yes][no]
> 
> \starttext
> \field[test] \space Do you see the word »yes«?
> \stoptext
> 
> Unfortunately in Firefox and some other PDF Viewer there is the word
> "yes" written in the checkbox.
> 
> This makes the form useless as people think the given option is set to
> yes by default.
> 
> Can I avoid this somehow?
> 

___
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] Unnecessary page break, leaving lines empty

2020-12-11 Thread Wolfgang Schuster

Huseyin Özoguz schrieb am 11.12.2020 um 11:56:

Hello,

I have an unnecessary pagebreak in the following min-example: the last 
four lines of the first page are left empty, without obvious reason:


\setupinterlinespace[line=3.0ex]
\setupbodyfont[10pt]
\showgrid
\setuplayout
 [location=middle,
  topspace=17mm,
  header=0mm,
  footer=12mm,
  bottomspace=15mm,
  width=middle,
  cutspace=20mm,
  backspace=19mm,
  grid=yes


grid=yes, (missing comma after the setting)


 ]

\showgrid

\starttext

\chapter{Überschrift}
\dorecurse{260}{hallo wie geht es? }
\section{Überschrift}Text.

\stoptext

The problem seems to be the combination of the layout, bodyfontsize 
and interlinespace. If I change any of them, even by a small number, 
the problem vanishes. Whats the underlying problem and how to solve it 
without changing layout, fontsize or interlinespace?


The section pulls the previous line of text to the next page, you can 
avoid this when you allow the section to force a page break.


\setuphead
  [section]
  [before={\blank[preference,2*big]}]

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


[NTG-context] Unnecessary page break, leaving lines empty

2020-12-11 Thread Huseyin Özoguz

Hello,

I have an unnecessary pagebreak in the following min-example: the last 
four lines of the first page are left empty, without obvious reason:


\setupinterlinespace[line=3.0ex]
\setupbodyfont[10pt]
\showgrid
\setuplayout
 [location=middle,
  topspace=17mm,
  header=0mm,
  footer=12mm,
  bottomspace=15mm,
  width=middle,
  cutspace=20mm,
  backspace=19mm,
  grid=yes
 ]

\showgrid

\starttext

\chapter{Überschrift}
\dorecurse{260}{hallo wie geht es? }
\section{Überschrift}Text.

\stoptext

The problem seems to be the combination of the layout, bodyfontsize and 
interlinespace. If I change any of them, even by a small number, the 
problem vanishes. Whats the underlying problem and how to solve it 
without changing layout, fontsize or interlinespace?


Thanks.
Huseyin

--
Huseyin Özoguz
Schilfweg 51b
27751 Delmenhorst

E-Mail: h.oezo...@mmnetz.de
Tel.: 0176/20203416

___
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] checkbox in fields show the word yes

2020-12-11 Thread Floris van Manen



On 11/12/2020 08:46, Jan U. Hasecke wrote:

as nobody answered I would like too repeat my question.


This is what I see

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