ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupheadertexts + kap/uppercase
@ 2006-01-21 16:15 Tobias Burnus
  2006-01-21 17:12 ` Sebastian Rooks
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2006-01-21 16:15 UTC (permalink / raw)


Hello,

I think I have a expand problem.

I want to have
 
\setupheadertexts[pagenumber][{\getmarking[chapter][current]}][section][pagenumber]
with the chapter in \uppercase/\kaps. The problem is that
adding a \uppercase or  \kap before the {\getmarking} ends up with
nothing and all my attemps with expand* ended up with either the same
result or with a TeX error message.

Using \setupheader[style=kap] (or =cap) does not work - as TeX bails out:
! Undefined control sequence.
\p!doifinstringelse ...ifinstringelse #2#1}@@\war

Any idea how to solve this?

Tobias

PS: I just saw that I asked the same question two years ago (15 January
2004):
http://www.mail-archive.com/ntg-context@ntg.nl/msg02175.html

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

* Re: setupheadertexts + kap/uppercase
  2006-01-21 16:15 setupheadertexts + kap/uppercase Tobias Burnus
@ 2006-01-21 17:12 ` Sebastian Rooks
  2006-01-21 18:37   ` Tobias Burnus
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Rooks @ 2006-01-21 17:12 UTC (permalink / raw)


Hello,

Did you try with a \fetchmark[chapter][first] as explained on the wiki ?

http://wiki.contextgarden.net/Headers_and_Footers , section 2 "Using 
capitals"

Yours,

   SeB

Tobias Burnus a écrit :
> Hello,
> 
> I think I have a expand problem.
> 
> I want to have
>  
> \setupheadertexts[pagenumber][{\getmarking[chapter][current]}][section][pagenumber]
> with the chapter in \uppercase/\kaps. The problem is that
> adding a \uppercase or  \kap before the {\getmarking} ends up with
> nothing and all my attemps with expand* ended up with either the same
> result or with a TeX error message.
> 
> Using \setupheader[style=kap] (or =cap) does not work - as TeX bails out:
> ! Undefined control sequence.
> \p!doifinstringelse ...ifinstringelse #2#1}@@\war
> 
> Any idea how to solve this?
> 
> Tobias
> 
> PS: I just saw that I asked the same question two years ago (15 January
> 2004):
> http://www.mail-archive.com/ntg-context@ntg.nl/msg02175.html
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: setupheadertexts + kap/uppercase
  2006-01-21 17:12 ` Sebastian Rooks
@ 2006-01-21 18:37   ` Tobias Burnus
  2006-01-23 11:07     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2006-01-21 18:37 UTC (permalink / raw)


Hello,

Sebastian Rooks schrieb:
> Did you try with a \fetchmark[chapter][first] as explained on the wiki ?
> http://wiki.contextgarden.net/Headers_and_Footers , section 2 "Using
> capitals"

That indeed worked. (I looked at ConTeXtgarden, but I seemingly missed
the right keyword in my search :-( shame on me.)

Anyway, \uppercase have some problems. I get with
---------------------------
\enableregime[utf]
\setupheadertexts[][{\expanded{\uppercase{\fetchmark[chapter][first]}}}]

\starttext
\chapter{Einführung} % EINFÜHRUNG
\uppercase{ÄÖÜäöüß} % should be ÄÖÜÄÖÜSS
\stoptext
---------------------------

"ÄÖÜÄÖüß" ("üß" should be "ÜSS") and in the header I get "EINFßHRUNG".

Tobias

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

* Re: setupheadertexts + kap/uppercase
  2006-01-21 18:37   ` Tobias Burnus
@ 2006-01-23 11:07     ` Hans Hagen
  2006-01-23 15:06       ` Tobias Burnus
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2006-01-23 11:07 UTC (permalink / raw)


Tobias Burnus wrote:

