Re: [NTG-context] header labels

2007-03-25 Thread Thomas Schmitz
On Fri, 23 Mar 2007 12:45:37 +0100
  Wolfgang Schuster [EMAIL PROTECTED] 
wrote:
 2007/3/19, Thomas A. Schmitz 
[EMAIL PROTECTED]:


 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


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


Re: [NTG-context] header labels

2007-03-23 Thread Wolfgang Schuster

2007/3/19, Thomas A. Schmitz [EMAIL PROTECTED]:



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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] header labels

2007-03-19 Thread Thomas A. Schmitz
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] header labels

2007-03-19 Thread Aditya Mahajan
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] header labels

2007-03-19 Thread Thomas A. Schmitz

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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context