ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Sectioning. PDF bookmarks.
@ 2001-11-08 17:37 Giuseppe Bilotta
  2001-11-20  8:50 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Giuseppe Bilotta @ 2001-11-08 17:37 UTC (permalink / raw)


Hello,

this is a another area where ConTeXt needs refining. As far as I
know, ConTeXt only allows peculiar section names to be handled via
the \nolist command:

\chapter{Section name \nolist{with a part that does not go in the
TOC}}.

But consider that there are cases where the 'short' form is deeply
different from the long one. And there is another important issue,
which is PDF bookmarks, in which a lot of commands have to be
redefined to display properly (e.g. \dots has to be turned into
three dots).

I propose a structure like

\chapter[full] {Full name}
        [short]{Short name}
        [pdf]  {PDF bookmark name}

Second point, more tightly related to PDF bookmarking, is the
opportunity of a way to define how commands are to be interpreted
in bookmarks.

Say for example that I have a ConTeXt document where I define

\definesynonyms[abbreviation][abbreviations][\infull]
\setupsynonyms[abbreviation][textstyle=\smallcaps]
\abbreviation[RPG]{rpg}{Role Playing Game}

This gives me a command \RPG that I can use throughout my document
to display rpg (in small caps, because this is the style I use for
abbreviation, and here again we get back to the problem of \sc
having to turn lowercase into uppercase when small caps are not
active). But if I have a title like

\chapter{Pregnancy in \RPG s}

I want this to display as

Pregnancy in RPGs

in the bookmarks. Instead, what I get is an 'undefined command
sequence'. How to deal with it?

--
Giuseppe "Oblomov" Bilotta


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

* Re: Sectioning. PDF bookmarks.
  2001-11-08 17:37 Sectioning. PDF bookmarks Giuseppe Bilotta
@ 2001-11-20  8:50 ` Hans Hagen
  2001-11-20  9:35   ` Re[2]: " Giuseppe Bilotta
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2001-11-20  8:50 UTC (permalink / raw)
  Cc: ntg-context

At 06:37 PM 11/8/2001 +0100, Giuseppe Bilotta wrote:
>Hello,
>
>this is a another area where ConTeXt needs refining. As far as I
>know, ConTeXt only allows peculiar section names to be handled via
>the \nolist command:
>
>\chapter{Section name \nolist{with a part that does not go in the
>TOC}}.
>
>But consider that there are cases where the 'short' form is deeply
>different from the long one. And there is another important issue,
>which is PDF bookmarks, in which a lot of commands have to be
>redefined to display properly (e.g. \dots has to be turned into
>three dots).
>
>I propose a structure like
>
>\chapter[full] {Full name}
>         [short]{Short name}
>         [pdf]  {PDF bookmark name}

Why not use:

\chapter {Some complicates TeX code}

\bookmark {Simplfied tex code}

so, the \bookmark command overloads the previous one

The more complex construct that you ask for would make the chapter command 
pretty complicated, esp since currently also things like

\chapter Some TeX code

is also supported

I'm thinking of making a \startchapter ... \stopchapter alternatives which 
takes key/val paits but that;s on the todo list.

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] 3+ messages in thread

* Re[2]: Sectioning. PDF bookmarks.
  2001-11-20  8:50 ` Hans Hagen
@ 2001-11-20  9:35   ` Giuseppe Bilotta
  0 siblings, 0 replies; 3+ messages in thread
From: Giuseppe Bilotta @ 2001-11-20  9:35 UTC (permalink / raw)
  Cc: ntg-context

Tuesday, November 20, 2001 Hans Hagen wrote:
>>
>>I propose a structure like
>>
>>\chapter[full] {Full name}
>>         [short]{Short name}
>>         [pdf]  {PDF bookmark name}

HH> Why not use:

HH> \chapter {Some complicates TeX code}

HH> \bookmark {Simplfied tex code}

HH> so, the \bookmark command overloads the previous one

Oh, I didn't know \bookmark commands would overload the previous
--will look into this now that I got the latest ConTeXt and
documentation.

HH> I'm thinking of making a \startchapter ... \stopchapter alternatives which 
HH> takes key/val paits but that;s on the todo list.

Let us know! 8-)

--
Giuseppe "Oblomov" Bilotta


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

end of thread, other threads:[~2001-11-20  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-08 17:37 Sectioning. PDF bookmarks Giuseppe Bilotta
2001-11-20  8:50 ` Hans Hagen
2001-11-20  9:35   ` Re[2]: " Giuseppe Bilotta

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