Hi, Seems like the following crashes conTeXt: \useencoding [ffr] \mainlanguage[fr] \setupheadertexts[text][][][\setups{run:left}][] \startsetups run:left nothing \stopsetups \starttext Nothing special here \stoptext Of course one can live with this by renaming the tag. However, the bug will also occur in the \cite[Bob:A,Bob:B] commands from the bib module, and I assume in anything that deals with csnameS containing active colons... Strangely enough, the bug doesn't seem to occur in \placeformula[eq:A] Many thanks for hinting a fix, Olivier
Olivier wrote:
Hi,
Seems like the following crashes conTeXt:
see patch below
Strangely enough, the bug doesn't seem to occur in \placeformula[eq:A]
references get their labels cleaned up
Many thanks for hinting a fix,
\unprotect \def\dopreventmode[#1]% {\protect \cleanuplabel{#1}% \rawprocesscommalist[\cleanlabel]\dodopreventmode} \def\doenablemode[#1]% {\protect \cleanuplabel{#1}% \rawprocesscommalist[\cleanlabel]\dodoenablemode } \def\dodisablemode[#1]% {\protect \cleanuplabel{#1}% \rawprocesscommalist[\cleanlabel]\dododisablemode} \def\docheckformode#1#2#3% will be sped up with a quit {\cleanuplabel{#3}% \protect \checkedmodefalse \rawprocesscommacommand[\cleanlabel]\dodocheckformode \ifcheckedmode\@EA#1\else\@EA#2\fi} \def\docheckforallmodes#1#2#3% will be sped up with a quit {\cleanuplabel{#3}% \protect \checkedmodetrue \rawprocesscommacommand[\cleanlabel]\dodocheckforallmodes \ifcheckedmode\@EA#1\else\@EA#2\fi} \long\def\dodostartsetups#1#2#3% watch out: not \grabuntil {\cleanuplabel{\??su#2:#3}% \dograbuntil#1{\egroup\dodoglobal\long\setvalue\cleanlabel}} \def\dosetupsA#1% {\cleanuplabel{#1}% \processcommacommand[\cleanlabel]\dosetups} \def\dosetupsB[#1]% {\cleanuplabel{#1}% \processcommacommand[\cleanlabel]\dosetups} \def\dosetupsC[#1]% {\cleanuplabel{#1}% \dosetups\cleanlabel} \protect \useencoding [ffr] \mainlanguage[fr] \setupheadertexts[text][\setups{run:left}] \startsetups run:left nothing \stopsetups \starttext Nothing special here \stoptext \endinput With the next pdftex we will not need this active mess any more since pre-char spacing will be supported natively; by that time we need to adapt the ffr files 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 -----------------------------------------------------------------
Quoting "Hans Hagen Outside" :
-- was pragma@wxs.nl on Aug 29, 2005 at 06:50:51PM --
With the next pdftex we will not need this active mess any more since pre-char spacing will be supported natively; by that time we need to adapt the ffr files This is a good news indeed. By the way, does this include the possibility to treat the character in different ways depending on the current mode (math/text)? Because, in the current setting, if you request for 3cm before `:' and then define a mathematical function $f : R \to Z$ you'll end up with a huuuge space between f and : which you certainly isn't what you want.
Thanks for your answer, Olivier PS: Also the default definition in useencoding is .25em for :;?! I'm no typographical expert at all but I thought the standard is indeed .25em for ;?! but a normal space before `:'
BILLET Olivier wrote:
This is a good news indeed. By the way, does this include the possibility to treat the character in different ways depending on the current mode (math/text)? Because, in the current setting, if you request for 3cm before `:' and then define a mathematical function $f : R \to Z$ you'll end up with a huuuge space between f and : which you certainly isn't what you want.
remind me in a few days; it's easy to fix with some extra's in \everymath 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 -----------------------------------------------------------------
BILLET Olivier wrote:
By the way, does this include the possibility to treat the character in different ways depending on the current mode (math/text)? Because, in the current setting, if you request for 3cm before `:' and then define a mathematical function $f : R \to Z$ you'll end up with a huuuge space between f and : which you certainly isn't what you want.
see attached file; taco may know other tricks (i remember that there is some mechanism in tex for active char treatment in math mode) 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 -----------------------------------------------------------------
Hans Hagen wrote:
BILLET Olivier wrote:
By the way, does this include the possibility to treat the character in different ways depending on the current mode (math/text)? Because, in the current setting, if you request for 3cm before `:' and then define a mathematical function $f : R \to Z$ you'll end up with a huuuge space between f and : which you certainly isn't what you want.
see attached file; taco may know other tricks (i remember that there is some mechanism in tex for active char treatment in math mode)
It is possible to treat an arbitrary character as if it was \active inside math mode, but not the other way around: when a character has catcode \active, it is always treated as that macro, regardless of the current mode. For curious people, here is how you make a "mathmode only" macro: \mathcode`\!="8000 \begingroup \catcode`\!=13 \gdef!{\it math} \endgroup This is a $!$ test!. Cheers, Taco
Hi All, Having set this header text: \setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}] the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center What I want to have is: 1. AAA in the top left corner, 2. BBB just under AAA (and that's ok) 3. CCC in the top right corner but containing the page number 4. Just below all this a long line to separate the page header from its content I have struggled for a while but in vain, so help! Thanks. jk -- // Jilani KHALDI http://www.archsf.org
Hi All, Having set this header text: \setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}] the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section 3. CCC in the top right corner but containing the page number 4. Just below all this a long line to separate the page header from its content Thanks. jk -- // Jilani KHALDI http://www.archsf.org
Jilani Khaldi wrote:
Hi All,
Having set this header text:
\setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}]
the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center
What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section
\getmarking{chapter} etc
3. CCC in the top right corner but containing the page number
\pagenumber
4. Just below all this a long line to separate the page header from its content
Thanks.
jk
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hi All,
Having set this header text:
\setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}]
the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center
What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section
\getmarking{chapter} etc
3. CCC in the top right corner but containing the page number
\pagenumber
4. Just below all this a long line to separate the page header from its content
I tried to apply the tips but now I have the page number on both the
center and the right, without having the name of the chapter and the section in the left. Could you please be more precise. Where can I find info about "\getmarking"? Thanks. jk -- // Jilani KHALDI http://www.archsf.org
Jilani Khaldi wrote:
Hi All,
Having set this header text:
\setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}]
the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center
What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section 3. CCC in the top right corner but containing the page number
You already got the answer to this one I guess, just to sum it up: \setupheadertexts [{\framed[align=flushleft,frame=off,offset=0pt]{\getmarking[chapter]\crlf\getmarking[section]}}] [pagenumber] % or empty % and one of the two commands: %----- % this one overwrites the second argument above %\setuppagenumbering[location={header,right}] % this one only removes page number from the center %\setuppagenumbering[location=]
4. Just below all this a long line to separate the page header from its content
\setupbackgrounds[header][text][frame=off,bottomframe=on] (You probably have to adjust some parameters in \setuplayout: header height and distance between header and text.) Mojca
4. Just below all this a long line to separate the page header from its content
\setupbackgrounds[header][text][frame=off,bottomframe=on]
(You probably have to adjust some parameters in \setuplayout: header height and distance between header and text.)
Thank you. It works, but I have a long line on all the pages. Is it possibile to exclude the first page of the document and the first page of every chapter using some settings? jk -- // Jilani KHALDI http://www.archsf.org
participants (7)
-
BILLET Olivier
-
Hans Hagen
-
Hans Hagen Outside
-
Jilani Khaldi
-
Mojca Miklavec
-
Olivier
-
Taco Hoekwater