Re: [NTG-context] issues with bookmarks

2015-07-27 Thread Hans Hagen

On 7/26/2015 11:58 PM, Alan BRASLAU wrote:

On Sun, 26 Jul 2015 20:01:40 +0200
Pablo Rodriguez oi...@gmx.es wrote:


bookmarks have some issues.


Indeed, I observe similar issues.

However, I do not make much use of these bookmarks so I have not paid
too much attention to this for now.


I hate bookmarks and never use them.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issues with bookmarks

2015-07-27 Thread Hans Hagen

On 7/26/2015 8:01 PM, Pablo Rodriguez wrote:

Hans,

sorry for the long message, but I’m afraid that bookmarks have some issues.

1. When specifying sectionblocks, bookmarks for parts don’t contain
chapters as child elements:

 \setupinteraction[state=start]
 \placebookmarks[part, chapter][part, chapter]
 \setuphead[part][placehead=yes]
 \starttext
 \startfrontmatter
 \chapter{Foreword}
 \chapter{Introduction}
 \stopfrontmatter
 \startbodymatter
 \part{First Part}
 \chapter{First Chapter}
 \chapter{Second Chapter}
 \part{Second Part}
 \chapter{Third Chapter}
 \chapter{Fourth Chapter}
 \stopbodymatter
 \stoptext


In SumatraPDF (which i use mostly) and Acrobat I see

 Foreword
 Introduction
 1 First Part
 1.1 First Chapter
 1.2 Second Chapter
 2 Second Part
 2.1 Third Chapter
 2.2 Fourth Chapter

I remember a thread about bugged viewers so maybe your viewer is not ok.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issues with bookmarks

2015-07-27 Thread juh

Am 26.07.2015 um 20:01 schrieb Pablo Rodriguez:
 Hans,
 
 sorry for the long message, but I’m afraid that bookmarks have some issues.
 

I can confirm this behaviour on Ubuntu (evince) and MacOS X (Preview and
Acrobat Reader)

juh



___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issues with bookmarks

2015-07-27 Thread Pablo Rodriguez
On 07/27/2015 02:47 PM, Hans Hagen wrote:
 On 7/26/2015 8:01 PM, Pablo Rodriguez wrote:
 Hans,

 sorry for the long message, but I’m afraid that bookmarks have some issues.

 1. When specifying sectionblocks, bookmarks for parts don’t contain
 chapters as child elements:

  \setupinteraction[state=start]
  \placebookmarks[part, chapter][part, chapter]
  \setuphead[part][placehead=yes]
  \starttext
  \startfrontmatter
  \chapter{Foreword}
  \chapter{Introduction}
  \stopfrontmatter
  \startbodymatter
  \part{First Part}
  \chapter{First Chapter}
  \chapter{Second Chapter}
  \part{Second Part}
  \chapter{Third Chapter}
  \chapter{Fourth Chapter}
  \stopbodymatter
  \stoptext
 
 In SumatraPDF (which i use mostly) and Acrobat I see
 
   Foreword
   Introduction
   1 First Part
   1.1 First Chapter
   1.2 Second Chapter
   2 Second Part
   2.1 Third Chapter
   2.2 Fourth Chapter
 
 I remember a thread about bugged viewers so maybe your viewer is not ok.

Hans,

evince shows the same output. But the bookmarks are wrong in all viewers.

I’m afraid that issue 1 shows uncontained bookmarks. The first and
second code samples from #1 are wrong and the third code sample from #1
is right.

Issue 2 misplaced bookmarks and issue 3 shows wrong indented bookmarks.

Sorry but I’m afraid that the issues may be bugs.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issues with bookmarks

2015-07-27 Thread Pablo Rodriguez
On 07/27/2015 07:34 PM, Hans Hagen wrote:
 [...]
 Hm, the bookmarks themselves are okay but you mean the collapsing of 
 them. That is a side effect of lack of parts in the preceding block. I 
 have a fix for that but of course I don't know it there are other side 
 effects. There is only so much one can do with such structures.

Many thanks for the fast fix and the new beta, Hans.

As far as I have tested it, everything works fine, excepting that
chapters from a secition block with no given parts are collapsed in the
last part from previous block.

Minimal sample that shows the behaviour (colophon doesn’t actually
belong to part):

