ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Sections with additional dot: a little request
@ 2006-02-18  4:32 Mojca Miklavec
  2006-02-18 11:53 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Mojca Miklavec @ 2006-02-18  4:32 UTC (permalink / raw)


Hello Hans,

The sections in Slovenian have to be numbered wih dots at the end:

1. Introduction
2. Contents
2.1. Subsection
2.1.1. Subsubsection
2.1.2. Subsubsection
2.2. Subsection
2.3. Subsection
3. Bibliography

rather than

1  Introduction
2  Contents
2.1  Subsection
2.1.1  Subsubsection
2.1.2  Subsubsection
2.2  Subsection
2.3  Subsection
3  Bibliography

There are many commands in ConTeXt which support "delimiter" key, but
here the delimiter already stands for the dot delimiting subsequent
numbers in this case.

There's a possible solution listed on
http://wiki.contextgarden.net/Dotted_number_in_caption, ie:

\def\Dot#1{#1.}
\setuphead[section][numbercommand=\Dot]
\setuplist[section][numbercommand=\Dot]
\setuplist[subsection][numbercommand=\Dot]
\setuplist[subsubsection][numbercommand=\Dot]

but this cannot be built into "languagespecifics" as such since it
interferes with user-defined "numbercommands" (if the user defines his
own numbercommand, the dot would disapear).

This is low-priority (can be circumvented and done properly if
needed), but I would be very glad if an additional keyword & its
setting could make its way into "languagespecifics" once in the future
if possible.

LaTeX people did that (not aplicable to ConTeXt at all):

\renewcommand\thepart         {\@Roman\c@part}
\renewcommand\thesection      {\@arabic\c@section.}
\renewcommand\thesubsection   {\thesection\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}

\renewcommand\appendix{\par
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
  \renewcommand\thesection{\@Alph\c@section.}}


Also, Part 1 may be written as "1. poglavje" (with dot) or "Poglavje
1" (without dot), so there has to remain an option to remove a dot
only for a certain title if necessary.

The only online reference I know (list of mistakes in babel) is
written in Slovenian
http://nl.ijs.si/gnusl/tex/tslovene/slolang/node98.html-l2#SECTION0002031400000000000000
but I guess that the content can at least partially be evident from
the TeX sources.

Once again the same comment as the last time with itemizing. If this
will ever be implemented and added, it will change the behaviour (and
break the old behaviour in a way), but I guess that there are not so
many people typesetting Slovenian in ConTeXt yet. There will be less
harm if a few old documents are fixed than if tons of other newer
documents are typeset wrong.

Thanks a lot,
    Mojca

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

end of thread, other threads:[~2006-02-20  8:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-18  4:32 Sections with additional dot: a little request Mojca Miklavec
2006-02-18 11:53 ` Hans Hagen
2006-02-19 15:38   ` Mojca Miklavec
2006-02-20  8:37     ` 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).