Re: [NTG-context] \setupheadertexts for chapters with different authors
Thanks for the bits and pieces to the puzzle. I'll do my best to make sense of them and solve the problem. Julian On 19/3/22 20:18, Henning Hraban Ramm via ntg-context wrote: Hi Julian, you’re right, the example didn’t do what you wanted, and it didn’t intend to. Using \getmarking you can get a section title (or another “mark”), you can’t combine it with the variable commands, and you don’t need it for your case. https://wiki.contextgarden.net/Command/getmarking isn’t really helpful since there’s no example with section titles, but it shows you can also get previous or next “marks”. BTW, I can’t remember when you need \structurevariable vs. \namedstructurevariable... Hraban Am 19.03.22 um 03:16 schrieb jbf via ntg-context: I might need a little more help just to understand how best to adapt this to my situation: One thing is clear: I was attempting to use a 'list' variable, and I can see why that was an error, since it is headertexts, not TOC that I want to influence. But let me simplify my situation: You seem to suggest initially that I could use \structureuservariable (or \structurevariable) instead, especially since I already have a variable to call on, e.g \startchapter[title={My title}][author={A. uthor}]. But in the example you then gave, you made no use of either of these. My current setting is: \setupheadertexts [{\hfill\getmarking[chapter]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] which gives me the book title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each chapter instead of the chapter title. So why can't I create a setups along the lines of: \startsetups[contributor] \getmarking[\structureuservariable{author}] \stopsetups Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I tried it but it doesn't work. I thought it would be logical. Clearly I'm wrong but don't appreciate why. Julian On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote: The *list* variables work only in lists. There’s also \structurevariable and \structureuservariable. Make sure you use setups for the header, otherwise the variable gets expanded only once at the beginning. Like in: \setuppagenumbering[alternative=doublesided] \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{Un Nom} \stopsetups \startsetups[text left] \rlap{Una Person} \hfill \getmarking[section] \hfill \llap{\pagenumber} \stopsetups ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts for chapters with different authors
On 3/19/2022 10:18 AM, Henning Hraban Ramm via ntg-context wrote: BTW, I can’t remember when you need \structurevariable vs. \namedstructurevariable... the first is the current, the second a specific one ... so current can be subsubsubsubsubsection but with named you can still get the current chapter BTW, best write it down (your book) some place as it can come in handy ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts for chapters with different authors
Hi Julian, you’re right, the example didn’t do what you wanted, and it didn’t intend to. Using \getmarking you can get a section title (or another “mark”), you can’t combine it with the variable commands, and you don’t need it for your case. https://wiki.contextgarden.net/Command/getmarking isn’t really helpful since there’s no example with section titles, but it shows you can also get previous or next “marks”. BTW, I can’t remember when you need \structurevariable vs. \namedstructurevariable... Hraban Am 19.03.22 um 03:16 schrieb jbf via ntg-context: I might need a little more help just to understand how best to adapt this to my situation: One thing is clear: I was attempting to use a 'list' variable, and I can see why that was an error, since it is headertexts, not TOC that I want to influence. But let me simplify my situation: You seem to suggest initially that I could use \structureuservariable (or \structurevariable) instead, especially since I already have a variable to call on, e.g \startchapter[title={My title}][author={A. uthor}]. But in the example you then gave, you made no use of either of these. My current setting is: \setupheadertexts [{\hfill\getmarking[chapter]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] which gives me the book title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each chapter instead of the chapter title. So why can't I create a setups along the lines of: \startsetups[contributor] \getmarking[\structureuservariable{author}] \stopsetups Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I tried it but it doesn't work. I thought it would be logical. Clearly I'm wrong but don't appreciate why. Julian On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote: The *list* variables work only in lists. There’s also \structurevariable and \structureuservariable. Make sure you use setups for the header, otherwise the variable gets expanded only once at the beginning. Like in: \setuppagenumbering[alternative=doublesided] \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{Un Nom} \stopsetups \startsetups[text left] \rlap{Una Person} \hfill \getmarking[section] \hfill \llap{\pagenumber} \stopsetups ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts for chapters with different authors
Sorry, of course I meant swap 'chapter' with \setups{contributor} J On 19/3/22 13:16, jbf wrote: Then just swap 'chapter' in \setupheadertexts, with 'contributor'? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts for chapters with different authors
I might need a little more help just to understand how best to adapt this to my situation: One thing is clear: I was attempting to use a 'list' variable, and I can see why that was an error, since it is headertexts, not TOC that I want to influence. But let me simplify my situation: You seem to suggest initially that I could use \structureuservariable (or \structurevariable) instead, especially since I already have a variable to call on, e.g \startchapter[title={My title}][author={A. uthor}]. But in the example you then gave, you made no use of either of these. My current setting is: \setupheadertexts [{\hfill\getmarking[chapter]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] which gives me the book title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each chapter instead of the chapter title. So why can't I create a setups along the lines of: \startsetups[contributor] \getmarking[\structureuservariable{author}] \stopsetups Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I tried it but it doesn't work. I thought it would be logical. Clearly I'm wrong but don't appreciate why. Julian On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote: The *list* variables work only in lists. There’s also \structurevariable and \structureuservariable. Make sure you use setups for the header, otherwise the variable gets expanded only once at the beginning. Like in: \setuppagenumbering[alternative=doublesided] \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{Un Nom} \stopsetups \startsetups[text left] \rlap{Una Person} \hfill \getmarking[section] \hfill \llap{\pagenumber} \stopsetups ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts for chapters with different authors
Am 18.03.22 um 10:13 schrieb jbf via ntg-context: Off list for the moment. Late at night where I am. I will take a look at this more closely on the morrow. Thanks. You’re welcome. BTW I answered with some German last time since I mixed up jbf and juh – the latter I know to be German. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts for chapters with different authors
Off list for the moment. Late at night where I am. I will take a look at this more closely on the morrow. Thanks. Julian On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote: \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{Un Nom} \stopsetups \startsetups[text left] \rlap{Una Person} \hfill \getmarking[section] \hfill \llap{\pagenumber} \stopsetups ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts for chapters with different authors
Am 18.03.22 um 01:48 schrieb jbf via ntg-context: I thought this should work, since \structurelistuservariable{author} works fine to call the author name into the TOC, but the same does not work for header texts it seems: \setupheadertexts [{\hfill\getmarking[\structurelistuservariable{author}]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] But it doesn't. What am I doing wrong? The *list* variables work only in lists. There’s also \structurevariable and \structureuservariable. Make sure you use setups for the header, otherwise the variable gets expanded only once at the beginning. Like in: \setuppagenumbering[alternative=doublesided] \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{Un Nom} \stopsetups \startsetups[text left] \rlap{Una Person} \hfill \getmarking[section] \hfill \llap{\pagenumber} \stopsetups HTH Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \setupheadertexts for chapters with different authors
I thought this should work, since \structurelistuservariable{author} works fine to call the author name into the TOC, but the same does not work for header texts it seems: \setupheadertexts [{\hfill\getmarking[\structurelistuservariable{author}]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] But it doesn't. What am I doing wrong? Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts not working when text contains \subject
> On 14 Jan 2022, at 07:48, Hans Hagen wrote: > > Ponder this: > > [{\stylePageHeader{\structureuservariable{author}}}] > > versus this: > > [{\stylePageHeader{\namedstructureuservariable{chapter}{author}}}] > > and you can guess what happens. Thank-you for the quick response. It looks like I've been very lucky in my use of \structureuservariable so far. :-) — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts not working when text contains \subject
On 1/14/2022 12:05 AM, Bruce Horrocks via ntg-context wrote: I've found an unexpected interaction between \setupheadertexts and the \subject command, and I'm hoping that someone can tell me what I'm doing wrong. Version: current version: 2022.01.10 08:36 I'm trying to set a book whereby - chapter title pages have no headers - left hand (even) pages have the chapter title in the left header and the book title in the right header - right hand (odd) pages have the book title in the left header and the author's name in the right header The following MWE does this perfectly provided the \subject line is commented-out. When the \subject line is included then the author name disappears - there's just a blank space in the header. MWE: \setuppagenumbering [ alternative=doublesided, location={footer}, ] \definefont [stylePageHeader] [Serif at 10pt] \startsetups ChapterSetup \setupheadertexts [{\stylePageHeader {My Book}}] [{\stylePageHeader{\structureuservariable{author}}}] [{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My Book}}] \setupheader[state=empty] \stopsetups Ponder this: [{\stylePageHeader{\structureuservariable{author}}}] versus this: [{\stylePageHeader{\namedstructureuservariable{chapter}{author}}}] and you can guess what happens. \definehead [Chapter] [chapter] \setuphead[Chapter] [ page=right, number=no, before={\setups{ChapterSetup}}, ] \starttext \startChapter[title={The Strange Case of the Missing Header}] [author={Bruce}] \dorecurse{10}{ %\subject{A heading} \input Knuth \par } \stopChapter \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \setupheadertexts not working when text contains \subject
I've found an unexpected interaction between \setupheadertexts and the \subject command, and I'm hoping that someone can tell me what I'm doing wrong. Version: current version: 2022.01.10 08:36 I'm trying to set a book whereby - chapter title pages have no headers - left hand (even) pages have the chapter title in the left header and the book title in the right header - right hand (odd) pages have the book title in the left header and the author's name in the right header The following MWE does this perfectly provided the \subject line is commented-out. When the \subject line is included then the author name disappears - there's just a blank space in the header. MWE: \setuppagenumbering [ alternative=doublesided, location={footer}, ] \definefont [stylePageHeader] [Serif at 10pt] \startsetups ChapterSetup \setupheadertexts [{\stylePageHeader {My Book}}] [{\stylePageHeader{\structureuservariable{author}}}] [{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My Book}}] \setupheader[state=empty] \stopsetups \definehead [Chapter] [chapter] \setuphead[Chapter] [ page=right, number=no, before={\setups{ChapterSetup}}, ] \starttext \startChapter[title={The Strange Case of the Missing Header}] [author={Bruce}] \dorecurse{10}{ %\subject{A heading} \input Knuth \par } \stopChapter \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
On 8/2/2019 11:36 PM, Wolfgang Schuster wrote: Hans Hagen schrieb am 02.08.2019 um 23:10: On 8/2/2019 10:26 PM, Alan Braslau wrote: \setupheader [lefttext=,leftoddtext=,middletext=,...] This would be logical. we have a lot or areas ... and if you really want you can do this ... \setuplayouttext [header][text] [lefttext=L, middletext=M, righttext=\doifoddpageelse{RO}{RE}] \setuplayouttext [footer][text] [lefttext=L, middletext=M, righttext=\doifoddpageelse{RO}{RE}] \setuppagenumbering [alternative=doublesided] \starttext test \page test \page test \stoptext Has been there for ages ... (but I never use that method). I has the same question a few years ago but I never used it because it has a few limitations like missing style/color support. \setuplayouttext[header][text][lefttext=L,middletext=M,righttext=R] %\setupheadertexts[M] %\setupheadertexts[L][R] \setupheader [color=red,style=bold] \setuppagenumbering [alternative=doublesided] \starttext \dorecurse{2}{\page[dummy]} \stoptext I can look into that but only when there is no speed penalty Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
On 8/2/2019 11:59 PM, Alan Braslau wrote: On Fri, 2 Aug 2019 23:36:47 +0200 Wolfgang Schuster wrote: we have a lot or areas ... and if you really want you can do this ... \setuplayouttext Has been there for ages ... (but I never use that method). I has the same question a few years ago but I never used it because it has a few limitations like missing style/color support. I am looking for a simple and obvious way of setting header and footer texts. The \setupheadertexts has limitations and I view this as historical, for ConTeXt commands have evolved over time usually towards better solutions, even if we leave in place for reasons of backward compatibility habits that can be hard to quit. One example is \setuppapersize [page=letter,paper=letter] (sorry, and I *do* much prefer A4). This is, I believe, far superior to \setuppapersize [letter] [letter] Do you find that keys in \setupheader make sense? If so, what choice? (as we like to limit the proliferation of key names). actually there is not really a \setupheader as these are shortcuts to a few kind of generic commands that set up properties of these areas (a matrix) on the one hand, and set the content with a different command (also, this part of context is quite optimized deep down because checking 25 areas for all possible properties each page flush is costly, so it would be a major rewrite with little gain; it would also mean dropping \setuphead etc and using one command for everything ... not something i want to do in the middle of other transitions like mkiv->mkxl and such) hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
On 8/2/2019 11:59 PM, Alan Braslau wrote: On Fri, 2 Aug 2019 23:36:47 +0200 Wolfgang Schuster wrote: we have a lot or areas ... and if you really want you can do this ... \setuplayouttext Has been there for ages ... (but I never use that method). I has the same question a few years ago but I never used it because it has a few limitations like missing style/color support. I am looking for a simple and obvious way of setting header and footer texts. The \setupheadertexts has limitations and I view this as historical, for ConTeXt commands have evolved over time usually towards better solutions, even if we leave in place for reasons of backward compatibility habits that can be hard to quit. What limitations? \foo[{sometext}] is not that different from \foo[text={sometext}] and often I do \setupheadertexts[\setups[header}] \startsetups lots of stuff \stopsetups because you don't want to add all kind of stuff in a value. One example is \setuppapersize [page=letter,paper=letter] (sorry, and I *do* much prefer A4). This is, I believe, far superior to \setuppapersize [letter] [letter] A matter of taste but we're not going to drop something ... that kind of compatibility has always been a principle. If one has few docs it's no problem to adapt a few styles but it's a no go otherwise (and I'm not even speaking of adapting all kind of manuals, examples, etc etc.) And for most of those commands there are k/v varianst too. (\setuppapersize actually takes lists as page setups can be more complex than just 'letter') (But I'm willing to remove the command that I know you hate most, namely { {foo} \over {bar} }.) Do you find that keys in \setupheader make sense? If so, what choice? (as we like to limit the proliferation of key names). \setupheader is used for styling and such, not for content. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
On Fri, 2 Aug 2019 23:36:47 +0200 Wolfgang Schuster wrote: > > we have a lot or areas ... and if you really want you can do this ... > > > > \setuplayouttext > > > > Has been there for ages ... (but I never use that method). > > I has the same question a few years ago but I never used it > because it has a few limitations like missing style/color support. I am looking for a simple and obvious way of setting header and footer texts. The \setupheadertexts has limitations and I view this as historical, for ConTeXt commands have evolved over time usually towards better solutions, even if we leave in place for reasons of backward compatibility habits that can be hard to quit. One example is \setuppapersize [page=letter,paper=letter] (sorry, and I *do* much prefer A4). This is, I believe, far superior to \setuppapersize [letter] [letter] Do you find that keys in \setupheader make sense? If so, what choice? (as we like to limit the proliferation of key names). Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
Hans Hagen schrieb am 02.08.2019 um 23:10: On 8/2/2019 10:26 PM, Alan Braslau wrote: \setupheader [lefttext=,leftoddtext=,middletext=,...] This would be logical. we have a lot or areas ... and if you really want you can do this ... \setuplayouttext [header][text] [lefttext=L, middletext=M, righttext=\doifoddpageelse{RO}{RE}] \setuplayouttext [footer][text] [lefttext=L, middletext=M, righttext=\doifoddpageelse{RO}{RE}] \setuppagenumbering [alternative=doublesided] \starttext test \page test \page test \stoptext Has been there for ages ... (but I never use that method). I has the same question a few years ago but I never used it because it has a few limitations like missing style/color support. \setuplayouttext[header][text][lefttext=L,middletext=M,righttext=R] %\setupheadertexts[M] %\setupheadertexts[L][R] \setupheader [color=red,style=bold] \setuppagenumbering [alternative=doublesided] \starttext \dorecurse{2}{\page[dummy]} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
On 8/2/2019 10:26 PM, Alan Braslau wrote: \setupheader [lefttext=,leftoddtext=,middletext=,...] This would be logical. we have a lot or areas ... and if you really want you can do this ... \setuplayouttext [header][text] [lefttext=L, middletext=M, righttext=\doifoddpageelse{RO}{RE}] \setuplayouttext [footer][text] [lefttext=L, middletext=M, righttext=\doifoddpageelse{RO}{RE}] \setuppagenumbering [alternative=doublesided] \starttext test \page test \page test \stoptext Has been there for ages ... (but I never use that method). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
On Fri, 2 Aug 2019 21:08:00 +0200 Wolfgang Schuster wrote: Thank you > When you use three arguments the first is used for the position of text, > i.e. above the text, margin or edge areas. I know this, and I find the syntax unfortunate, to say the least. > Only six or seven arguments work in this case but this only useful in a > double sided document. Indeed, a double-sided (asymmetric) document. And it is pretty unwieldy. > You need a new command for this because adding an assignment option can > produce unexpected results, e.g. the example below won't work anymore. > > \setupheadertexts[{\date[d=...,m=...,y=...]}] Well, what would make sense? I would have no problem dropping/ignoring this (historic) command. How about: \setupheader [left=,leftodd=,middle=,...] \setupfooter or \setupheader [lefttext=,leftoddtext=,middletext=,...] This would be logical. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts \setupfootertexts
Alan Braslau schrieb am 02.08.2019 um 20:29: Hello, \setupheadertexts [{center}] sets a centered header (and wipes-out any left and right header) \setupheadertexts [{left}] [{right}] sets the left and right headers (and keeps the centered header) \setupheadertexts [{left odd}] [{right odd}] [{left even}] [{right even}] sets the left and right headers for even and odd pages (perhaps I have this backwards?) (1) It would be useful to have \setupheadertexts [{left}] [{center}] [{right}] but this does not work. In this case, we probably also need a *six* argument version (even/odd). When you use three arguments the first is used for the position of text, i.e. above the text, margin or edge areas. Only six or seven arguments work in this case but this only useful in a double sided document. (2) It would also be useful that \setupheadertexts [{center}] NOT wipe-out left and right if they are set (but I could live with this perhaps historical behavior if we were to have (1).) (3) It is a bit messy that one must use \setupheader [] \setupheader [left] [right] *two calls* in order to have no centered header. (Again, I could live with \setupheader [left] [] [right] if we were to have (1).) Similarly for footertexts, of course. What is the reasoning, presently? ALTERNATIVELY (or additionally), we could have \setupheadertexts [center={center}, left={left}, lefteven={left, even}, ...] which would be even cleaner. You need a new command for this because adding an assignment option can produce unexpected results, e.g. the example below won't work anymore. \setupheadertexts[{\date[d=...,m=...,y=...]}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \setupheadertexts \setupfootertexts
Hello, \setupheadertexts [{center}] sets a centered header (and wipes-out any left and right header) \setupheadertexts [{left}] [{right}] sets the left and right headers (and keeps the centered header) \setupheadertexts [{left odd}] [{right odd}] [{left even}] [{right even}] sets the left and right headers for even and odd pages (perhaps I have this backwards?) (1) It would be useful to have \setupheadertexts [{left}] [{center}] [{right}] but this does not work. In this case, we probably also need a *six* argument version (even/odd). (2) It would also be useful that \setupheadertexts [{center}] NOT wipe-out left and right if they are set (but I could live with this perhaps historical behavior if we were to have (1).) (3) It is a bit messy that one must use \setupheader [] \setupheader [left] [right] *two calls* in order to have no centered header. (Again, I could live with \setupheader [left] [] [right] if we were to have (1).) Similarly for footertexts, of course. What is the reasoning, presently? ALTERNATIVELY (or additionally), we could have \setupheadertexts [center={center}, left={left}, lefteven={left, even}, ...] which would be even cleaner. Thanks, Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setupheadertexts with if-condition
\doifelsemarking or \doifelsetext Thanks, that worked. My final solution (just for the archive, it seems to be more suitable than the solution in the wiki): \define\CustomHeader{% \cap{ \doifelsetext{\getmarking[chapter]}% {Kapitel \getmarking[chapternumber]: \getmarking[chapter]}% {\doifelsetext{\getmarking[section]} {\getmarking[section]} {} }% } } \setupheadertexts[][\CustomHeader{}{~\|~}\pagenumber][\pagenumber][] Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de Am 10.04.2019 um 13:26 schrieb Hans Hagen: \doifelsemarking or \doifelsetext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setupheadertexts with if-condition
On 4/10/2019 12:29 PM, Huseyin Özoguz wrote: Hello mailing list, I want to use an simple if-condition for this code: \setupheadertexts [][][][{\tfx\bf\getmarking[chapternumber] – \getmarking[chapter]}] My problem: In my case the document dont begin with a chapter but with a section. So at the first pages there is not chapter and chapternumber and the "–" is printed alone. So I want something like this: \if\getmarking[chapternumber] {\getmarking[chapternumber] – \getmarking[chapter]} \fi \doifelsemarking or \doifelsetext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Setupheadertexts with if-condition
Hello mailing list, I want to use an simple if-condition for this code: \setupheadertexts [][][][{\tfx\bf\getmarking[chapternumber] – \getmarking[chapter]}] My problem: In my case the document dont begin with a chapter but with a section. So at the first pages there is not chapter and chapternumber and the "–" is printed alone. So I want something like this: \if\getmarking[chapternumber] {\getmarking[chapternumber] – \getmarking[chapter]} \fi That is of course no valid code. How to implement that if-condition? Thanks! -- Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts except on pages with title of chapter
Hi Pablo, In fact, I looked up after asking my question and found the answer. I should not have asked my question ! Fabrice 2017-09-07 17:31 GMT+02:00 Pablo Rodriguez : > On 09/07/2017 04:43 PM, Fabrice Couvreur wrote: > > Hi Pablo, > > Thanks but I'm confused because I found the answer on the wiki. > > Hi Fabrice, > > and which is the problem? Had you searched the answer before and you > didn’t found it that search? > > No problem. Probably you were spending too much time with the computer. > You needed a break ;-). > > Pablo > -- > http://www.ousia.tk > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts except on pages with title of chapter
On 09/07/2017 04:43 PM, Fabrice Couvreur wrote: > Hi Pablo, > Thanks but I'm confused because I found the answer on the wiki. Hi Fabrice, and which is the problem? Had you searched the answer before and you didn’t found it that search? No problem. Probably you were spending too much time with the computer. You needed a break ;-). Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts except on pages with title of chapter
HI Pablo, Hi Pablo, Thanks but I'm confused because I found the answer on the wiki. Fabrice 2017-09-07 6:35 GMT+02:00 Pablo Rodriguez : > On 09/06/2017 11:04 PM, Fabrice Couvreur wrote: > > Hello, > > I would like that on the pages with the title of the chapter the header > > is empty. > > Hi Fabrice, > > this is the command you need: > > \setuphead[chapter][header=empty] > > I hope it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts except on pages with title of chapter
On 09/06/2017 11:04 PM, Fabrice Couvreur wrote: > Hello, > I would like that on the pages with the title of the chapter the header > is empty. Hi Fabrice, this is the command you need: \setuphead[chapter][header=empty] I hope it helps, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \setupheadertexts except on pages with title of chapter
Hello, I would like that on the pages with the title of the chapter the header is empty. Fabrice \setupheadertexts[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \starttext \placelist[chapter,section][alternative=c] \startchapter[title={First chapter}] \startsection[title={First section}] \dorecurse{5}{\input knuth} \stopsection \stopchapter \startchapter[title={Second chapter}] \startsection[title={Second section}] \dorecurse{5}{\input knuth} \stopsection \stopchapter \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts [section]
On Tue, 26 Mar 2013 12:00:49 +0100 Otared Kavian wrote: > I think the reason is that ConTeXt expects any text to be part of a > certain structure as in Chapter > Section > Subsection > and therefore what you add after your chapter, that is > > > \page [yes] > > > > Some trailing remarks… > > should be part of a new chapter (or maybe an unnumbered chapter). > > Best regards: OK It is part of a certain structure: part... No logic should require chapter or lower structure. After all, what is the point of \stopchapter in that case? The same can occur within a chapter, when one "leaves" a section. One should just go back up one level, as is the case for the "introductory remarks". Also, I tried putting a unnumbered chapter (\starttitle\stoptitle). Indeed, this corresponds to the first part of my question concering \setupheadertexts [chapter,title]. I supposed that one can try to cheat: \startchapter [title=,placehead=no,incrementnumber=no,...] but this is not very elegant. -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupheadertexts [section]
Hi Alan, I think the reason is that ConTeXt expects any text to be part of a certain structure as in Chapter > Section > Subsection and therefore what you add after your chapter, that is > \page [yes] > > Some trailing remarks… should be part of a new chapter (or maybe an unnumbered chapter). Best regards: OK On 26 mars 2013, at 11:37, Alan BRASLAU wrote: > Hello, > > \setupheadertexts [chapter] > > will center the current chapter title (or abbreviated version using > marking=) in the running page headers. > > However, how can one also put unnumbered chapter-level titles > (\starttitle\stoptitle) in the running headers? > > \setupheadertexts [chapter,title] > seems natural but does not work. > > > Also, what seems to be a bug, the running text does *not* get reset to > empty upon leaving the chapter. Below is a minimal illustration > (nonworking as it is incomplete, only a snippet) > > \setupheadertexts [chapter] > > \starttext > > \startpart % lets have some structure... > > Some introductory text... > > \startchapter [title=Getting started] > > Some text... > > \stopchapter > > \page [yes] > > Some trailing remarks... > % the header here still contains "Getting started" > > \stoppart > > \stoptext > > > Alan > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setupheadertexts [section]
Hello, \setupheadertexts [chapter] will center the current chapter title (or abbreviated version using marking=) in the running page headers. However, how can one also put unnumbered chapter-level titles (\starttitle\stoptitle) in the running headers? \setupheadertexts [chapter,title] seems natural but does not work. Also, what seems to be a bug, the running text does *not* get reset to empty upon leaving the chapter. Below is a minimal illustration (nonworking as it is incomplete, only a snippet) \setupheadertexts [chapter] \starttext \startpart % lets have some structure... Some introductory text... \startchapter [title=Getting started] Some text... \stopchapter \page [yes] Some trailing remarks... % the header here still contains "Getting started" \stoppart \stoptext Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupheadertexts + kap/uppercase
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupheadertexts + kap/uppercase
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupheadertexts + kap/uppercase
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupheadertexts + kap/uppercase
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupheadertexts + kap/uppercase
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setupheadertexts + kap/uppercase
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
Re: [NTG-context] setupheadertexts
thanks a lot severin - Original Message - From: "Tobias Burnus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 01, 2003 9:11 PM Subject: Re: [NTG-context] setupheadertexts > Hi, > > On Mon, Dec 01, 2003 at 08:13:37PM +0100, Severin Obertuefer wrote: > > in my header I want to have the follwoing output: > > "Exercise 5 - TRANSLATOR_APPLICATION" > You miss the command \getmarking. Try the following: > > - > \definehead[class][subject] > \setuphead[class][placehead=no] > > \setupheadertexts[{Exercise 5 - \getmarking[class]}] > > \class{TRANSLATOR\_APPLICATION} > \bye > - > > Tobias > ___ > ntg-context mailing list > [EMAIL PROTECTED] > http://www.ntg.nl/mailman/listinfo/ntg-context > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupheadertexts
Hi, On Mon, Dec 01, 2003 at 08:13:37PM +0100, Severin Obertuefer wrote: > in my header I want to have the follwoing output: > "Exercise 5 - TRANSLATOR_APPLICATION" You miss the command \getmarking. Try the following: - \definehead[class][subject] \setuphead[class][placehead=no] \setupheadertexts[{Exercise 5 - \getmarking[class]}] \class{TRANSLATOR\_APPLICATION} \bye - Tobias ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setupheadertexts
hi I defined e new head like this: \definehead[class][subject] \setuphead[class][placehead=no] in the text I defined a head as \class{TRANSLATOR\_APPLICATION} in my header I want to have the follwoing output: "Exercise 5 - TRANSLATOR_APPLICATION" i tried \setupheadertexts[Exercise 5 - class] but then the output is: "Exercise 5 - class] how can I get what I want? if I only type \setupheadertexts[class] then the output is "TRANSLATOR_APPLICATION" thx for help severin -- HoHoHo! Seid Ihr auch alle schön brav gewesen? GMX Weihnachts-Special: Die 1. Adresse für Weihnachts- männer und -frauen! http://www.gmx.net/de/cgi/specialmail +++ GMX - die erste Adresse für Mail, Message, More! +++ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setupheadertexts
On Monday 18 August 2003 18:32, Tobias Burnus wrote: > Hi, > > John Culleton wrote: > > I want to have chapter names in the header text and I want them in > > boldface. > > How about: > \setupheader[text][style=bold] > \setupheadertexts[text][My book][chapter] > > or alternatively, > \setupheadertexts[text][{\bf My book}][{\it \getmarking[chapter]}] > > Tobias Well, I am almost home! My customer now prefers Small Caps letterspaced rather than bold. So I used example two above and an earlier post from Bill McClain to come up with this combination: %First, the macros for extended (letterspaced) text: \def\CapStretchAmount{.18em} \def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount} \stretchednormalcase{#1}} %Then the header text macro: \setupheadertexts[text][][{\sc \getmarking[chapter]}][{\CapStretch{\sc The Health Seeker's Handbook}}][] Out of this melange I get small caps extended for the book title on the verso header. But I can't seem to find the combination for both \CapStretch and \getmarking on the recto header. Any attempt to insert \CapStretch on that side converts the chapter name back to the literal word "chapter". I have tried brackets, curly braces etc. in various combinations. Any hints appreciated. -- John Culleton Able Indexers and Typesetters http://wexfordpress.com Free 20MB Web Site Hosting and Personalized E-mail Service! Get It Now At Doteasy.com http://www.doteasy.com/et/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setupheadertexts
Hi, John Culleton wrote: > I want to have chapter names in the header text and I want them in boldface. How about: \setupheader[text][style=bold] \setupheadertexts[text][My book][chapter] or alternatively, \setupheadertexts[text][{\bf My book}][{\it \getmarking[chapter]}] Tobias -- This above all: To thine own self be true / And it must follow as the night the day / Thou canst not then be false to any man. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \setupheadertexts
I want to have chapter names in the header text and I want them in boldface. This works: \setupheadertexts[text][{\bf My book}][chapter] but this: \setupheadertexts[text][{\bf my book}][\bf chapter] just shows the literal word "chapter". So how do I do this? John Culleton ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context