ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bookmarks
@ 2010-05-21 10:17 Andreas Harder
  0 siblings, 0 replies; 9+ messages in thread
From: Andreas Harder @ 2010-05-21 10:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

what is wrong with the following example? I would expect "Erstes Kapitel" etc. instead of "Kapitel Eins" in the bookmarks. Further "Inhaltsverzeichnis" don‘t appear in the bookmarks.

\setupinteraction[state=start]
\placebookmarks[all]

\starttext
\starttitle[title=Inhaltsverzeichnis,bookmark=Inhaltsverzeichnis]
  \placecombinedlist[content]
\stoptitle
\startchapter[title=Kapitel Eins,bookmark=Erstes Kapitel]
  \input tufte
\stopchapter
\startchapter[title=Kapitel Zwei,bookmark=Zweites Kapitel]
  \input tufte
\stopchapter
\startchapter[title=Kapitel Drei,bookmark=Drittes Kapitel]
  \input tufte
\stopchapter
\stoptext

Thanks in advance

	Andreas
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: bookmarks
  2002-02-03 14:24   ` bookmarks Giuseppe Bilotta
@ 2002-02-04 11:18     ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2002-02-04 11:18 UTC (permalink / raw)
  Cc: ntg-context

At 03:24 PM 2/3/2002 +0100, Giuseppe Bilotta wrote:

>HH> [alternatively you can do things like
>
>HH>    \appendtoks\def\mycs{WHOW}\to\everysanitize
>
>HH> to get your own clean up in bookmarks]
>
>This solution doesn't seem to work (either because \everysanitize
>is not issued by the PDF bookmark sanitizer or because it does not
>become effective soon enough). I found that a possible alternative
>is

hm, before i look into it someone should make me a minimal test file (never 
use bookmarks myself)

>\immediate\writeutility{%
>     c \string\def\string\mycs{whatever we want}%
>}

that is a real terrible hack, isn't it?

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
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re: bookmarks
  2002-02-01  9:11 ` bookmarks Hans Hagen
@ 2002-02-03 14:24   ` Giuseppe Bilotta
  2002-02-04 11:18     ` bookmarks Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Giuseppe Bilotta @ 2002-02-03 14:24 UTC (permalink / raw)
  Cc: ntg-context

Friday, February 01, 2002 Hans Hagen wrote:

>>i want to bookmark
>>
>>   \def\mycs{Abbreviation}
>>
>>   \chapter{\mycs\ Heading}
>>
>>but it fails while processing file.tuo.  \sanitizePDFdocencoding is not happy
>>about something, it says "! Undefined control sequence." when it hits \mycs.

HH> the \def\my... needs to go before the \placebookmarks, otherwise it is 
HH> indeed unknown; tex works top-bottom

[snip]

HH> [alternatively you can do things like

HH>    \appendtoks\def\mycs{WHOW}\to\everysanitize

HH> to get your own clean up in bookmarks]

This solution doesn't seem to work (either because \everysanitize
is not issued by the PDF bookmark sanitizer or because it does not
become effective soon enough). I found that a possible alternative
is

\immediate\writeutility{%
    c \string\def\string\mycs{whatever we want}%
}

--
Giuseppe "Oblomov" Bilotta


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

* bookmarks
       [not found] <200201312002.VAA20337@smail.let.uu.nl>
@ 2002-02-01  9:11 ` Hans Hagen
  2002-02-03 14:24   ` bookmarks Giuseppe Bilotta
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2002-02-01  9:11 UTC (permalink / raw)


At 09:02 PM 1/31/2002 +0100, owner-ntg-context@let.uu.nl wrote:

>hi all
>
>is it possible to use typeset chapter headings and pdf bookmarks at the same
>time?
>
>
>i want to bookmark
>
>   \def\mycs{Abbreviation}
>
>   \chapter{\mycs\ Heading}
>
>but it fails while processing file.tuo.  \sanitizePDFdocencoding is not happy
>about something, it says "! Undefined control sequence." when it hits \mycs.

