Re: [NTG-context] hyperlinks within a PDF

2014-06-16 Thread Wolfgang Schuster

Am 16.06.2014 um 03:11 schrieb Robert Zydenbos cont...@zydenbos.net:

 Forgive me for what must seem a beginners’ question, but I really could not 
 find the solution in the documentation or the Wiki:
 
 How do I create hyperlinks within a PDF to another spot in the text of that 
 same PDF? I had expected I could do something like:
 
 Here is a \goto{link}[label:1].
 
 …
 
 \label[label:1]{This is what the link points to.}
 
 -- but I cannot find anything that resembles this in the documentation.


References for floats and sections can be set with the reference key while 
additional references
in the text can be set with the \reference, \textreference or \pagereference 
commands.


\setupexternalfigures[location=default]

\setupinteraction[state=start]

\starttext

\startchapter[referemce=sec:sectionlabel,title=Dummy chapter]

\input knuth

\startplacefigure[reference=fig:figurelabel,title=Dummy figure]
  \externalfigure[cow]
\stopplacefigure

\page

This is a page reference\pagereference[ref:pagereference]

\page

This is a text reference \textreference[ref:textreference]{Text reference}

\page

This is a normal reference \reference[ref:reference]{Normal reference}

\page

The is a \goto{link}[sec:sectionlabel] to \in{chapter}[sec:sectionlabel] on 
\at{page}[sec:sectionlabel].

The is a \goto{link}[fig:figurelabel] to \in{figure}[fig:figurelabel] on 
\at{page}[fig:figurelabel].

The is a \goto{link}[ref:pagereference] to \in[ref:pagereference] on 
\at{page}[ref:pagereference].

The is a \goto{link}[ref:textreference] to \in[ref:textreference] on 
\at{page}[ref:textreference].

The is a \goto{link}[ref:reference] to \in[ref:reference] on 
\at{page}[ref:reference].

\stopchapter

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


[NTG-context] bugs in page breaks with items

2014-06-16 Thread Pablo Rodriguez
Dear Hans,

sorry for bothering you with this, but today I found an ugly pagebreak
such as the following in a book I’m writting:

\showframe\showgrid
\setupbodyfont[pagella,15pt]
\starttext
\chapter{Chapter title}
\section{Section title}
\dorecurse{10}{\dorecurse{10}{Sentence. }\par}

\startitemize
\item \dorecurse{5}{This is an item. }
\item \dorecurse{15}{This is an item. }
\item \dorecurse{5}{This is an item. }
\stopitemize
\stoptext

The second item from the list has the page break in the sample above.
But if you comment the last item from the list, first two items fit in
the first page.

For some strange reason, ConTeXt is not able to leave the third item in
that list alone in the second page.

I have the strong impression that items themselves (not the paragraphs
they contain) are handled by ConTeXt with rules for widow and orphan lines.

The example above shows this. If you change recursion in the second item
from 15 to 10 (so that the item has three lines), the whole list is
moved to the second page. I think that the first item should remain on
the first page.

Another sample that shows the same behavior:

\showframe\showgrid
\setupbodyfont[pagella,15pt]
\starttext
\chapter{Chapter title}
\section{Section title}
\dorecurse{10}{\dorecurse{10}{Sentence. }\par}

\startitemize
\dorecurse{4}{\item This is an item.\par}
\stopitemize
\stoptext

If there are four items, all text fits in one page. If there are five
items, three items remain in the first page and two items move to the
second page (not only the last one, as it should).

But if there are six items in the list, the first four ones remain in
the first page and the other two move to the second page.

Could you fix these page breaks?

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
___


[NTG-context] latest beta, problem with natural tables and alignment character

2014-06-16 Thread Brian Landy
Hi, I was testing the latest beta (2014.06.15) and noticed I am getting 
incorrect output using natural tables with alignment characters.  I produced a 
small example that demonstrates the problem, and attached output created with 
the version I'm testing (bad.pdf) and my prior version (good.pdf, ConTeXt 
2013.06.10).  You can see in the bad file that ConTeXt doesn't properly align 
on the - and it introduces spurious spaces.

Best regards,
Brian



test.tex
Description: Binary data


good.pdf
Description: Adobe PDF document


bad.pdf
Description: Adobe PDF document



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] latest beta, problem with natural tables and alignment character

2014-06-16 Thread Hans Hagen

On 6/16/2014 11:51 PM, Brian Landy wrote:

Hi, I was testing the latest beta (2014.06.15) and noticed I am getting incorrect output 
using natural tables with alignment characters.  I produced a small example that 
demonstrates the problem, and attached output created with the version I'm testing 
(bad.pdf) and my prior version (good.pdf, ConTeXt 2013.06.10).  You can see in the bad 
file that ConTeXt doesn't properly align on the - and it introduces spurious 
spaces.


i'll check it ... btw, you don't need all these %'s after a multi-char \cs

-
  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] latest beta, problem with natural tables and alignment character

2014-06-16 Thread Hans Hagen

so instead of

\bTD[]{Bond}\eTD%

use this:

\bTD Bond \eTD


-
  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] latest beta, problem with natural tables and alignment character

2014-06-16 Thread Brian Landy
Almost all of the tables I generate via code, not by hand, so I found it more 
convenient to include a trailing % because I occasionally did run across an 
instance where it mattered, and wasn't (and am not) sufficiently skilled at 
TeX/ConTeXt to know how to predict those occurrences.

It's somewhat similar for always wrapping the contents in {}, I thought I had 
run into some cases in the past where it was necessary, so just include them 
always rather than manually add them with the content when they are required.  
Are there negative consequences (performance, memory usage, ...) to writing it 
as I did?  Or is the difference just cosmetic?

Best regards,
Brian

On Jun 16, 2014, at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:

 so instead of
 
 \bTD[]{Bond}\eTD%
 
 use this:
 
 \bTD Bond \eTD
 
 
 -
  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
 ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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
___