Sections with additional dot: a little request
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#SECTION0002031400... 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
Mojca Miklavec wrote:
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.
a quick way out: \setuplabeltext [sl] [chapter={{},{.}}] \starttext \chapter{whatever} \mainlanguage[sl] \chapter{whatever} \stoptext (we can extend that to other numbered things it is no problem to provide some language dependent conversion handling, but then i'd like to implement everything at once (i know that hungarian also has special demands). so ... best is t o start meking a 'document' with proposed extensions (to which other users can add their wishes); most of what you need, is not that hard to implement, but i'd like to do it all at once 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.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2/18/06, Hans Hagen wrote:
Mojca Miklavec wrote:
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.
a quick way out:
\setuplabeltext [sl] [chapter={{},{.}}]
Thanks a lot. It's an interesting trick.
it is no problem to provide some language dependent conversion handling, but then i'd like to implement everything at once (i know that hungarian also has special demands).
so ... best is t o start meking a 'document' with proposed extensions (to which other users can add their wishes); most of what you need, is not that hard to implement, but i'd like to do it all at once
Wiki is a perfect place for such a thing. (I also have some other half-written page about language support to be placed there.) I can only hope that anyone is reading this and will reply or leave a note on the wiki about his or her requests. Thanks, Mojca
Mojca Miklavec wrote:
\setuplabeltext [sl] [chapter={{},{.}}]
Thanks a lot. It's an interesting trick.
it's actually meant for that, it was introduced some years ago when chinese needed such features 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.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Mojca Miklavec