the \def\my... needs to go before the \placebookmarks, otherwise it is 
indeed unknown; tex works top-bottom

also, it may make sense to use \abbreviation[mycs]{...} since those 
commands are normally taken care of in decent ways

[alternatively you can do things like

   \appendtoks\def\mycs{WHOW}\to\everysanitize

to get your own clean up in bookmarks]

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
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re: bookmarks
  2001-04-05 22:57 ` bookmarks Pierre Goossens
@ 2001-04-09 14:11   ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2001-04-09 14:11 UTC (permalink / raw)
  Cc: ntg-context

At 12:57 AM 4/6/01 +0200, Pierre Goossens wrote:

>\pdfcatalog{/PageMode /UseOutlines} 

This is dangerous code. If possible use the setup... commands since by
overloading the \pdf's data other features may not work. 

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
-------------------------------------------------------------------------


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

* Re: bookmarks
  2001-04-05  5:39 bookmarks James H. Cloos Jr.
@ 2001-04-05 22:57 ` Pierre Goossens
  2001-04-09 14:11   ` bookmarks Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Goossens @ 2001-04-05 22:57 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]

At 00:39 5-4-01 -0500, James H. Cloos Jr. wrote:
>I'm not having any success getting bookmarks to work.
>

%%%%%%%%%%%%%%%%%%%%%%%%% start %%%%%%%%%%%%%%%%%%%%%%%%%
\pdfcatalog{/PageMode /UseOutlines} 

%--- Just add this ---
\setupinteraction[state=start]

% -- Opens Acrobat Reader with the bookmark window turned on ---
\setupinteractionscreen[option=bookmark]

\placebookmarks
        [chapter]

\starttext

\startbodymatter

\chapter[I]{Chapter I}  % --- Not sure what the [I] does ---

% --- Only usefull if you want the bookmark to have ---
% --- a different name than the chapter title.      ---
\bookmark{This is chapter 1}

\input Chapter-I

% each subsequent chapter input just like the first

\chapter{Chapter II}

% --- Again, not really necessary. ---
\bookmark{This is chapter 2}

\input Chapter-II

\chapter{Chapter III}

\input Chapter-III

% --- There is still a bookmark. See for yourself. ---

\stopbodymatter

\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%% end %%%%%%%%%%%%%%%%%%%%%%%%%%

That should do it.

With kind regards.

Pierre

[-- Attachment #2: bookmark.pdf --]
[-- Type: application/pdf, Size: 14198 bytes --]

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

* bookmarks
@ 2001-04-05  5:39 James H. Cloos Jr.
  2001-04-05 22:57 ` bookmarks Pierre Goossens
  0 siblings, 1 reply; 9+ messages in thread
From: James H. Cloos Jr. @ 2001-04-05  5:39 UTC (permalink / raw)


I'm not having any success getting bookmarks to work.

Goal is to have one for each chapter (plus optionally one for the
front matter).  I do not, however, want a table of contents.

I've tried several variations on the theme, based on the archives to
this list, but none have worked.

Current interation is:

%%%%%%%%%%%%%%%%%%%%%%%%% start %%%%%%%%%%%%%%%%%%%%%%%%%
\pdfcatalog{
/PageMode /UseOutlines
}

\placebookmarks
        [chapter]

\starttext

\startbodymatter

\chapter[I]{Chapter I}
\bookmark{Chapter I}
\input Chapter-I

% each subsequent chapter input just like the first

\stopbodymatter

\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%% end %%%%%%%%%%%%%%%%%%%%%%%%%%

Using \tracebookmarkstrue does nothing

Versions are:  TeXExec 2.5, TeXUtil 7.3, ConTeXt ver 2001.2.27
fnt 2001.4.3 and pdftex 3.14159-14f-released.

I've tried a second [chapter] to \placebookmarks, a [chapter]
to \bookmark, and some other things I've already forgotten. :/

-JimC
-- 
James H. Cloos, Jr.  <http://jhcloos.com/public_key>     1024D/ED7DAEA6 
<cloos@jhcloos.com>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6


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

