Re: [NTG-context] Reference links with focus=standard option

2018-04-13 Thread Lawrence Bell
Dear Christoph,

I take it from your reply that fixing this problem with interactivity
would likely cause some trouble with the printability? And therefore,
it's staying as it is to prioritize printability? That's understandable,
but a bit frustrating, since I still don't have any clue what the actual
problem is. Could you possibly explain in some more detail or point me
to a relevant thread?

Kind regards,

Lawrence


On 13/04/18 07:31, Henri Menke wrote:
> On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote:
>>> On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell <lawrence.matthew.bell@gma
>>> il.com> wrote:
>>>
>>> Thanks very much for your replies. It's reassuring to see (it seems)
>>> that I've not overlooked some extra option that magically does the job
>>> :) Worst case scenario I'll hack something together, or just settle for
>>> the default focus functionality, which is not the end of the world. Just
>>> feel like there should be a better/more elegant way.
>>>
>>> On 11/04/18 19:36, Pablo Rodriguez wrote:
>>>> On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
>>>>> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>>>>>> [...]
>>>>>> What's going on here?
>>>>> I generated an uncompressed PDF document from your source:
>>>>> http://pdf.ousia.tk/focus-standard.pdf.
>>>>> [...]
>>>>> (eq:ref) seems to be missing there. But I have to investigate the issue
>>>>> further to get a more accurate report.
>>>> [...]
>>>> Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
>>>> hope Hans can fix it.
>> Dear all,
>>
>> This is a long standing feature request reported multiple times by
>> myself and others with MWEs in
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.
>>
>> Another MWE in which the link is non-functional:
>>
>> \setupexternalfigures[location={local,global,default}]
>> \setupinteraction[state=start, focus=standard]
>> \starttext
>> \about[figure].
>> \page
>> \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]}
>> \stoptext
>>
>> Please, Hans, I kindly ask you to reconsider. I am aware of your
>> opinion and reasoning about this issue. But I believe that for many of
>> us users, today's PDFs need to be both, interactive *and* printable.
>>
>> If there is any way I can help or motivate you, then please tell me ;-)
> The best way to motivate Hans to implement something you need, is by
> implementing it yourself and sending him updated core files.
> Works for me every time ;-)
>
>> Kind regards,
>>
>> Christoph
>> __
>> _
>> 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
>> __
>> _
> ___
> 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
> ___

___
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] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
Pablo,

Thanks very much for your replies. It's reassuring to see (it seems)
that I've not overlooked some extra option that magically does the job
:) Worst case scenario I'll hack something together, or just settle for
the default focus functionality, which is not the end of the world. Just
feel like there should be a better/more elegant way.


On 11/04/18 19:36, Pablo Rodriguez wrote:
> On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
>> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>>> [...] 
>>> What's going on here?
>> I generated an uncompressed PDF document from your source:
>> http://pdf.ousia.tk/focus-standard.pdf.
>> [...]
>> (eq:ref) seems to be missing there. But I have to investigate the issue
>> further to get a more accurate report.
> Lawrence,
>
> all I got is that floats have problems with named destinations (the ones
> you get with \setupinteraction[focus=standard]).
>
> \setupexternalfigures[location=default]
> \setupinteraction
>   [state=start, focus=standard]
>
> \starttext
>
> \startplacechemical[reference=ch:ref]
>   \startchemicalformula
>  \chemical{(C_2H_5)_2Zn}{DEZ}
> \stopchemicalformula
> \stopplacechemical
>
> \placefigure[here][fl:ref]{Cow}{\externalfigure[cow]}
>
> formula \in[ch:ref]
>
> figure \in[fl:ref]
> \stoptext
>
> Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
> hope Hans can fix it.
>
> Pablo

___
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] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
Hi mailing list,

I'm having some trouble with (interactive) references. I had a quick
search of the mailing list and couldn't find any talk about this kind of
issue, so I'm asking now. Hoping you could help me out.

Consider the following example document.

\setupinteraction
  [
    state=start,
    % focus=standard,
  ]

\starttext
\startchapter[title=Some Title, reference=pt:ref]

Lorem ipsum dolor sit amet, \periods

\startplaceformula[reference=eq:ref]
  \startformula
    c^2 = a^2 + b^2.
  \stopformula
\stopplaceformula

Lorem ipsum dolor sit amet, \periods

\startitemize[r]
  \startitem[it:ref]
    Lorem ipsum dolor sit amet, \periods
  \stopitem
\stopitemize

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\page

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\stopchapter
\stoptext

