ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* header labels
@ 2007-03-19 15:16 Thomas A. Schmitz
  2007-03-19 15:46 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2007-03-19 15:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I've just hit some rather interesting interaction. I wanted my  
sections numbered A. Title, B. Title etc. This works, unless I choose  
language [deo]. Here's a short test document that demonstrates the  
behavior:

\mainlanguage[de]

\setupsection[section][conversion=A]
\setuplabeltext[section={{},{.~}}]

\starttext

\section{Number One}
dummy
\section{Number Two}
dummy
\section{Number Three}
dummy

\stoptext

If you replace language[deo] with language[de], things work as  
expected. Any explanation for this behavior?

Best

Thomas

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

* Re: header labels
  2007-03-19 15:16 header labels Thomas A. Schmitz
@ 2007-03-19 15:46 ` Aditya Mahajan
  2007-03-19 15:53   ` Thomas A. Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2007-03-19 15:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 19 Mar 2007, Thomas A. Schmitz wrote:

> Hi all,
>
> I've just hit some rather interesting interaction. I wanted my
> sections numbered A. Title, B. Title etc. This works, unless I choose
> language [deo]. Here's a short test document that demonstrates the
> behavior:
>
> \mainlanguage[de]
>
> \setupsection[section][conversion=A]
> \setuplabeltext[section={{},{.~}}]
>
> \starttext
>
> \section{Number One}
> dummy
> \section{Number Two}
> dummy
> \section{Number Three}
> dummy
>
> \stoptext
>
> If you replace language[deo] with language[de], things work as
> expected. Any explanation for this behavior?

(Untested)

\setuplabeltext[de][section=....]

Aditya

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

* Re: header labels
  2007-03-19 15:46 ` Aditya Mahajan
@ 2007-03-19 15:53   ` Thomas A. Schmitz
  2007-03-23 11:45     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2007-03-19 15:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Mar 19, 2007, at 4:46 PM, Aditya Mahajan wrote:

> (Untested)
>
> \setuplabeltext[de][section=....]
>
> Aditya

Nice try, but no cigar :-) Even with \setuplabeltext[deo][...], it  
still gobbels the periods after the converted numbers. Strange...   
Thanks for your help, Aditya!

Thomas

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

* Re: header labels
  2007-03-19 15:53   ` Thomas A. Schmitz
@ 2007-03-23 11:45     ` Wolfgang Schuster
  2007-03-24 14:41       ` Thomas Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2007-03-23 11:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 785 bytes --]

2007/3/19, Thomas A. Schmitz <thomas.schmitz@uni-bonn.de>:
>
>
> On Mar 19, 2007, at 4:46 PM, Aditya Mahajan wrote:
>
> > (Untested)
> >
> > \setuplabeltext[de][section=....]
> >
> > Aditya
>
> Nice try, but no cigar :-) Even with \setuplabeltext[deo][...], it
> still gobbels the periods after the converted numbers. Strange...
> Thanks for your help, Aditya!
>
> Thomas


Hi Thomas,

there problem is related to all languages that are defined as synonyms
for other languages, this means the same happens for uk and us.

I found a solution by changing the definition from \defaultlanguage in
lang-ini.tex.
Add the next macro to your document.

\def\defaultlanguage#1%
  {\ifcsname\??la#1\c!default\endcsname
     #1%
   \else
     \csname\??la#1\c!default\endcsname
   \fi}

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: header labels
  2007-03-23 11:45     ` Wolfgang Schuster
@ 2007-03-24 14:41       ` Thomas Schmitz
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Schmitz @ 2007-03-24 14:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 23 Mar 2007 12:45:37 +0100
  "Wolfgang Schuster" <schuster.wolfgang@googlemail.com> 
wrote:
> 2007/3/19, Thomas A. Schmitz 
><thomas.schmitz@uni-bonn.de>:
>>
>>
>> On Mar 19, 2007, at 4:46 PM, Aditya Mahajan wrote:
>>
>> > (Untested)
>> >
>> > \setuplabeltext[de][section=....]
>> >
>> > Aditya
>>
>> Nice try, but no cigar :-) Even with 
>>\setuplabeltext[deo][...], it
>> still gobbels the periods after the converted numbers. 
>>Strange...
>> Thanks for your help, Aditya!
>>
>> Thomas
> 
> 
> Hi Thomas,
> 
> there problem is related to all languages that are 
>defined as synonyms
> for other languages, this means the same happens for uk 
>and us.
> 
> I found a solution by changing the definition from 
>\defaultlanguage in
> lang-ini.tex.
> Add the next macro to your document.
> 
> \def\defaultlanguage#1%
>  {\ifcsname\??la#1\c!default\endcsname
>     #1%
>   \else
>     \csname\??la#1\c!default\endcsname
>   \fi}
> 
> Wolfgang

Hi Wolfgang,

thanks a lot! We're sitting in Epen right now; Mojca is 
giving a presentation, so I'll have to wait a bit to look 
into your solution, but the explanation makes perfect 
sense.

Thanks, and best wishes

Thomas

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

end of thread, other threads:[~2007-03-24 14:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-19 15:16 header labels Thomas A. Schmitz
2007-03-19 15:46 ` Aditya Mahajan
2007-03-19 15:53   ` Thomas A. Schmitz
2007-03-23 11:45     ` Wolfgang Schuster
2007-03-24 14:41       ` Thomas Schmitz

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