* Re: Bookmarks
  2000-06-13 19:52   ` Bookmarks Hans Hagen
@ 2000-06-23  9:11     ` Mr. Wang Lei
  0 siblings, 0 replies; 9+ messages in thread
From: Mr. Wang Lei @ 2000-06-23  9:11 UTC (permalink / raw)
  Cc: NTG-ConTeXt

On Tue, 13 Jun 2000, Hans Hagen wrote:

> >\chapter{\CONTEXT}
> >
> >the bookmarks will give a lot of control characters such like
> >"CCMRkern -.0333em....." while 
> 
> You can add a \bookmark{ConTeXt} command below the chapter one, that one
> will end up in the bookmark list. 

Today I may be find a bug. When I use the \bookmark{ConTeXt} in the  
following way, it still get "CCMRkern -.0333em....." in bookmark.

\Chapter{\CONTEXT\ Chapter}\bookmark{ConTeXt Chapter}

\section{\CONTEXT\ Section}\bookmark{ConTeXt Section}

texexec give the message: 

chapter        : 1 \CONTEXT \ Chapter 
section        : 1.1 \CONTEXT \ Section
system         : clashing bookmarks: ConTeXt Section

If I put some lines between the \chapter and \section command, suck like:

\Chapter{\CONTEXT\ Chapter}\bookmark{ConTeXt Chapter}                           

I need put some character here to make the bookmark correct.

\section{\CONTEXT\ Section}\bookmark{ConTeXt Section}        

The result is correct. 

> >\chapter{\TEX}  
> 
> This is because there is a simplified command available. You can define one
> by:
> 
> \appendtoks\def\CONTEXT{ConTeXt}\to\simplifiedcommands

It doesn't work. I wonder if I need put it to the core-mis.tex and
rebuild the format? 

Wang

------------------------------------------------------------------------
Mr. Wang Lei                      Phone: 86-10-62616670 
                                  Email: lwang@amath8.amt.ac.cn
Institute of Applied Mathematics         leiwang@btamail.net.cn
Chinese Academy of Science        Address: P.O.Box 2734, Beijing, 100080  
------------------------------------------------------------------------                                                 


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

* Re: Bookmarks
       [not found] ` <Pine.LNX.4.10.10006122142090.1706-100000@AMath8.amt.ac.cn>
@ 2000-06-13 19:52   ` Hans Hagen
  2000-06-23  9:11     ` Bookmarks Mr. Wang Lei
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2000-06-13 19:52 UTC (permalink / raw)
  Cc: ntg-context

At 10:14 PM 6/12/2000 +0800, Mr. Wang Lei wrote:

>\chapter{\CONTEXT}
>
>the bookmarks will give a lot of control characters such like
>"CCMRkern -.0333em....." while 

You can add a \bookmark{ConTeXt} command below the chapter one, that one
will end up in the bookmark list. 

>\chapter{\TEX}  

This is because there is a simplified command available. You can define one
by:

\appendtoks\def\CONTEXT{ConTeXt}\to\simplifiedcommands

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


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

end of thread, other threads:[~2010-05-21 10:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21 10:17 Bookmarks Andreas Harder
     [not found] <200201312002.VAA20337@smail.let.uu.nl>
2002-02-01  9:11 ` bookmarks Hans Hagen
2002-02-03 14:24   ` bookmarks Giuseppe Bilotta
2002-02-04 11:18     ` bookmarks Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2001-04-05  5:39 bookmarks James H. Cloos Jr.
2001-04-05 22:57 ` bookmarks Pierre Goossens
2001-04-09 14:11   ` bookmarks Hans Hagen
     [not found] <3.0.6.32.20000610202648.017bd970@pop.wxs.nl>
     [not found] ` <Pine.LNX.4.10.10006122142090.1706-100000@AMath8.amt.ac.cn>
2000-06-13 19:52   ` Bookmarks Hans Hagen
2000-06-23  9:11     ` Bookmarks Mr. Wang Lei

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).