All is well with the default setting for focus. I don't like that with
most (?) PDF viewers the default setting changes the zoom level, so I
usually turn on \setupinteraction[focus=standard] instead. But this
seems to break (some of) the interactive links. The links to the the
chapter and item still work, but the links to the formula are broken.

As an experiment, I just tried this with a couple different viewers
(Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting
\setupinteraction[focus=standard] back in) the link is indeed broken on
all of them, /except/ for Qpdfview which still seems to understand it.

What's going on here?

Thanks in advance, Lawrence

___
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] interface XML files

2017-08-27 Thread Lawrence Bell
Hello mailing list,

I have a bug report of sorts. I've been trying to take advantage of the XML
interface files that come along with a ConTeXt installation, to generate
information on the various commands. However, when I try to parse the XML
files, I discover a couple of minor errors:

   - in file "i-common-value.xml", line 648, column 24: the XML comment
   ends with ---> instead of -->.
   - in file "t-letter.xml", line 178, column 2:  element ends
   with  instead of .
   - in file "t-mathsets.xml", line 35, column 0: the final closing
tag is missing.
   - in file "t-title.xml", line 5, column 35: the attribute
   file=t-tile.mkvi" is missing an opening quote.
   - in file "t-fullpage.xml", line 8, column 6: element  is
   ended with .
   - in file "t-memo.xml", line 136, column 2:  element ends
   with  instead of .

For reference, ConTeXt reports its version to be

ConTeXt  ver: 2017.08.15 12:35 MKIV beta  fmt: 2017.8.24
>
___
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] nested itemgroups sometimes not working

2017-02-01 Thread Lawrence Bell
Ah, I see. Thanks for the response.

On Wed, Feb 1, 2017 at 4:51 PM, Henri Menke <henrime...@gmail.com> wrote:

> It’s a known bug:
> https://mailman.ntg.nl/pipermail/ntg-context/2016/086926.html
>
> You can always test your code with latest standalone on
> http://live.contextgarden.net/
>
> On 02/01/2017 04:43 PM, Lawrence Bell wrote:
> > I'm having some difficulties with nested itemgroups. I've produced a
> > minimal working example as follows.
> >
> > \defineitemgroup
> >   [test] [symbol=n]
> >
> > \starttext
> >
> > % \startitemgroup
> > %   \startitem
> > % \startitemgroup[test]
> > %   \startitem
> > % ...
> > %   \stopitem
> > % \stopitemgroup
> > %   \stopitem
> > % \stopitemgroup
> >
> > \startitemgroup
> >   \startitem
> > \startitemgroup
> >   \startitem
> > Lorem ipsum
> > \startitemgroup[test]
> >   \startitem
> > dolor sit amet,
> >   \stopitem
> >   \startitem
> > consectetur adipisicing elit.
> >   \stopitem
> > \stopitemgroup
> >   \stopitem
> > \stopitemgroup
> >   \stopitem
> > \stopitemgroup
> >
> > \stoptext
> >
> > I would expect items in the [test] itemgroup to be numbered 1, 2 but
> > instead they are both 0. I have also found out that, bizarrely,
> > uncommenting the first itemgroup fixes the issue. This is the behaviour
> > I get on the TeXLive 2016 version of ConTeXt, I don't have the latest
> > minimals installed to test.
> >
> > Thanks in advance for any help with this matter!
> >
> >
> > 
> ___
> > 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
> > 
> ___
> >
>
> 
> ___
> 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
> 
> ___
___
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] nested itemgroups sometimes not working

2017-02-01 Thread Lawrence Bell
I'm having some difficulties with nested itemgroups. I've produced a
minimal working example as follows.

\defineitemgroup
  [test] [symbol=n]

\starttext

% \startitemgroup
%   \startitem
% \startitemgroup[test]
%   \startitem
% ...
%   \stopitem
% \stopitemgroup
%   \stopitem
% \stopitemgroup

\startitemgroup
  \startitem
\startitemgroup
  \startitem
Lorem ipsum
\startitemgroup[test]
  \startitem
dolor sit amet,
  \stopitem
  \startitem
consectetur adipisicing elit.
  \stopitem
\stopitemgroup
  \stopitem
\stopitemgroup
  \stopitem
\stopitemgroup

\stoptext

I would expect items in the [test] itemgroup to be numbered 1, 2 but
instead they are both 0. I have also found out that, bizarrely,
uncommenting the first itemgroup fixes the issue. This is the behaviour I
get on the TeXLive 2016 version of ConTeXt, I don't have the latest
minimals installed to test.

Thanks in advance for any help with this matter!
___
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
___