\setupinteraction[state=start]
\placebookmarks[part, chapter][part, chapter]
\setuphead[part][placehead=yes]
\starttext
\startbodymatter
\part{Part}
\chapter{Chapter}
\stopbodymatter
\startbackmatter
\chapter{Colophon}
\stopbackmatter
\stoptext

Could this be fixed too? (Each section block should restart bookmarks as
totally independent.)

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issues with bookmarks

2015-07-27 Thread Hans Hagen

On 7/27/2015 4:13 PM, Pablo Rodriguez wrote:

On 07/27/2015 02:47 PM, Hans Hagen wrote:

On 7/26/2015 8:01 PM, Pablo Rodriguez wrote:

Hans,

sorry for the long message, but I’m afraid that bookmarks have some issues.

1. When specifying sectionblocks, bookmarks for parts don’t contain
chapters as child elements:

  \setupinteraction[state=start]
  \placebookmarks[part, chapter][part, chapter]
  \setuphead[part][placehead=yes]
  \starttext
  \startfrontmatter
  \chapter{Foreword}
  \chapter{Introduction}
  \stopfrontmatter
  \startbodymatter
  \part{First Part}
  \chapter{First Chapter}
  \chapter{Second Chapter}
  \part{Second Part}
  \chapter{Third Chapter}
  \chapter{Fourth Chapter}
  \stopbodymatter
  \stoptext


In SumatraPDF (which i use mostly) and Acrobat I see

   Foreword
   Introduction
   1 First Part
   1.1 First Chapter
   1.2 Second Chapter
   2 Second Part
   2.1 Third Chapter
   2.2 Fourth Chapter

I remember a thread about bugged viewers so maybe your viewer is not ok.


Hans,

evince shows the same output. But the bookmarks are wrong in all viewers.

I’m afraid that issue 1 shows uncontained bookmarks. The first and
second code samples from #1 are wrong and the third code sample from #1
is right.

Issue 2 misplaced bookmarks and issue 3 shows wrong indented bookmarks.

Sorry but I’m afraid that the issues may be bugs.


Hm, the bookmarks themselves are okay but you mean the collapsing of 
them. That is a side effect of lack of parts in the preceding block. I 
have a fix for that but of course I don't know it there are other side 
effects. There is only so much one can do with such structures.


The other issue, the copyright one, is a result of putting something 
outside the blocks and as we default to frontpart you effectively end up 
with a mixed block structure in the lists


bodypart .. frontpart .. bodypart

\starttext
\setsectionblock[frontpart]
\hiddentitle{[Copyright1]}

fixes this. Anyway, I tried to make that kind of automatic now but it's 
a real ugly hack (one of these things a reader of the code will wonder 
about why it's there and also one of things i will forget about after a 
while).


I'll make a beta later. Not much testing at my end.

Hans







-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Change location of local texmf

2015-07-27 Thread John Kitzmiller

 The minimals use ~/texmf for the local tex folder. How to change it to 
 ~/dropbox/texmf?
 
 My ConTeXt installation is ~/dropbox/context.
 
 One option is:
 
  ln -s ~/dropbox/texmf ~/texmf
 
 Aditya

A fine option it is. Thank you 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Section heading colors lost with \startbodymatter

2015-07-27 Thread Rik Kabel
This worked (the numbers were darkgray and there was a red dot 
separator) until the last beta or two. With the new betas, those colors 
disappear in the bodymatter mode and in appendices mode


   % When start/stop bodymatter is enabled, the number color and
   %   separator colors are lost. When they are disabled, all is
   %   as expected
   %
   \defineseparatorset[reddot][][{\color[red]{·}}]
   \setuphead[chapter][sectionseparatorset=reddot,numbercolor=darkgray]
   \setuphead[section][sectionseparatorset=reddot,numbercolor=darkgray]
   \starttext
   % \startbodymatter % enable and lose colors
\startchapter[title={Chapter}]
  \startsection[title={Section}]
  \stopsection
\stopchapter
   % \stopbodymatter  % enable and lose colors
   \stoptext


--
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Problem with definelabel and footnotes

2015-07-27 Thread Rik Kabel
I have a document with hundreds of labels generated by \definelabel. 
They are used to index quotations in the text. Some of these occur in 
notes. Previously I had all such notes at the end of the book, as 
endnotes, but an editor requested a version with the notes as 
traditional footnotes. When the notes with labels appear in footnotes, 
the labels are not printed. The MWE below demonstrates the problem. I 
would expect to see a red 2 at the end of the first line of the footnote.