>Hello,
>
>Sebastian Rooks schrieb:
>  
>
>>Did you try with a \fetchmark[chapter][first] as explained on the wiki ?
>>http://wiki.contextgarden.net/Headers_and_Footers , section 2 "Using
>>capitals"
>>    
>>
>
>That indeed worked. (I looked at ConTeXtgarden, but I seemingly missed
>the right keyword in my search :-( shame on me.)
>
>Anyway, \uppercase have some problems. I get with
>---------------------------
>\enableregime[utf]
>\setupheadertexts[][{\expanded{\uppercase{\fetchmark[chapter][first]}}}]
>
>\starttext
>\chapter{Einf�hrung} % EINF�HRUNG
>\uppercase{�������} % should be ������SS
>\stoptext
>---------------------------
>
>"�������" ("��" should be "�SS") and in the header I get "EINF�HRUNG".
>  
>

here \uppercase will also uppercase the CHAPTER and FIRST keywords an 
dtherefore fail

\WORD

does a bit more (i.e. it also applies everyuppercase and such which will   remap symbolic names which works better than mapping chars

\enableregime[utf]

\setupheadertexts[][{\WORD{\fetchmark[chapter][first]}}]

\starttext
\chapter{Einf\udiaeresis hrung}

\stoptext

(your utf got lost in the mail) 


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

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

* Re: setupheadertexts + kap/uppercase
  2006-01-23 11:07     ` Hans Hagen
@ 2006-01-23 15:06       ` Tobias Burnus
  2006-01-23 15:54         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2006-01-23 15:06 UTC (permalink / raw)


Hello,

Hans Hagen schrieb:
> \WORD

Hmm, using
  \WORD{Hell\odiaeresis\udiaeresis\ssharp}
it works, but if I replace the symbolic names by UTF-8 characters:
  \WORD{Hö}
I get:
! Undefined control sequence.
\unicodechar ...harnumber #1\futurelet \nextglyph
                                                  \dounicodechar
\douppercase ...rstoftwoarguments \edef \ascii {#1
                                                  }\edef \ascii
{\expandafte...

\WORD ...ORD \firstofoneargument \douppercase {#1}
                                                  \egroup
l.6 \WORD{Hö}

 *  *  *

I also have troubles with PDF bookmarks/outlines and UTF-8 characters.
They are converted into "unichar...".
If I use "F\udiaeresis r" then I get the "Für". Any ideas?

Tobias

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

* Re: setupheadertexts + kap/uppercase
  2006-01-23 15:06       ` Tobias Burnus
@ 2006-01-23 15:54         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-01-23 15:54 UTC (permalink / raw)


Tobias Burnus wrote:

>Hello,
>
>Hans Hagen schrieb:
>  
>
>>\WORD
>>    
>>
>
>Hmm, using
>  \WORD{Hell\odiaeresis\udiaeresis\ssharp}
>it works, but if I replace the symbolic names by UTF-8 characters:
>  \WORD{Hö}
>I get:
>! Undefined control sequence.
>\unicodechar ...harnumber #1\futurelet \nextglyph
>                                                  \dounicodechar
>\douppercase ...rstoftwoarguments \edef \ascii {#1
>                                                  }\edef \ascii
>{\expandafte...
>
>\WORD ...ORD \firstofoneargument \douppercase {#1}
>                                                  \egroup
>l.6 \WORD{Hö}
>
> *  *  *
>
>I also have troubles with PDF bookmarks/outlines and UTF-8 characters.
>They are converted into "unichar...".
>  
>
the WORD with utf works ok here; i will upload an update asap (there 
have been some 'improvements' to the unicode handler)

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

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

end of thread, other threads:[~2006-01-23 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21 16:15 setupheadertexts + kap/uppercase Tobias Burnus
2006-01-21 17:12 ` Sebastian Rooks
2006-01-21 18:37   ` Tobias Burnus
2006-01-23 11:07     ` Hans Hagen
2006-01-23 15:06       ` Tobias Burnus
2006-01-23 15:54         ` 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).