Re: [NTG-context] issues with \comment

2018-07-06 Thread Pablo Rodriguez
On 07/06/2018 11:34 AM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 6. Juli 2018 um 11:14
>> [...]
>> Locations for leftedge, rightedge and text don’t seem to work (in
>> Acrobat Reader, SumatraPDF and Evince).
> 
> By default the leftedge and rightedge areas are disabled because
> they have a width of 0pt and even when you enable them you won’t see
> them because they are outside of the visible area.

Many thanks for your reply, Wolfgang.

Using your approach, I see what the problem is:

\setuppapersize[A5][A4]
\setuplayout[location=middle]
\showframe
\setupinteraction[state=start]
\starttext
\comment[location=leftmargin,space=yes,buffer=abc]{}
\type{\comment[location=leftmargin,space=yes,buffer=abc]{}}
\blank[2*big]

\comment[location=rightmargin,space=yes,buffer=abc]{}
\type{\comment[location=rightmargin,space=yes,buffer=abc]{}}
\blank[2*big]
\stoptext

leftmarging places the icon over the text (at least, in Acrobat Reader
and Evince), since the width of the icon isn’t considered in the icon
placemement. I think this should be improved.

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] issues with \comment

2018-07-06 Thread Wolfgang Schuster



Pablo Rodriguez 
6. Juli 2018 um 11:14
Dear list,

[...]

Locations for leftedge, rightedge and text don’t seem to work (in
Acrobat Reader, SumatraPDF and Evince).


By default the leftedge and rightedge areas are disabled because they 
have a width of 0pt and
even when you enable them you won’t see them because they are outside of 
the visible area.


%%
\setuppapersize[A5][A4]

\setuplayout[location=middle]

% \setuplayout[leftedge=2cm,rightedge=2cm]

\showframe

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

[NTG-context] issues with \comment

2018-07-06 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupinteraction[state=start]
\setupcomment[location=inmargin, color=darkred]
\showframe
\startbuffer[abc]
\input zapf
\stopbuffer
\setuptype[option=tex]
\starttext
\comment[space=yes,buffer=abc]{}
\type{\comment[space=yes,buffer=abc]{}}
\blank[2*big]

\comment[location=leftmargin,space=yes,buffer=abc]{}
\type{\comment[location=leftmargin,space=yes,buffer=abc]{}}
\blank[2*big]

\comment[location=rightmargin,space=yes,buffer=abc]{}
\type{\comment[location=rightmargin,space=yes,buffer=abc]{}}
\blank[2*big]

\comment[location=inmargin,space=yes,buffer=abc]{}
\type{\comment[location=inmargin,space=yes,buffer=abc]{}}
\blank[2*big]

\comment[location=leftedge,space=yes,buffer=abc]{}
\type{\comment[location=leftedge,space=yes,buffer=abc]{}}
\blank[2*big]

\type{\comment[location=rightedge,space=yes,buffer=abc]{}}
\blank[2*big]

\comment[location=text,space=yes,buffer=abc]{}
\type{\comment[location=text,space=yes,buffer=abc]{}}
\blank[2*big]

\comment[space=yes,buffer=abc]{}
\type{\comment[space=yes,buffer=abc]{}}
\blank[2*big]

\comment[location=high,space=yes,buffer=abc]{}
\type{\comment[location=high,space=yes,buffer=abc]{}}
\blank[2*big]
\stoptext

I’m afraid buffer contents aren’t expanded in \comment.

Locations for leftedge, rightedge and text don’t seem to work (in
Acrobat Reader, SumatraPDF and Evince).

Default value for location seems to depend on the value of last comment
(even if a default value has been set in \setupcomment).

Am I missing something or have I hit a bug?

Many thanks for your replies,

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] Epub broken

2018-07-06 Thread Hans Hagen

On 7/6/2018 12:45 AM, Rik Kabel wrote:

On 7/5/2018 17:18, Hans Hagen wrote:

On 7/5/2018 4:47 PM, Rik Kabel wrote:

On 7/5/2018 10:27, Hans Hagen wrote:

On 7/4/2018 3:17 PM, Rik Kabel wrote:

The following example fails with recent betas, but not with TL18:

define fails


Sorry to be so terse in the original note. By failure, I mean that 
the generated .epub document is incorrect; parts are out of order, as:

new beta


Thank you, Hans, for the quick repair.

I understand that ePub is not a priority 
(https://www.mail-archive.com/ntg-context@ntg.nl/msg87829.html) but I 
would like to make a request to put into the queue. Currently references 
(via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms 
as well) do not generate ID attributes where they are created, and so 
references to them (which do generate href=#...) link to nothing. Even 
creating an empty div with an appropriate class (labelname, 
enumerationname, reference?) and the id attribute would help. Currently 
there is no placeholder in the html file to locate the proper place to 
insert this information with an external filter.


i can add something for a reference (the problem with such things is 
that there is no real anchor for it and i don't want such features to 
(1) interfere with regular typesetting and (2) have even the least 
impact on performance of regular runs



Of course, once that is done, there are lots more. So it goes.

hm, lots sounds bad ...

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
___