ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bookmarks, accented caracters, breaking URLs
@ 2003-12-17 19:07 Tobias Burnus
  2003-12-18  7:48 ` Hans Hagen
  2003-12-18 11:52 ` Adam Lindsay
  0 siblings, 2 replies; 5+ messages in thread
From: Tobias Burnus @ 2003-12-17 19:07 UTC (permalink / raw)


Hello,

(first: Thanks, Hans for the answer, I added some space in
 \unknownreference and a $\blacktriangleright$, but otherwise I won't
  miss any reference anymore; fingers crossed.)


(a) I fail somehow to produce bookmarks (or 'outlines') for the Acrobat
Reader. I tried
  \placebookmarks[chapter,section,subsection]
  \starttext
  \chapter{foo}
  \stoptext
but the outline is completely empty.
This is with pdfeTeX (Web2C 7.4.5) 3.14159-1.10b-2.1, ConTeXt ver:2003.11.27
and acroread 5.0.5 for Linux.

I don't insist on bookmarks, but I think they are nice if you get them
for free.



(b) Accented characters in bookmarks (I think) or the 'general info' dialog
An {\"a} is shown as 'dobuildtextaccent char 127 a'.

Having a 'ä' would be nice since then the indexer would find this.
Since it is only 'Universität' (a proper name) this is not an important
search term, though.



(c) With some URLs in my literature reference list, I run into the
problem that they are not (properly) hyphenized. I use
   \def\gotoURL#1{\useURL[foo][#1]\goto{\url[foo]}[url(foo)]}
for this purpose.

I would like to see a linebreak at '/' and in long words (with out
printing a '-').
I get ('|' denotes the column width and the page width):
                                      |             |
                            DOI: 10.1016/S0009-2614(01)01361-6
                                      |             |
                                      |               |
http://mathworld.wolfram.com/CylindricalCoordinates.
html.



Tobias

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bookmarks, accented caracters, breaking URLs
  2003-12-17 19:07 bookmarks, accented caracters, breaking URLs Tobias Burnus
@ 2003-12-18  7:48 ` Hans Hagen
  2003-12-18 11:52 ` Adam Lindsay
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2003-12-18  7:48 UTC (permalink / raw)


At 20:07 17/12/2003, you wrote:
>Hello,
>
>(first: Thanks, Hans for the answer, I added some space in
>  \unknownreference and a $\blacktriangleright$, but otherwise I won't
>   miss any reference anymore; fingers crossed.)

an option is to move the mark in the margin, \inleftmargin{...} or 
something similar

Hans  

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bookmarks, accented caracters, breaking URLs
  2003-12-17 19:07 bookmarks, accented caracters, breaking URLs Tobias Burnus
  2003-12-18  7:48 ` Hans Hagen
@ 2003-12-18 11:52 ` Adam Lindsay
  2003-12-18 13:58   ` Tobias Burnus
  1 sibling, 1 reply; 5+ messages in thread
From: Adam Lindsay @ 2003-12-18 11:52 UTC (permalink / raw)


Tobias Burnus said this at Wed, 17 Dec 2003 20:07:56 +0100:

>(a) I fail somehow to produce bookmarks (or 'outlines') for the Acrobat
>Reader. I tried
>  \placebookmarks[chapter,section,subsection]
>  \starttext
>  \chapter{foo}
>  \stoptext
>but the outline is completely empty.

Tobias, 
Add:
  \setupinteraction[state=start]

...works for me. I kept tripping on that one, and I'm not sure I'd agree
with the choice made.

Also, you might like to add this at the same time, to make the bookmarks
visible by default:
  \setupinteractionscreen[option=bookmark]

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl@comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bookmarks, accented caracters, breaking URLs
  2003-12-18 11:52 ` Adam Lindsay
@ 2003-12-18 13:58   ` Tobias Burnus
  2003-12-19 17:31     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Burnus @ 2003-12-18 13:58 UTC (permalink / raw)


Hello,

On Thu, Dec 18, 2003 at 11:52:11AM +0000, Adam Lindsay wrote:
> >  \placebookmarks[chapter,section,subsection]
> Add:
>   \setupinteraction[state=start]
> ...works for me.
Ok, now I finally figured out what went wrong in my real document:
I had first \placebookmarks and then \setupinteraction. It has to be the
other way round!
Thanks a lot for the hint!

> I kept tripping on that one, and I'm not sure I'd agree
> with the choice made.
I agree that it is counter-intuitive that one needs to have
\setupinteraction in order to get bookmarks placed. But that the order
matters is even worse.

(Playing around with Acrobat 6, I saw that using /C [colorvalues] and /F n,
n=1...5, one could even have the bookmark items in color or in
italic/bold/..., if one wants to play ...)

I tested the accented characters again (not including bookmarks):
  \setupinteraction[state=start,title={F\"ur / Na\"\i ve}]
  \placebookmarks[chapter]
  \setupinteractionscreen[option=bookmark]
  \starttext
  \chapter{F\"ur / Na\"\i ve}
  \stoptext

I expect 'Für / Naïve' but I get

a) in the bookmarks:   
   'Für / Nadobuildtextaccebt char 127 {char "10}ve'
b) in the document info dialogue:
   'Fdobuildtextaccent char 127 ur / Nadobuildtextaccebt char 127 {char "10}ve'

If I replace {\"\i} by \idiaeresis, nothing changes for \chapter and
bookmarks, but I get an error message for 'title='. Puzzled.


Tobias

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bookmarks, accented caracters, breaking URLs
  2003-12-18 13:58   ` Tobias Burnus
@ 2003-12-19 17:31     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2003-12-19 17:31 UTC (permalink / raw)


At 14:58 18/12/2003, you wrote:

>Ok, now I finally figured out what went wrong in my real document:
>I had first \placebookmarks and then \setupinteraction. It has to be the
>other way round!
>Thanks a lot for the hint!
>
> > I kept tripping on that one, and I'm not sure I'd agree
> > with the choice made.
>I agree that it is counter-intuitive that one needs to have
>\setupinteraction in order to get bookmarks placed. But that the order
>matters is even worse.

this is one of the few times that order is important; it has to do with the 
way things are loaded and need to be set up (an alternative could be:

\appendtoks ... (place bookmarks) \to \everystarttext

but then it may interfere with other things

keep in mind that bookmarks are non typographic thingies, and as sucn not 
part of the page stream

>(Playing around with Acrobat 6, I saw that using /C [colorvalues] and /F n,
>n=1...5, one could even have the bookmark items in color or in
>italic/bold/..., if one wants to play ...)

some day ... bookmarks will be snippets of typeset text (i hope)

>I tested the accented characters again (not including bookmarks):
>   \setupinteraction[state=start,title={F\"ur / Na\"\i ve}]
>   \placebookmarks[chapter]
>   \setupinteractionscreen[option=bookmark]
>   \starttext
>   \chapter{F\"ur / Na\"\i ve}
>   \stoptext
>
>I expect 'Für / Naïve' but I get
>
>a) in the bookmarks:
>    'Für / Nadobuildtextaccebt char 127 {char "10}ve'
>b) in the document info dialogue:
>    'Fdobuildtextaccent char 127 ur / Nadobuildtextaccebt char 127 {char 
> "10}ve'
>
>If I replace {\"\i} by \idiaeresis, nothing changes for \chapter and
>bookmarks, but I get an error message for 'title='. Puzzled.

hm, make me a small example and i'll have a look

Hans  

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-12-19 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-17 19:07 bookmarks, accented caracters, breaking URLs Tobias Burnus
2003-12-18  7:48 ` Hans Hagen
2003-12-18 11:52 ` Adam Lindsay
2003-12-18 13:58   ` Tobias Burnus
2003-12-19 17:31     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).