Hyperlinks to locations in other documents
Hi, I am trying to get a group of documents to link together. The references to the other document work but the hyperlinks only open the document on the first page. What am I doing wrong? The linktest1 has links to testdoc2. For those trying them you may need to change the font part since my fonts are non standard (subject of other problems). Key lines from testdoc1.tex are \useexternaldocument[testdoc][testdoc2][This document is a test link] \goto{contents}[testdoc::contents] And key lines from testdoc2.tex are \page[yes] \section[contents]{Contents List} TIA -- Nigel
Hello all. Apologies for this question which I'm sure has an answer in the manual but I have been trying to understand the figures chapter for a while now and can't get my head around it. (Also looked in the mail archives on http://ml-archives.mini.pw.edu.pl/ntg-context.html but the search facility is still returning weird results.) When I use \placefigure[left] the top of the figure is aligned with the second line of the text. I would like it to be aligned with the first line. If you look at the example on page 243/4 of the manual you can see it happening there too: \placefigure[left]{none}{\externalfigure[bkoe]} Some text here... As is seen in the manual, the cow is aligned with the second line of text, rather than the first. Can anyone help me to move it up? Thank you. Duncan dh@capdm.com
I wrote:
When I use \placefigure[left] the top of the figure is aligned with the second line of the text. I would like it to be aligned with the first line. If you look at the example on page 243/4 of the manual you can see it happening there too:
And then immediately afterwards I tried \setupfloats[spacebefore=,spaceafter=] and the unwanted space went away. Sorry for the noise! Duncan dh@capdm.com
On Tue, 12 Aug 2003 12:11:47 +0100
"Duncan Hothersall"
As is seen in the manual, the cow is aligned with the second line of text, rather than the first. Can anyone help me to move it up?
Try adjusting spacing with \setupfloats. I've used this in the past: \setupfloats[spacebefore=0pt, spaceafter=0pt, sidespacebefore=0pt, sidespaceafter=0pt, margin=4pt] -Bill -- Sattre Press The King in Yellow http://sattre-press.com/ by Robert W. Chambers info@sattre-press.com http://kiy.sattre-press.com/
I'm having another problem with \placefigure[left] and this time I'm pretty sure I can't solve it myself. I'm using ConTeXt ver 2003.7.21 on a TeXlive base with pdfetex 3.14159-1.00b-pretest-20020211-2.1 (Web2C 7.3.7). The following source overlaps the text on top of the graphic rather than wrapping it around: --ConTeXt start-- \setupoutput[pdftex]\setuppapersize[A4][A4] \useexternalfigure[HWUnodic][hwu-bk-nodic][width=9mm] \setupfloats[spacebefore=,spaceafter=] \starttext \placefigure[left]{none}{\externalfigure[HWUnodic]} {\bf Do not use a dictionary. You do not need to know the meaning of every word to do this task.} \stoptext --ConTeXt end-- If I remove the {\bf and the closing } then the graphic displays properly. If I add a \par before the closing } it works properly too. However, since I'm generating the ConTeXt code from XML, I can't do either of those work-arounds. Interestingly, it remains broken even if the \bf isn't there, just the open and close braces. So presumably this is something to do with the expansion of what comes after the \placefigure? Is this a bug? I have attached the graphic in case people are able to test this for themselves. Many thanks, Duncan dh@capdm.com
On Tue, 12 Aug 2003 15:31:44 +0100
"Duncan Hothersall"
Interestingly, it remains broken even if the \bf isn't there, just the open and close braces. So presumably this is something to do with the expansion of what comes after the \placefigure?
I ran into this also and wrote:
I've found that it has to do with the content of my text. Any paragraph beginning with a block does not flow properly. The best workaround I have found is to insert a \strut at the beginning of the text where it starts with a block.
To which Hans replied:
right, this is a known weakness: if you start a par with a \command, you may end up with yes/no indentation or some everypar interference (can for instance be due to the fact that the command can start a group and aftergroup things can be messed up), your \strut solution is ok (\indent\ noindent or \dontleavehmode is also ok), since they start the paragraph
So begin your text with: \strut {\bf ....} or one of the other commands. \strut is a zero-width character. -Bill -- Sattre Press The King in Yellow http://sattre-press.com/ by Robert W. Chambers info@sattre-press.com http://kiy.sattre-press.com/
Bill wrote:
So begin your text with:
\strut {\bf ....}
or one of the other commands. \strut is a zero-width character.
Excellent, thanks. I had experimented with just {}, and even \,\! but the problem remained. This solves it, thanks a lot. Duncan dh@capdm.com
At 12:11 12/08/2003 +0100, Duncan Hothersall wrote:
When I use \placefigure[left] the top of the figure is aligned with the second line of the text. I would like it to be aligned with the first line. If you look at the example on page 243/4 of the manual you can see it happening there too:
\placefigure[left]{none}{\externalfigure[bkoe]} Some text here...
As is seen in the manual, the cow is aligned with the second line of text, rather than the first. Can anyone help me to move it up?
this is explained in details.pdf (keywords, key/val pairs) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Guys, Sorry to repost this but do the rest of you manage to hyperlink to locations in other documents successfully, this is a small annoyance which I would really like to solve. Best Regards -- Nigel Hi, I am trying to get a group of documents to link together. The references to the other document work but the hyperlinks only open the document on the first page. What am I doing wrong? The linktest1 has links to testdoc2. For those trying them you may need to change the font part since my fonts are non standard (subject of other problems). Key lines from testdoc1.tex are \useexternaldocument[testdoc][testdoc2][This document is a test link] \goto{contents}[testdoc::contents] And key lines from testdoc2.tex are \page[yes] \section[contents]{Contents List} TIA -- Nigel
At 09:58 15/08/2003 +0100, you wrote:
Guys, Sorry to repost this but do the rest of you manage to hyperlink to locations in other documents successfully, this is a small annoyance which I would really like to solve.
Best Regards -- Nigel
Hi, I am trying to get a group of documents to link together. The references to the other document work but the hyperlinks only open the document on the first page.
What am I doing wrong?
The linktest1 has links to testdoc2. For those trying them you may need to change the font part since my fonts are non standard (subject of other problems).
Key lines from testdoc1.tex are \useexternaldocument[testdoc][testdoc2][This document is a test link] \goto{contents}[testdoc::contents]
And key lines from testdoc2.tex are \page[yes] \section[contents]{Contents List}
I made a small test file \setupoutput[pdftex] \pdfcompresslevel=0 \setupinteraction[state=start] \starttext \chapter[one]{One} \goto {document} [testtest::] \goto {chapter 2} [testtest::two] \chapter[two]{Two} nothing here \stoptext (and its mirror testtest.tex) Now, somehow this works in acrobat 5 but not in acrobat 6! Creating a link in acrobat 6 manually also does not work. Looks like a bug in acrobat 6, but before i look into it in more detail i want confirmation from other users (an option is to cross link docs by page number) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans,
From: Hans Hagen
At 09:58 15/08/2003 +0100, you wrote: Guys, Sorry to repost this but do the rest of you manage to hyperlink to locations in other documents successfully, this is a small annoyance which I would really like to solve.
Best Regards -- Nigel
Hi, I am trying to get a group of documents to link together. The references to the other document work but the hyperlinks only open the document on the first page.
What am I doing wrong?
The linktest1 has links to testdoc2. For those trying them you may need to change the font part since my fonts are non standard (subject of other problems).
Key lines from testdoc1.tex are \useexternaldocument[testdoc][testdoc2][This document is a test link] \goto{contents}[testdoc::contents]
And key lines from testdoc2.tex are \page[yes] \section[contents]{Contents List}
I made a small test file
\setupoutput[pdftex] \pdfcompresslevel=0
\setupinteraction[state=start]
\starttext
\chapter[one]{One}
\goto {document} [testtest::]
\goto {chapter 2} [testtest::two]
\chapter[two]{Two}
nothing here
\stoptext
(and its mirror testtest.tex)
Now, somehow this works in acrobat 5 but not in acrobat 6! Creating a link in acrobat 6 manually also does not work. Looks like a bug in acrobat 6, but before i look into it in more detail i want confirmation from other users
I confirm that the problem does appear to be Acrobat which at 4.05 does the expected actions and at 6 does not. I no longer have 5 to test.
(an option is to cross link docs by page number)
I haven't tried cross linking by page numbers because I do not think I know how to do it! Thanks very much. Nigel
Hi,
Hans Hagen
I made a small test file \setupoutput[pdftex] \pdfcompresslevel=0 \setupinteraction[state=start] \starttext \chapter[one]{One} \goto {document} [testtest::] \goto {chapter 2} [testtest::two] \chapter[two]{Two} nothing here \stoptext
(and its mirror testtest.tex)
Now, somehow this works in acrobat 5 but not in acrobat 6! Creating a link in acrobat 6 manually also does not work. Looks like a bug in acrobat 6, but before i look into it in more detail i want confirmation from other users
Same here. The document gets opened, but the page with "Chapter 2" is not selected. Both Acrobat/Adobe reader on Mac OS X. Patrick
participants (5)
-
Bill McClain
-
Duncan Hothersall
-
Hans Hagen
-
Nigel King
-
Patrick Gundlach