I have tried to use \defineenumeration instead of \definelabel, but I 
cannot get a comparable result to what I have with definelabel.


Is this a bug in the footnote typesetting, or a problem with my 
expectations?


   \setuppapersize[A6]
   \definelabel   [Qi][text=,alternative=inright,headcolor=red]
   \definenote[pagenote]
   \setupnotation [pagenote][way=bypage,numberconversion=set 2]
   \definenote[endnote]
   \setupnotation [endnote][way=bytext,location=none,conversion=numbers]
   \starttext
  {\Qi}An index in the margin.\par
  Text with a numbered endnote with an index\endnote{%
{\Qi}The numbered endnote with its index. The numbered endnote
 with its index. The numbered endnote with its index.%
  } and a marked pagenote with an index.\pagenote{%
{\Qi}The marked pagenote, but where is the index? The marked
 pagenote, but where is the index? The marked pagenote, but
 where is the index?%
  }\par
   \page
  The endnote follows.\par
  \placenotes[endnote]
   \stoptext

--
Rik Kabel
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Section heading colors lost with \startbodymatter

2015-07-27 Thread Rik Kabel

On 2015-07-27 19:28, Rik Kabel wrote:
This worked (the numbers were darkgray and there was a red dot 
separator) until the last beta or two. With the new betas, those 
colors disappear in the bodymatter mode and in appendices mode


% When start/stop bodymatter is enabled, the number color and
%   separator colors are lost. When they are disabled, all is
%   as expected
%
\defineseparatorset[reddot][][{\color[red]{·}}]
\setuphead[chapter][sectionseparatorset=reddot,numbercolor=darkgray]
\setuphead[section][sectionseparatorset=reddot,numbercolor=darkgray]
\starttext
% \startbodymatter % enable and lose colors
\startchapter[title={Chapter}]
  \startsection[title={Section}]
  \stopsection
\stopchapter
% \stopbodymatter  % enable and lose colors
\stoptext


--
Rik

Duh! All color is gone, not just section heads. New MWE:

   \starttext
  %\startbodymatter % enable and lose colors
Some text \color[red]{and some red text}.
  %\stopbodymatter  % enable and lose colors
   \stoptext

--
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Section heading colors lost with \startbodymatter

2015-07-27 Thread Rik Kabel

On 2015-07-27 22:50, Rik Kabel wrote:

On 2015-07-27 19:28, Rik Kabel wrote:
This worked (the numbers were darkgray and there was a red dot 
separator) until the last beta or two. With the new betas, those 
colors disappear in the bodymatter mode and in appendices mode


% When start/stop bodymatter is enabled, the number color and
%   separator colors are lost. When they are disabled, all is
%   as expected
%
\defineseparatorset[reddot][][{\color[red]{·}}]
\setuphead[chapter][sectionseparatorset=reddot,numbercolor=darkgray]
\setuphead[section][sectionseparatorset=reddot,numbercolor=darkgray]
\starttext
% \startbodymatter % enable and lose colors
\startchapter[title={Chapter}]
  \startsection[title={Section}]
  \stopsection
\stopchapter
% \stopbodymatter  % enable and lose colors
\stoptext


--
Rik

Duh! All color is gone, not just section heads. New MWE:

\starttext
  %\startbodymatter % enable and lose colors
Some text \color[red]{and some red text}.
  %\stopbodymatter  % enable and lose colors
\stoptext


Actually, some color can come through, as in the following example. The 
\setupmarginrules color remains even in bodymatter mode (the \setupbar 
color does not).


   \setupmarginrules[rulethickness=1pt]
   \setupmarginrules[1][rulecolor=red]
   \setupbar[overstrike][color=red]
   \define[1]\RR {\startmarginrule[1]\RRR#1\stopmarginrule}
   \definehighlight [RRR][style={\setbar[overstrike]}]
   \starttext
   % \startbodymatter % enable and lose colors
Some text \color[red]{and some red text}.\par

   Here is some text that shows all color is not gone.
  \RR{Here is some text that shows all color is not gone.
   Here is some text that shows all color is not gone.}
   Here is some text that shows all color is not gone.\par

   % \stopbodymatter  % enable and lose colors
   \stoptext

--
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___